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