]>
Commit | Line | Data |
---|---|---|
f65434b9 | 1 | Summary: Decoder implementation of the JBIG2 image compression format |
9d34e98a | 2 | Summary(pl.UTF-8): Implementacja dekodera formatu kompresji obrazu JBIG2 |
f65434b9 | 3 | Name: jbig2dec |
a698035f | 4 | Version: 0.9 |
0ab8acdf | 5 | Release: 3 |
f65434b9 | 6 | License: GPL with clause allowing linking to AFPL Ghostscript |
7 | Group: Applications | |
cd313560 | 8 | Source0: http://dl.sourceforge.net/jbig2dec/%{name}-%{version}.tar.gz |
a698035f JB |
9 | # Source0-md5: e4bff86825ccde304c19bd7ec122fda4 |
10 | Patch0: %{name}-shared.patch | |
cd313560 | 11 | URL: http://jbig2dec.sourceforge.net/ |
a698035f JB |
12 | BuildRequires: autoconf >= 2.53 |
13 | BuildRequires: automake >= 1:1.7 | |
14 | BuildRequires: libpng-devel | |
15 | BuildRequires: libtool | |
16 | BuildRequires: zlib-devel | |
f65434b9 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
cd313560 JB |
20 | jbig2dec is a decoder implementation of the JBIG2 image compression |
21 | format. JBIG2 is designed for lossy or lossless encoding of 'bilevel' | |
22 | (1-bit monochrome) images at moderately high resolution, and in | |
23 | particular scanned paper documents. In this domain it is very | |
24 | efficient, offering compression ratios on the order of 100:1. | |
25 | ||
26 | This is a decoder only implementation, and currently is in the alpha | |
27 | stage, meaning it doesn't completely work yet. However, we are | |
28 | maintaining parity with available encoders, so it is useful for real | |
29 | work. | |
30 | ||
31 | The specificication has been published as ISO IEC 14492 and ITU T.88. | |
32 | These documents completely describe the format and they'll be required | |
33 | if you want to understand the code and contribute. We prefer the ISO | |
34 | version, but haven't discovered significant differences between the | |
35 | two. | |
36 | ||
37 | JBIG2 also includes the CCITT T.4 and T.6 (group 3 and group 4) fax | |
38 | encodings, which are documented separately. Their specifications and | |
39 | T.88 can be obtained from the ITU. The ISO version of JBIG2 can be | |
40 | obtained through the ISO website. | |
41 | ||
c20cf86d | 42 | %description -l pl.UTF-8 |
cd313560 | 43 | jbig2dec to implementacja dekodera formatu kompresji obrazu JBIG2. |
c20cf86d JR |
44 | JBIG2 został zaprojektowany dla stratnego i bezstratnego kodowania |
45 | dwupoziomowych (monochromatycznych, 1-bitowych) obrazów o dość dużej | |
46 | rozdzielczości, w szczególności skanowanych dokumentów papierowych. W | |
47 | tej dziedzinie jest bardzo wydajny, oferując współczynniki kompresji | |
48 | rzędu 100:1. | |
49 | ||
50 | Jest to implementacja wyłącznie dekodera, aktualnie w stanie alpha, co | |
51 | oznacza, że jeszcze nie do końca działa. Jednak autorzy utrzymują ją w | |
52 | parze z dostępnymi koderami, więc jest użyteczna w praktycznych | |
cd313560 JB |
53 | zastosowaniach. |
54 | ||
c20cf86d JR |
55 | Specyfikacja została opublikowana jako ISO IEC 14492 oraz ITU T.88. Te |
56 | dokumenty całkowicie opisują format i są wymagane do zrozumienia oraz | |
57 | rozwijania kodu. Autorzy jbig2dec preferują wersję ISO, ale nie | |
58 | odkryli znaczących różnic między nimi. | |
cd313560 | 59 | |
c20cf86d JR |
60 | JBIG2 obejmuje także kodowania faksowe CCITT T.4 i T.6 (grupa 3 i |
61 | grupa 4), które są udokumentowane oddzielnie. Ich specyfikacje oraz | |
62 | T.88 można zdobyć z ITU. Wersję ISO JBIG2 można zdobyć ze strony WWW | |
cd313560 | 63 | ISO. |
f65434b9 | 64 | |
65 | %package devel | |
66 | Summary: Development files for jbig2dec library | |
9d34e98a | 67 | Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki jbig2dec |
cd313560 JB |
68 | Group: Development/Libraries |
69 | Requires: %{name} = %{version}-%{release} | |
f65434b9 | 70 | |
71 | %description devel | |
72 | Development files for jbig2dec library. | |
73 | ||
c20cf86d JR |
74 | %description devel -l pl.UTF-8 |
75 | Pliki nagłówkowe dla biblioteki jbig2dec. | |
f65434b9 | 76 | |
77 | %package static | |
78 | Summary: Static version of jbig2dec library | |
9d34e98a | 79 | Summary(pl.UTF-8): Statyczna wersja biblioteki jbig2dec |
cd313560 JB |
80 | Group: Development/Libraries |
81 | Requires: %{name}-devel = %{version}-%{release} | |
f65434b9 | 82 | |
83 | %description static | |
84 | Static version of jbig2dec library. | |
85 | ||
c20cf86d | 86 | %description static -l pl.UTF-8 |
cd313560 | 87 | Statyczna wersja biblioteki jbig2dec. |
f65434b9 | 88 | |
89 | %prep | |
90 | %setup -q | |
a698035f | 91 | %patch0 -p1 |
f65434b9 | 92 | |
93 | %build | |
a698035f | 94 | %{__libtoolize} |
f65434b9 | 95 | %{__aclocal} |
96 | %{__autoconf} | |
a698035f | 97 | %{__autoheader} |
f65434b9 | 98 | %{__automake} |
99 | ||
100 | %configure | |
101 | ||
102 | %{__make} | |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
f65434b9 | 106 | |
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
cd313560 JB |
113 | %post -p /sbin/ldconfig |
114 | %postun -p /sbin/ldconfig | |
f65434b9 | 115 | |
116 | %files | |
117 | %defattr(644,root,root,755) | |
a698035f JB |
118 | %doc CHANGES LICENSE README |
119 | %attr(755,root,root) %{_bindir}/jbig2dec | |
120 | %attr(755,root,root) %{_libdir}/libjbig2dec.so.*.*.* | |
0ab8acdf | 121 | %attr(755,root,root) %ghost %{_libdir}/libjbig2dec.so.0 |
a698035f JB |
122 | |
123 | %files devel | |
124 | %defattr(644,root,root,755) | |
125 | %attr(755,root,root) %{_libdir}/libjbig2dec.so | |
126 | %{_libdir}/libjbig2dec.la | |
127 | %{_includedir}/jbig2.h | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libjbig2dec.a |