require exact libs version

jbig2dec does not version symbols, and there is no upstream guarantee on
ABI stability. Make jbig2dec (the program) depend on the exact libs
versions. Packages compiled against the lib might want to do the same.
See bz 1770160

Suggested-by: Richard W.M. Jones <rjones@redhat.com>
This commit is contained in:
Michael J Gruber 2019-12-14 16:59:48 +01:00
parent fe4f1a6105
commit 286570afe5

View File

@ -1,13 +1,13 @@
Name: jbig2dec
Version: 0.17
Release: 2%{?dist}
Summary: A decoder implementation of the JBIG2 image compression format
License: GPLv2
URL: http://jbig2dec.sourceforge.net/
Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/%{name}-%{version}.tar.gz
Patch1: jbig2dec-0.17-Restore-ABI-compatibility.patch
BuildRequires: libtool
Name: jbig2dec
Version: 0.17
Release: 3%{?dist}
Summary: A decoder implementation of the JBIG2 image compression format
License: GPLv2
URL: http://jbig2dec.sourceforge.net/
Source0: https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs950/%{name}-%{version}.tar.gz
Patch1: jbig2dec-0.17-Restore-ABI-compatibility.patch
Requires: %{name}-libs = %{version}-%{release}
BuildRequires: libtool
%description
jbig2dec is a decoder implementation of the JBIG2 image compression format.
@ -16,10 +16,10 @@ monochrome) images at moderately high resolution, and in particular scanned
paper documents. In this domain it is very efficient, offering compression
ratios on the order of 100:1.
%package libs
Summary: A decoder implementation of the JBIG2 image compression format
%package libs
Summary: A decoder implementation of the JBIG2 image compression format
%description libs
%description libs
jbig2dec is a decoder implementation of the JBIG2 image compression format.
JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
monochrome) images at moderately high resolution, and in particular scanned
@ -28,11 +28,11 @@ ratios on the order of 100:1.
This package provides the shared jbig2dec library.
%package devel
Summary: Static library and header files for development with jbig2dec
Requires: %{name}-libs = %{version}-%{release}
%package devel
Summary: Static library and header files for development with jbig2dec
Requires: %{name}-libs = %{version}-%{release}
%description devel
%description devel
jbig2dec is a decoder implementation of the JBIG2 image compression format.
JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
monochrome) images at moderately high resolution, and in particular scanned
@ -66,13 +66,13 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_bindir}/jbig2dec
%{_mandir}/man?/jbig2dec.1*
%files devel
%files devel
%doc CHANGES COPYING LICENSE README
%{_includedir}/jbig2.h
%{_libdir}/libjbig2dec.so
%{_libdir}/pkgconfig/%{name}.pc
%files libs
%files libs
%doc CHANGES COPYING LICENSE README
%{_libdir}/libjbig2dec.so.0
%{_libdir}/libjbig2dec.so.0.0.0
@ -80,6 +80,10 @@ rm -f %{buildroot}%{_libdir}/*.la
%changelog
* Sat Dec 14 2019 Michael J Gruber <mjg@fedoraproject.org> - 0.17-3
- require exact libs version
- clean up white space
* Sat Nov 09 2019 Michael J Gruber <mjg@fedoraproject.org> - 0.17-2
- restore ABI-compatibilty (#1770160)
@ -116,10 +120,10 @@ rm -f %{buildroot}%{_libdir}/*.la
* Thu May 11 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 0.13.4
- Add fix for CVE-2017-7976 (#1443898)
* Wed May 3 2017 Pavel Zhukov <pzhukov@redhat.com> - 0.13-3
* Wed May 03 2017 Pavel Zhukov <pzhukov@redhat.com> - 0.13-3
- Prevent segserv due to int overflow (#1443898)
* Tue Mar 07 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 0.13-1
* Tue Mar 07 2017 Pavel Zhukov <landgraf@fedoraproject.org> - 0.13-1
- New release 0.13
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-4
@ -159,7 +163,7 @@ rm -f %{buildroot}%{_libdir}/*.la
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Jan 12 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.11-2.fc14
* Wed Jan 12 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.11-2.fc14
- Fixed some spec errors
* Tue Jan 11 2011 Pavel Zhukov <landgraf@fedoraproject.org> - 0.11-1.fc14