libjbig/libjbig.spec
Silvan Calarco 30ddee33e9 added patch to build shared library
install required header file jbig_ar.h [release 2.0-2mamba;Mon Dec 19 2011]
2024-01-06 04:42:18 +01:00

95 lines
3.5 KiB
RPMSpec

Name: libjbig
Version: 2.0
Release: 2mamba
Summary: JBIG-KIT lossless image compression library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit
Source: http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-%{version}.tar.gz
Patch0: %{name}-2.0-shlib.patch
License: GPL
BuildRequires: libtool
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
%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).
%description -l pl.UTF-8
JBIG-KIT zawiera implementację wydajnego algorytmu kompresji dla 2-kolorowych obrazków wysokiej rozdzielczości, takich jak faksy albo skanowane dokumenty.
%package -n libjbig-devel
Summary: Header files and static library for development with JBIG
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n libjbig-devel
This package is only needed if you plan to develop or compile applications which requires the libjbig library.
%description -n libjbig-devel
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).
%description -n libjbig-devel -l pl.UTF-8
JBIG-KIT zawiera implementację wydajnego algorytmu kompresji dla 2-kolorowych obrazków wysokiej rozdzielczości, takich jak faksy albo skanowane dokumenty.
%prep
%setup -q -n jbigkit
%patch0 -p1
%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 755 libjbig/libjbig.so.2.0 %{buildroot}%{_libdir}
ln -s libjbig.so.2.0 %{buildroot}%{_libdir}/libjbig.so
install -m 755 libjbig/libjbig85.so.2.0 %{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)
%{_bindir}/*
%{_libdir}/libjbig.so.*
%{_libdir}/libjbig85.so.*
%{_mandir}/man1/*
%doc COPYING
%files -n libjbig-devel
%defattr(-,root,root)
%{_includedir}/jbig.h
%{_includedir}/jbig_ar.h
%{_libdir}/libjbig.so
%{_libdir}/libjbig85.so
%doc ANNOUNCE TODO libjbig/jbig.txt
%changelog
* 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