Use autoreconf -f to remove rpath

Use --disable-static to disable static builds
Use current make macros
This commit is contained in:
Orion Poplawski 2020-12-13 12:13:42 -07:00
parent c6ec340ace
commit 7e9da46caa

View File

@ -1,6 +1,6 @@
Name: jbig2dec
Version: 0.19
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A decoder implementation of the JBIG2 image compression format
License: AGPLv3+
URL: http://jbig2dec.sourceforge.net/
@ -48,14 +48,13 @@ which requires the jbig2dec library.
%build
autoreconf -i
%configure
make %{?_smp_mflags}
autoreconf -fi
%configure --disable-static
%make_build
%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.a
%make_install
rm -f %{buildroot}%{_libdir}/*.la
%ldconfig_scriptlets libs
@ -80,6 +79,11 @@ rm -f %{buildroot}%{_libdir}/*.la
%changelog
* Sun Dec 13 2020 Orion Poplawski <orion@nwra.com> - 0.19-3
- Use autoreconf -f to remove rpath
- Use --disable-static to disable static builds
- Use current make macros
* Fri Sep 18 2020 Michael J Gruber <mjg@fedoraproject.org> - 0.19-2
- remove ABI patch (and coordinate builds)