From: Wayne Davison Date: Tue, 1 Apr 2008 19:19:36 +0000 (-0700) Subject: Define a "srcdir" in the spec file and use it in the URLs for the X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/6fd2c27f38e1a5be6a6de9e3065a553ab69c0064 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. --- 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 ) );