]> git.pld-linux.org Git - packages/jbig2dec.git/blob - jbig2dec.spec
86ecda6a2cdcc6dca602dc2b96d945992a12c29f
[packages/jbig2dec.git] / jbig2dec.spec
1 Summary:        Decoder implementation of the JBIG2 image compression format
2 Summary(pl.UTF-8):      Implementacja dekodera formatu kompresji obrazu JBIG2
3 Name:           jbig2dec
4 Version:        0.11
5 Release:        2
6 License:        GPL v2+ with AFPL Ghostscript exception
7 Group:          Applications
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
17 BuildRequires:  xz
18 BuildRequires:  zlib-devel
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
27
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
31 work.
32
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
37 two.
38
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.
43
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
50 rzędu 100:1.
51
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
55 zastosowaniach.
56
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.
61
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
65 ISO.
66
67 %package devel
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}
72
73 %description devel
74 Development files for jbig2dec library.
75
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe dla biblioteki jbig2dec.
78
79 %package static
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}
84
85 %description static
86 Static version of jbig2dec library.
87
88 %description static -l pl.UTF-8
89 Statyczna wersja biblioteki jbig2dec.
90
91 %prep
92 %setup -q
93 %patch0 -p1
94
95 %build
96 %{__libtoolize}
97 %{__aclocal}
98 %{__autoconf}
99 %{__autoheader}
100 %{__automake}
101
102 %configure
103
104 %{__make}
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108
109 %{__make} install \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %files
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*
125
126 %files devel
127 %defattr(644,root,root,755)
128 %attr(755,root,root) %{_libdir}/libjbig2dec.so
129 %{_libdir}/libjbig2dec.la
130 %{_includedir}/jbig2.h
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/libjbig2dec.a
This page took 0.061385 seconds and 3 git commands to generate.