]> git.pld-linux.org Git - packages/jbig2dec.git/blob - jbig2dec.spec
- updated to 0.9, added shared patch
[packages/jbig2dec.git] / jbig2dec.spec
1 Summary:        Decoder implementation of the JBIG2 image compression format
2 Summary(pl):    Implementacja dekodera formatu kompresji obrazu JBIG2
3 Name:           jbig2dec
4 Version:        0.9
5 Release:        1
6 License:        GPL with clause allowing linking to AFPL Ghostscript
7 Group:          Applications
8 Source0:        http://dl.sourceforge.net/jbig2dec/%{name}-%{version}.tar.gz
9 # Source0-md5:  e4bff86825ccde304c19bd7ec122fda4
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:  zlib-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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
42 %description -l pl
43 jbig2dec to implementacja dekodera formatu kompresji obrazu JBIG2.
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
53 zastosowaniach.
54
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.
59
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
63 ISO.
64
65 %package devel
66 Summary:        Development files for jbig2dec library
67 Summary(pl):    Pliki nag³ówkowe dla biblioteki jbig2dec
68 Group:          Development/Libraries
69 Requires:       %{name} = %{version}-%{release}
70
71 %description devel
72 Development files for jbig2dec library.
73
74 %description devel -l pl
75 Pliki nag³ówkowe dla biblioteki jbig2dec.
76
77 %package static
78 Summary:        Static version of jbig2dec library
79 Summary(pl):    Statyczna wersja biblioteki jbig2dec
80 Group:          Development/Libraries
81 Requires:       %{name}-devel = %{version}-%{release}
82
83 %description static
84 Static version of jbig2dec library.
85
86 %description static -l pl
87 Statyczna wersja biblioteki jbig2dec.
88
89 %prep
90 %setup -q
91 %patch0 -p1
92
93 %build
94 %{__libtoolize}
95 %{__aclocal}
96 %{__autoconf}
97 %{__autoheader}
98 %{__automake}
99
100 %configure
101
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106
107 %{__make} install \
108         DESTDIR=$RPM_BUILD_ROOT
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc CHANGES LICENSE README
119 %attr(755,root,root) %{_bindir}/jbig2dec
120 %attr(755,root,root) %{_libdir}/libjbig2dec.so.*.*.*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libjbig2dec.so
125 %{_libdir}/libjbig2dec.la
126 %{_includedir}/jbig2.h
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libjbig2dec.a
This page took 0.095503 seconds and 3 git commands to generate.