From 664c813e77eb5dc728fb2602371445802a4711c7 Mon Sep 17 00:00:00 2001 From: Pavel Zhukov Date: Fri, 14 Jan 2011 14:41:54 +0300 Subject: [PATCH] Initial import (#668959). --- jbig2dec.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 jbig2dec.spec diff --git a/jbig2dec.spec b/jbig2dec.spec new file mode 100644 index 0000000..ec4fe6c --- /dev/null +++ b/jbig2dec.spec @@ -0,0 +1,91 @@ +Name: jbig2dec +Version: 0.11 +Release: 2%{?dist} +Summary: A decoder implementation of the JBIG2 image compression format + +Group: System Environment/Libraries +License: GPLv2 +URL: http://jbig2dec.sourceforge.net/ +Source0: http://ghostscript.com/~giles/jbig2/jbig2dec/%{name}-%{version}.tar.gz + +%description +jbig2dec is a decoder implementation of the JBIG2 image compression format. +JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit +monochrome) images at moderately high resolution, and in particular scanned +paper documents. In this domain it is very efficient, offering compression +ratios on the order of 100:1. + +%package libs +Summary: A decoder implementation of the JBIG2 image compression format +Group: System Environment/Libraries + +%description libs +jbig2dec is a decoder implementation of the JBIG2 image compression format. +JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit +monochrome) images at moderately high resolution, and in particular scanned +paper documents. In this domain it is very efficient, offering compression +ratios on the order of 100:1. + +This package provides the shared jbig2dec library. + +%package devel +Summary: Static library and header files for development with jbig2dec +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description devel +jbig2dec is a decoder implementation of the JBIG2 image compression format. +JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit +monochrome) images at moderately high resolution, and in particular scanned +paper documents. In this domain it is very efficient, offering compression +ratios on the order of 100:1. + +This package is only needed if you plan to develop or compile applications +which requires the jbig2dec library. + + +%prep +%setup -q + + +%build +%configure +make %{?_smp_mflags} + + +%install +make DESTDIR=%{buildroot} install +rm -f %{buildroot}%{_libdir}/*.a +rm -f %{buildroot}%{_libdir}/*.la + +%post libs -p /sbin/ldconfig + +%postun libs -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc CHANGES COPYING LICENSE README +%{_bindir}/jbig2dec +%{_mandir}/man?/jbig2dec.1.gz + +%files devel +%defattr(-,root,root,-) +%doc CHANGES COPYING LICENSE README +%{_includedir}/jbig2.h +%{_libdir}/libjbig2dec.so + +%files libs +%defattr(-,root,root,-) +%doc CHANGES COPYING LICENSE README +%{_libdir}/libjbig2dec.so.0 +%{_libdir}/libjbig2dec.so.0.0.0 + + + +%changelog +* Wed Jan 12 2011 Pavel Zhukov - 0.11-2.fc14 +- Fixed some spec errors + +* Tue Jan 11 2011 Pavel Zhukov - 0.11-1.fc14 +- Initial package