.spec cleanup, drop deprecated stuff

update filtering
restore %check
epel9
Rex Dieter 8 years ago
parent 62d8fe3d0b
commit a8779cfcf4

@ -1,4 +1,3 @@
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
%if 0%{?fedora} || 0%{?rhel} > 6 %if 0%{?fedora} || 0%{?rhel} > 6
%global _with_quantum_depth --with-quantum-depth=16 %global _with_quantum_depth --with-quantum-depth=16
@ -24,22 +23,16 @@
# trim changelog included in binary rpms # trim changelog included in binary rpms
%global _changelog_trimtime %(date +%s -d "1 year ago") %global _changelog_trimtime %(date +%s -d "1 year ago")
## FIXME/TODO: update to new style filtering %global __provides_exclude_from ^%{_libdir}/GraphicsMagick-%{version}/.*\\.(la|so)$
%{?filter_setup:
%filter_provides_in %{_libdir}/GraphicsMagick-%{version}
%filter_setup
}
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.26 Version: 1.3.26
Release: 4%{?dist} Release: 5%{?dist}
License: MIT License: MIT
Group: Applications/Multimedia
Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.xz Source0: http://downloads.sourceforge.net/sourceforge/graphicsmagick/GraphicsMagick-%{version}.tar.xz
Url: http://www.graphicsmagick.org/ Url: http://www.graphicsmagick.org/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
## downstream patches ## downstream patches
# workaround multilib conflicts with GraphicsMagick-config # workaround multilib conflicts with GraphicsMagick-config
@ -201,8 +194,6 @@ make %{?_smp_mflags} perl-build
%install %install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
make install DESTDIR=%{buildroot} -C PerlMagick make install DESTDIR=%{buildroot} -C PerlMagick
@ -257,8 +248,8 @@ EOF
%check %check
#time \ time \
#make %{?_smp_mflags} check ||: make %{?_smp_mflags} check ||:
# multilib hack only supports 32/64 bits for now # multilib hack only supports 32/64 bits for now
%ifarch %{multilib_archs} %ifarch %{multilib_archs}
%if ! (%{__isa_bits} == 32 || %{__isa_bits} == 64) %if ! (%{__isa_bits} == 32 || %{__isa_bits} == 64)
@ -268,15 +259,10 @@ exit 1
%endif %endif
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%{!?_licensedir:%global license %doc}
%license %{_pkgdocdir}/Copyright.txt %license %{_pkgdocdir}/Copyright.txt
%{_libdir}/libGraphicsMagick%{?libQ}.so.3* %{_libdir}/libGraphicsMagick%{?libQ}.so.3*
%{_libdir}/libGraphicsMagickWand%{?libQ}.so.2* %{_libdir}/libGraphicsMagickWand%{?libQ}.so.2*
@ -324,6 +310,11 @@ rm -rf %{buildroot}
%changelog %changelog
* Thu Jul 27 2017 Rex Dieter <rdieter@fedoraproject.org> - 1.3.26-5
- .spec cleanup, drop deprecated stuff
- update filtering
- restore %%check
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.26-4 * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.26-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

Loading…
Cancel
Save