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

Loading…
Cancel
Save