- cleanup/uncruftify .spec

epel9
Rex Dieter 15 years ago
parent 27e83fadde
commit 78d8e8e20e

@ -2,7 +2,7 @@
Summary: An ImageMagick fork, offering faster image generation and better quality Summary: An ImageMagick fork, offering faster image generation and better quality
Name: GraphicsMagick Name: GraphicsMagick
Version: 1.3.7 Version: 1.3.7
Release: 1%{?dist} Release: 2%{?dist}
License: MIT License: MIT
Group: Applications/Multimedia Group: Applications/Multimedia
Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.lzma Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.lzma
@ -101,27 +101,24 @@ mv -f ChangeLog.utf8 ChangeLog
# Avoid lib64 rpaths (FIXME: recheck this on newer releases) # Avoid lib64 rpaths (FIXME: recheck this on newer releases)
%if "%{_libdir}" != "/usr/lib" %if "%{_libdir}" != "/usr/lib"
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
%endif %endif
%build %build
%configure --enable-shared \ %configure --enable-shared --disable-static \
--with-lcms \
--with-magick_plus_plus \
--with-modules \ --with-modules \
--with-perl \ --with-perl \
--with-x \ --with-perl-options="INSTALLDIRS=vendor %{?perl_prefix}" \
--with-threads \ --with-threads \
--with-magick_plus_plus \ --with-windows-font-dir=%{_datadir}/fonts/default/TrueType \
--without-gslib \
--with-wmf \ --with-wmf \
--with-lcms \ --with-x \
--with-xml \ --with-xml \
--with-perl-options="INSTALLDIRS=vendor %{?perl_prefix} CC='%__cc -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \ --without-dps \
--with-windows-font-dir=%{_datadir}/fonts/default/TrueType \ --without-gslib
--without-dps
# Avoid bogus RPATHs on x86_64
sed -i.rpath -e 's|^sys_lib_dlsearch_path_spec="/lib /usr/lib|sys_lib_dlsearch_path_spec="/%{_lib} %{_libdir}|' libtool
make %{?_smp_mflags} make %{?_smp_mflags}
make %{?_smp_mflags} perl-build make %{?_smp_mflags} perl-build
@ -136,9 +133,9 @@ make install DESTDIR=%{buildroot} -C PerlMagick
# perlmagick: fix perl path of demo files # perlmagick: fix perl path of demo files
%{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl %{__perl} -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)' PerlMagick/demo/*.pl
find %{buildroot} -name "*.bs" |xargs rm -f find %{buildroot} -name "*.bs" |xargs rm -fv
find %{buildroot} -name ".packlist" |xargs rm -f find %{buildroot} -name ".packlist" |xargs rm -fv
find %{buildroot} -name "perllocal.pod" |xargs rm -f find %{buildroot} -name "perllocal.pod" |xargs rm -fv
chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
@ -158,9 +155,7 @@ fi
rm -rf %{buildroot}%{_datadir}/GraphicsMagick rm -rf %{buildroot}%{_datadir}/GraphicsMagick
# Keep config # Keep config
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]* rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/[a-b,d-z,A-Z]*
rm -rf %{buildroot}%{_libdir}/libltdl.* rm -vf %{buildroot}%{_libdir}/lib*.la
rm -f %{buildroot}%{_libdir}/GraphicsMagick-*/modules*/*/*.a
rm -f %{buildroot}%{_libdir}/*.{a,la}
# fix multilib issues # fix multilib issues
%ifarch x86_64 s390x ia64 ppc64 sparc64 %ifarch x86_64 s390x ia64 ppc64 sparc64
@ -247,6 +242,9 @@ rm -rf %{buildroot}
%changelog %changelog
* Fri Nov 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-2
- cleanup/uncruftify .spec
* Thu Sep 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-1 * Thu Sep 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.3.7-1
- GraphicsMagick-1.3.7 - GraphicsMagick-1.3.7

Loading…
Cancel
Save