From a77b1851c48947464584f31922cb6cd12b74bfde Mon Sep 17 00:00:00 2001 From: "Pavel Alexeev (aka Pahan-Hubbitus)" Date: Mon, 27 Feb 2012 19:45:22 +0400 Subject: [PATCH] Update by request https://bugzilla.redhat.com/show_bug.cgi?id=755827#c8 - Delete multilib patch as it should be in main sources. - Replace $RPM_BUILD_ROOT by %buildroot --- .gitignore | 1 + ImageMagick.spec | 52 +++++++++++++++++++++++++++--------------------- sources | 3 +-- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/.gitignore b/.gitignore index 0774981..d983620 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ ImageMagick-6.4.0-multilib.patch /ImageMagick-6.6.8-4.tar.xz /ImageMagick-6.7.0-10.tar.xz /ImageMagick-6.7.1-9.tar.xz +/ImageMagick-6.7.5-6.tar.xz diff --git a/ImageMagick.spec b/ImageMagick.spec index 67ab7f3..013b225 100644 --- a/ImageMagick.spec +++ b/ImageMagick.spec @@ -1,5 +1,5 @@ -%global VER 6.7.1 -%global Patchlevel 9 +%global VER 6.7.5 +%global Patchlevel 6 Name: ImageMagick Version: %{VER}.%{Patchlevel} @@ -9,7 +9,6 @@ Group: Applications/Multimedia License: ImageMagick Url: http://www.imagemagick.org/ Source0: ftp://ftp.ImageMagick.org/pub/%{name}/%{name}-%{VER}-%{Patchlevel}.tar.xz -Patch1: ImageMagick-6.4.0-multilib.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: bzip2-devel, freetype-devel, libjpeg-devel, libpng-devel @@ -127,7 +126,6 @@ however. %prep %setup -q -n %{name}-%{VER}-%{Patchlevel} -%patch1 -p1 -b .multilib sed -i 's/libltdl.la/libltdl.so/g' configure iconv -f ISO-8859-1 -t UTF-8 README.txt > README.txt.tmp touch -r README.txt README.txt.tmp @@ -162,30 +160,30 @@ make %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -cp -a www/source $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{VER} +make install DESTDIR=%{buildroot} INSTALL="install -p" +cp -a www/source %{buildroot}%{_datadir}/doc/%{name}-%{VER} # Delete *ONLY* _libdir/*.la files! .la files used internally to handle plugins - BUG#185237!!! -rm $RPM_BUILD_ROOT%{_libdir}/*.la +rm %{buildroot}%{_libdir}/*.la # fix weird perl Magick.so permissions -chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Image/Magick/Magick.so +chmod 755 %{buildroot}%{perl_vendorarch}/auto/Image/Magick/Magick.so # perlmagick: fix perl path of demo files %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl # perlmagick: cleanup various perl tempfiles from the build which get installed -find $RPM_BUILD_ROOT -name "*.bs" |xargs rm -f -find $RPM_BUILD_ROOT -name ".packlist" |xargs rm -f -find $RPM_BUILD_ROOT -name "perllocal.pod" |xargs rm -f +find %{buildroot} -name "*.bs" |xargs rm -f +find %{buildroot} -name ".packlist" |xargs rm -f +find %{buildroot} -name "perllocal.pod" |xargs rm -f # perlmagick: build files list echo "%defattr(-,root,root,-)" > perl-pkg-files -find $RPM_BUILD_ROOT/%{_libdir}/perl* -type f -print \ - | sed "s@^$RPM_BUILD_ROOT@@g" > perl-pkg-files -find $RPM_BUILD_ROOT%{perl_vendorarch} -type d -print \ - | sed "s@^$RPM_BUILD_ROOT@%dir @g" \ +find %{buildroot}/%{_libdir}/perl* -type f -print \ + | sed "s@^%{buildroot}@@g" > perl-pkg-files +find %{buildroot}%{perl_vendorarch} -type d -print \ + | sed "s@^%{buildroot}@%dir @g" \ | grep -v '^%dir %{perl_vendorarch}$' \ | grep -v '/auto$' >> perl-pkg-files if [ -z perl-pkg-files ] ; then @@ -200,10 +198,10 @@ fi %define wordsize 32 %endif -mv $RPM_BUILD_ROOT%{_includedir}/%{name}/magick/magick-config.h \ - $RPM_BUILD_ROOT%{_includedir}/%{name}/magick/magick-config-%{wordsize}.h +mv %{buildroot}%{_includedir}/%{name}/magick/magick-config.h \ + %{buildroot}%{_includedir}/%{name}/magick/magick-config-%{wordsize}.h -cat >$RPM_BUILD_ROOT%{_includedir}/%{name}/magick/magick-config.h <%{buildroot}%{_includedir}/%{name}/magick/magick-config.h < - 6.7.5.6-1 +- Update by request https://bugzilla.redhat.com/show_bug.cgi?id=755827#c8 +- Delete multilib patch as it should be in main sources. +- Replace $RPM_BUILD_ROOT by %%buildroot + * Mon Aug 22 2011 Pavel Alexeev - 6.7.1.9-1 - New version 6.7.1-9. diff --git a/sources b/sources index 94c4329..9298108 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -fea21ee028a2544f69a46e09f58c0e14 ImageMagick-6.7.1-9.tar.xz -0b9908beeeaf4e7990b23c80e6e81d14 ImageMagick-6.4.0-multilib.patch +dc9f1cc4ef2517099d0fbc592a19543f ImageMagick-6.7.5-6.tar.xz