Name: jbigkit Version: 2.1 Release: 3mamba Summary: Data compression library/utilities for bi-level high-resolution images Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cl.cam.ac.uk/~mgk25/jbigkit/ Source: https://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-%{version}.tar.gz Patch0: jbigkit-2.1-shared_lib.patch Patch1: jbigkit-2.1-ldflags.patch Patch2: jbigkit-2.1-build_warnings.patch Patch3: jbigkit-2.1-coverity.patch Patch4: jbigkit-2.1-new-jbig.c-limit-s-maxmem-maximum-decoded-image-size.patch Patch5: jbigkit-2.1-jbg_newlen-check-for-end-of-file-within-MARKER_NEWLE.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END Requires: libjbig = %{?epoch:%epoch:}%{version}-%{release} Provides: libjbig-tools Obsoletes: libjbig-tools < 2.1-2mamba %description Data compression library/utilities for bi-level high-resolution images. %package -n libjbig Group: System/Libraries Summary: Shared libraries for %{name} %ifarch x86_64 aarch64 Provides: libjbig.so.0()(64bit) Provides: libjbig.so.2.0()(64bit) %else Provides: libjbig.so.0 Provides: libjbig.so.2.0 %endif %description -n libjbig This package contains shared libraries for %{name}. %package -n libjbig-devel Group: Development/Libraries Summary: Development files for %{name} Requires: libjbig = %{?epoch:%epoch:}%{version}-%{release} %description -n libjbig-devel This package contains libraries and header files for developing applications that use %{name}. %debug_package %prep %setup -q %patch 0 -p1 -b .shared_lib %patch 1 -p1 -b .ldflags %patch 2 -p1 -b .build_warnings %patch 3 -p1 -b .coverity %patch 4 -p1 -b .new-jbig.c-limit-s-maxmem-maximum-decoded-image-size %patch 5 -p1 -b .jbg_newlen-check-for-end-of-file-within-MARKER_NEWLE %build %make EXTRA_CFLAGS="%{optflags}" %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -D -m0644 libjbig/*.h -t %{buildroot}%{_includedir} install -D -m0755 libjbig/*.so.* -t %{buildroot}%{_libdir} for lib in libjbig.so libjbig85.so; do ln -sv "$lib.%{version}" %{buildroot}%{_libdir}/$lib done install -D -m0755 pbmtools/{jbgtopbm{,85},pbmtojbg{,85}} -t %{buildroot}%{_bindir} install -D -m0644 pbmtools/*.1* -t %{buildroot}%{_mandir}/man1/ ln -s libjbig.so.2.1 %{buildroot}%{_libdir}/libjbig.so.0 ln -s libjbig.so.2.1 %{buildroot}%{_libdir}/libjbig.so.2.0 %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_bindir}/jbgtopbm %{_bindir}/jbgtopbm85 %{_bindir}/pbmtojbg %{_bindir}/pbmtojbg85 %{_mandir}/man1/jbgtopbm.1* %{_mandir}/man1/pbmtojbg.1* %files -n libjbig %defattr(-,root,root) %{_libdir}/libjbig.so.* %{_libdir}/libjbig85.so.* %doc COPYING %files -n libjbig-devel %defattr(-,root,root) %{_includedir}/jbig.h %{_includedir}/jbig85.h %{_includedir}/jbig_ar.h %{_libdir}/libjbig.so %{_libdir}/libjbig85.so %doc CHANGES TODO %changelog * Fri Nov 29 2024 Silvan Calarco 2.1-3mamba - jbigkit: fix wrong requirement for libjbig * Fri Nov 29 2024 Silvan Calarco 2.1-2mamba - rename from libjbig to jbigkit; apply well known patches * Sun Feb 14 2021 Silvan Calarco 2.1-1mamba - update to 2.1 * Mon Dec 19 2011 Silvan Calarco 2.0-2mamba - added patch to build shared library - install required header file jbig_ar.h * Sun Jul 05 2009 Tiziana Ferro 2.0-1mamba - package created by autospec