diff options
author | Wayne Davison <wayned@samba.org> | 2008-04-01 12:19:36 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-04-01 12:55:27 -0700 |
commit | 6fd2c27f38e1a5be6a6de9e3065a553ab69c0064 (patch) | |
tree | 25ff49a38a6aba7b206e6c0248383476c3771833 /packaging | |
parent | 19173d224ac3f86868c8a1a7d56cc88209fecde0 (diff) | |
download | rsync-6fd2c27f38e1a5be6a6de9e3065a553ab69c0064.tar.gz rsync-6fd2c27f38e1a5be6a6de9e3065a553ab69c0064.tar.bz2 rsync-6fd2c27f38e1a5be6a6de9e3065a553ab69c0064.zip |
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.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/lsb/rsync.spec | 5 | ||||
-rwxr-xr-x | 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 @@ $_ = <STDIN>; (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 ) ); |