From 6fd2c27f38e1a5be6a6de9e3065a553ab69c0064 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 1 Apr 2008 12:19:36 -0700 Subject: [PATCH 1/1] Define a "srcdir" in the spec file and use it in the URLs for the source files so that they use the unchanging src or src-preview subdirectory location for the file. --- packaging/lsb/rsync.spec | 5 +++-- packaging/release-rsync | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packaging/lsb/rsync.spec b/packaging/lsb/rsync.spec index dd74ac3e..6cd25cd1 100644 --- a/packaging/lsb/rsync.spec +++ b/packaging/lsb/rsync.spec @@ -3,9 +3,10 @@ Name: rsync Version: 3.0.1 %define fullversion %{version}pre3 Release: 0.1.pre3 +%define srcdir src-previews Group: Applications/Internet -Source0: http://rsync.samba.org/ftp/rsync/rsync-%{fullversion}.tar.gz -Source1: http://rsync.samba.org/ftp/rsync/rsync-patches-%{fullversion}.tar.gz +Source0: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-%{fullversion}.tar.gz +Source1: http://rsync.samba.org/ftp/rsync/%{srcdir}/rsync-patches-%{fullversion}.tar.gz URL: http://rsync.samba.org/ Prefix: %{_prefix} diff --git a/packaging/release-rsync b/packaging/release-rsync index b0c9f456..371f41db 100755 --- a/packaging/release-rsync +++ b/packaging/release-rsync @@ -151,7 +151,8 @@ $_ = ; (my $finalversion = $version) =~ s/pre\d+//; my %specvars = ( 'Version:' => $finalversion, 'Release:' => $release, - '%define fullversion' => "\%{version}$pre", 'Released' => "$version." ); + '%define fullversion' => "\%{version}$pre", 'Released' => "$version.", + '%define srcdir' => $srcdir ); my @tweak_files = ( glob('packaging/*.spec'), glob('packaging/*/*.spec'), glob('*.yo'), qw( configure.in rsync.h NEWS OLDNEWS options.c ) ); -- 2.34.1