2024-01-06 04:42:18 +01:00
|
|
|
Name: libjbig
|
2024-01-06 04:42:19 +01:00
|
|
|
Version: 2.1
|
|
|
|
Release: 1mamba
|
2024-01-06 04:42:18 +01:00
|
|
|
Summary: JBIG-KIT lossless image compression library
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 04:42:19 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://www.cl.cam.ac.uk/~mgk25/jbigkit
|
2024-01-06 04:42:18 +01:00
|
|
|
Source: http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-%{version}.tar.gz
|
2024-01-06 04:42:19 +01:00
|
|
|
Source1: http://deb.debian.org/debian/pool/main/j/jbigkit/jbigkit_%{version}-3.1.debian.tar.xz
|
2024-01-06 04:42:18 +01:00
|
|
|
Patch0: %{name}-2.0-shlib.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 04:42:19 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
Provides: libjbig.so.2.0()(64bit)
|
|
|
|
%else
|
|
|
|
Provides: libjbig.so.2.0
|
|
|
|
%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2024-01-06 04:42:18 +01:00
|
|
|
|
|
|
|
%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
|
2024-01-06 04:42:19 +01:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-06 04:42:18 +01:00
|
|
|
|
|
|
|
%description -n libjbig-devel
|
|
|
|
This package is only needed if you plan to develop or compile applications which requires the libjbig library.
|
|
|
|
|
2024-01-06 04:42:19 +01:00
|
|
|
%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}.
|
2024-01-06 04:42:18 +01:00
|
|
|
|
2024-01-06 04:42:19 +01:00
|
|
|
%debug_package
|
2024-01-06 04:42:18 +01:00
|
|
|
|
|
|
|
%prep
|
2024-01-06 04:42:19 +01:00
|
|
|
%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
|
2024-01-06 04:42:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%make
|
|
|
|
make test
|
2024-01-06 04:42:19 +01:00
|
|
|
|
2024-01-06 04:42:18 +01:00
|
|
|
%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}
|
2024-01-06 04:42:19 +01:00
|
|
|
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
|
2024-01-06 04:42:18 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libjbig.so.*
|
|
|
|
%doc COPYING
|
|
|
|
|
2024-01-06 04:42:19 +01:00
|
|
|
%files devel
|
2024-01-06 04:42:18 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_includedir}/jbig.h
|
|
|
|
%{_includedir}/jbig_ar.h
|
|
|
|
%{_libdir}/libjbig.so
|
2024-01-06 04:42:19 +01:00
|
|
|
%{_libdir}/libjbig85.a
|
2024-01-06 04:42:18 +01:00
|
|
|
%doc ANNOUNCE TODO libjbig/jbig.txt
|
|
|
|
|
2024-01-06 04:42:19 +01:00
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
2024-01-06 04:42:18 +01:00
|
|
|
%changelog
|
2024-01-06 04:42:19 +01:00
|
|
|
* Sun Feb 14 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1-1mamba
|
|
|
|
- update to 2.1
|
|
|
|
|
2024-01-06 04:42:18 +01:00
|
|
|
* Mon Dec 19 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-2mamba
|
|
|
|
- added patch to build shared library
|
|
|
|
- install required header file jbig_ar.h
|
|
|
|
|
|
|
|
* Sun Jul 05 2009 Tiziana Ferro <tiziana.ferro@email.it> 2.0-1mamba
|
|
|
|
- package created by autospec
|