]> git.pld-linux.org Git - packages/jbig2dec.git/blob - jbig2dec.spec
- ghost soname symlink
[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.9
5 Release:        3
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.UTF-8
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.UTF-8):      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.UTF-8
75 Pliki nagłówkowe dla biblioteki jbig2dec.
76
77 %package static
78 Summary:        Static version of jbig2dec library
79 Summary(pl.UTF-8):      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.UTF-8
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 %attr(755,root,root) %ghost %{_libdir}/libjbig2dec.so.0
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
This page took 0.320294 seconds and 3 git commands to generate.