Name: jbigkit Version: 2.0 Release: 1 Summary: JBIG1 lossless image compression tools Group: Productivity/Graphics/Convertors License: GPL URL: http://www.cl.cam.ac.uk/~mgk25/jbigkit/ Source0: %{name}-%{version}.tar.gz Patch0: jbigkit-2.0-shlib.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: make autoconf automake gcc gcc-c++ %package -n libjbig Summary: JBIG1 lossless image compression library Group: System/Libraries %package -n libjbig-devel Summary: JBIG1 lossless image compression library -- development files Group: Development/Libraries/C and C++ Requires: libjbig = %version %description -n libjbig JBIG-KIT provides a portable library of compression and decompression functions with a documented interface that you can include very easily into your image or document processing software. In addition, JBIG-KIT provides ready-to-use compression and decompression programs with a simple command line interface (similar to the converters found in netpbm). JBIG-KIT implements the specification: ISO/IEC 11544:1993 and ITU-T Recommendation T.82(1993): Information technology — Coded representation of picture and audio information — Progressive bi-level image compression which is commonly referred to as the “JBIG1 standard” %description -n libjbig-devel The libjbig-devel package contains files needed for development using the JBIG-KIT image compression library. %description The jbigkit package contains tools for converting between PBM and JBIG1 formats. %prep %setup -n %name %patch0 -p1 %build export CFLAGS="%optflags -I../libjbig" CXXFLAGS="%optflags" %__make %{?_smp_mflags} %check %__make test %install %__install -Dm 0755 libjbig/libjbig.so.%{version} %{buildroot}/%{_libdir}/libjbig.so.%version %__install -Dm 0755 libjbig/libjbig85.so.%{version} %{buildroot}/%{_libdir}/libjbig85.so.%version %__ln_s -f libjbig.so.%{version} %{buildroot}/%{_libdir}/libjbig.so %__ln_s -f libjbig85.so.%{version} %{buildroot}/%{_libdir}/libjbig85.so %__install -d %{buildroot}%_includedir %__install -m 0644 libjbig/jbig*.h %{buildroot}%_includedir %__install -d %{buildroot}%_bindir %__install -m 0755 pbmtools/pbmtojbg %{buildroot}%_bindir %__install -m 0755 pbmtools/jbgtopbm %{buildroot}%_bindir %__install -m 0755 pbmtools/pbmtojbg85 %{buildroot}%_bindir %__install -m 0755 pbmtools/jbgtopbm85 %{buildroot}%_bindir %__install -d %{buildroot}%{_mandir}/man1 %__install -m 0644 pbmtools/*.1 %{buildroot}%{_mandir}/man1 %clean %__rm -rf %buildroot %post -n libjbig -p /sbin/ldconfig %postun -n libjbig -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/* %doc %{_mandir}/man1/* %doc COPYING ANNOUNCE TODO CHANGES pbmtools/*.txt %files -n libjbig %defattr(-,root,root) %{_libdir}/*.so.* %doc COPYING ANNOUNCE TODO CHANGES libjbig/*.txt %files -n libjbig-devel %defattr(-,root,root) %{_libdir}/*.so %{_includedir}/jbig*.h %changelog