1 Summary: Decoder implementation of the JBIG2 image compression format
2 Summary(pl.UTF-8): Implementacja dekodera formatu kompresji obrazu JBIG2
6 License: GPL v2+ with AFPL Ghostscript exception
8 Source0: http://downloads.sourceforge.net/jbig2dec/%{name}-%{version}.tar.xz
9 # Source0-md5: 4cc8ab6fb7ebe6f24460ec5ce30d84d9
10 Patch0: %{name}-shared.patch
11 URL: http://jbig2dec.sourceforge.net/
12 BuildRequires: autoconf >= 2.53
13 BuildRequires: automake >= 1:1.7
14 BuildRequires: libpng-devel
15 BuildRequires: libtool
16 BuildRequires: tar >= 1:1.22
18 BuildRequires: zlib-devel
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 jbig2dec is a decoder implementation of the JBIG2 image compression
23 format. JBIG2 is designed for lossy or lossless encoding of 'bilevel'
24 (1-bit monochrome) images at moderately high resolution, and in
25 particular scanned paper documents. In this domain it is very
26 efficient, offering compression ratios on the order of 100:1.
28 This is a decoder only implementation, and currently is in the alpha
29 stage, meaning it doesn't completely work yet. However, we are
30 maintaining parity with available encoders, so it is useful for real
33 The specificication has been published as ISO IEC 14492 and ITU T.88.
34 These documents completely describe the format and they'll be required
35 if you want to understand the code and contribute. We prefer the ISO
36 version, but haven't discovered significant differences between the
39 JBIG2 also includes the CCITT T.4 and T.6 (group 3 and group 4) fax
40 encodings, which are documented separately. Their specifications and
41 T.88 can be obtained from the ITU. The ISO version of JBIG2 can be
42 obtained through the ISO website.
44 %description -l pl.UTF-8
45 jbig2dec to implementacja dekodera formatu kompresji obrazu JBIG2.
46 JBIG2 został zaprojektowany dla stratnego i bezstratnego kodowania
47 dwupoziomowych (monochromatycznych, 1-bitowych) obrazów o dość dużej
48 rozdzielczości, w szczególności skanowanych dokumentów papierowych. W
49 tej dziedzinie jest bardzo wydajny, oferując współczynniki kompresji
52 Jest to implementacja wyłącznie dekodera, aktualnie w stanie alpha, co
53 oznacza, że jeszcze nie do końca działa. Jednak autorzy utrzymują ją w
54 parze z dostępnymi koderami, więc jest użyteczna w praktycznych
57 Specyfikacja została opublikowana jako ISO IEC 14492 oraz ITU T.88. Te
58 dokumenty całkowicie opisują format i są wymagane do zrozumienia oraz
59 rozwijania kodu. Autorzy jbig2dec preferują wersję ISO, ale nie
60 odkryli znaczących różnic między nimi.
62 JBIG2 obejmuje także kodowania faksowe CCITT T.4 i T.6 (grupa 3 i
63 grupa 4), które są udokumentowane oddzielnie. Ich specyfikacje oraz
64 T.88 można zdobyć z ITU. Wersję ISO JBIG2 można zdobyć ze strony WWW
68 Summary: Development files for jbig2dec library
69 Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki jbig2dec
70 Group: Development/Libraries
71 Requires: %{name} = %{version}-%{release}
74 Development files for jbig2dec library.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe dla biblioteki jbig2dec.
80 Summary: Static version of jbig2dec library
81 Summary(pl.UTF-8): Statyczna wersja biblioteki jbig2dec
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
86 Static version of jbig2dec library.
88 %description static -l pl.UTF-8
89 Statyczna wersja biblioteki jbig2dec.
107 rm -rf $RPM_BUILD_ROOT
110 DESTDIR=$RPM_BUILD_ROOT
113 rm -rf $RPM_BUILD_ROOT
115 %post -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc CHANGES LICENSE README
121 %attr(755,root,root) %{_bindir}/jbig2dec
122 %attr(755,root,root) %{_libdir}/libjbig2dec.so.*.*.*
123 %attr(755,root,root) %ghost %{_libdir}/libjbig2dec.so.0
124 %{_mandir}/man1/jbig2dec.1*
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libjbig2dec.so
129 %{_libdir}/libjbig2dec.la
130 %{_includedir}/jbig2.h
133 %defattr(644,root,root,755)
134 %{_libdir}/libjbig2dec.a