Name: libjbig Version: 2.1 Release: 1mamba Summary: JBIG-KIT lossless image compression library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.cl.cam.ac.uk/~mgk25/jbigkit Source: http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-%{version}.tar.gz Source1: http://deb.debian.org/debian/pool/main/j/jbigkit/jbigkit_%{version}-3.1.debian.tar.xz Patch0: %{name}-2.0-shlib.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: libtool %ifarch x86_64 aarch64 Provides: libjbig.so.2.0()(64bit) %else Provides: libjbig.so.2.0 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root %description JBIG-KIT provides a portable library of compression and decompression functions with a documented interfaces that you can include very easily into your image or document processing software. In addiction, JBIG-KIT provides ready-to-use compression adn decompression programs with a simple command line interface (similar to the converters found in netpbm). %package -n libjbig-devel Summary: Header files and static library for development with JBIG Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n libjbig-devel This package is only needed if you plan to develop or compile applications which requires the libjbig library. %package -n libjbig-tools Summary: Tools provided with %{name} Group: Applications/Graphics Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n libjbig-tools This package contains the tools provided with %{name}. %debug_package %prep %setup -q -n jbigkit-%{version} -a1 patch --forward --strip=1 -i debian/patches/allNewMainMakefile.diff patch --forward --strip=1 -i debian/patches/pbmtoolsMakefile.diff patch --forward --strip=1 -i debian/patches/shared-lib.diff %build %make make test %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_bindir} \ %{buildroot}%{_includedir} \ %{buildroot}%{_libdir} \ %{buildroot}%{_mandir}/man1 install -m 755 pbmtools/jbgtopbm.1 %{buildroot}%{_mandir}/man1 install -m 755 pbmtools/pbmtojbg.1 %{buildroot}%{_mandir}/man1 install -m 755 pbmtools/jbgtopbm %{buildroot}%{_bindir} install -m 755 pbmtools/pbmtojbg %{buildroot}%{_bindir} install -m 644 libjbig/jbig.h %{buildroot}%{_includedir} install -m 644 libjbig/jbig_ar.h %{buildroot}%{_includedir} install -m 644 libjbig/libjbig85.a %{buildroot}%{_libdir} install -m 755 libjbig/libjbig.so.0 %{buildroot}%{_libdir} ln -s libjbig.so.0 %{buildroot}%{_libdir}/libjbig.so ln -s libjbig.so.0 %{buildroot}%{_libdir}/libjbig.so.2.0 #install -m 755 libjbig/libjbig85.so.%{version} %{buildroot}%{_libdir} #ln -s libjbig85.so.2.0 %{buildroot}%{_libdir}/libjbig85.so %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/libjbig.so.* %doc COPYING %files devel %defattr(-,root,root) %{_includedir}/jbig.h %{_includedir}/jbig_ar.h %{_libdir}/libjbig.so %{_libdir}/libjbig85.a %doc ANNOUNCE TODO libjbig/jbig.txt %files tools %defattr(-,root,root) %{_bindir}/* %{_mandir}/man1/* %changelog * 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