track library sonames so bumps aren't a surprise
use %make_build %make_install macros
This commit is contained in:
parent
e21e30c93a
commit
8653aa340f
21
libwmf.spec
21
libwmf.spec
@ -1,7 +1,7 @@
|
||||
Summary: Windows MetaFile Library
|
||||
Name: libwmf
|
||||
Version: 0.2.11
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
#libwmf is under the LGPLv2+, however...
|
||||
#1. The tarball contains an old version of the urw-fonts under GPL+.
|
||||
# Those fonts are not installed
|
||||
@ -45,10 +45,10 @@ f=README ; iconv -f iso-8859-2 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
|
||||
%build
|
||||
autoreconf -i -f -Ipatches
|
||||
%configure --with-libxml2 --disable-static --disable-dependency-tracking --with-gsfontdir=/usr/share/fonts/urw-base35
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
||||
%make_install
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT%{_includedir}/libwmf/gd
|
||||
@ -63,7 +63,7 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
%ldconfig_scriptlets lite
|
||||
|
||||
%files
|
||||
%{_libdir}/libwmf-*.so.*
|
||||
%{_libdir}/libwmf-0.2.so.8*
|
||||
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
|
||||
%{_bindir}/wmf2svg
|
||||
%{_bindir}/wmf2gd
|
||||
@ -74,8 +74,9 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
%{_datadir}/libwmf/
|
||||
|
||||
%files lite
|
||||
%doc AUTHORS COPYING README
|
||||
%{_libdir}/libwmflite-*.so.*
|
||||
%doc AUTHORS README
|
||||
%license COPYING
|
||||
%{_libdir}/libwmflite-0.2.so.8*
|
||||
|
||||
%files devel
|
||||
%doc doc/*.html
|
||||
@ -83,13 +84,17 @@ sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/
|
||||
%doc doc/*.gif
|
||||
%doc doc/html
|
||||
%doc doc/caolan
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/libwmf*.so
|
||||
%{_libdir}/pkgconfig/libwmf.pc
|
||||
%{_includedir}/libwmf
|
||||
%{_includedir}/libwmf/
|
||||
%{_bindir}/libwmf-config
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Feb 01 2019 Rex Dieter <rdieter@fedoraproject.org> - 0.2.11-2
|
||||
- track library sonames so bumps aren't a surprise
|
||||
- use %%make_build %%make_install macros
|
||||
|
||||
* Thu Jan 31 2019 Caolán McNamara <caolanm@redhat.com> - 0.2.11-1
|
||||
- Resolves: rhbz#1671392 CVE-2019-6978 latest version
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user