]> git.pld-linux.org Git - packages/jbig2dec.git/blame - jbig2dec.spec
- updated to 0.20
[packages/jbig2dec.git] / jbig2dec.spec
CommitLineData
f65434b9 1Summary: Decoder implementation of the JBIG2 image compression format
9d34e98a 2Summary(pl.UTF-8): Implementacja dekodera formatu kompresji obrazu JBIG2
f65434b9 3Name: jbig2dec
a12eeb2e 4Version: 0.20
092985cd 5Release: 1
39d2d96b 6License: AGPL v3+ with AFPL Ghostscript exception
092985cd 7Group: Applications/Graphics
a12eeb2e
JB
8#Source0Download: https://github.com/ArtifexSoftware/jbig2dec/releases
9Source0: https://github.com/ArtifexSoftware/jbig2dec/releases/download/%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: ad901ee582dc918d9a33ca5c1131d762
a698035f 11Patch0: %{name}-shared.patch
5990f85d 12URL: https://jbig2dec.com/
a698035f 13BuildRequires: autoconf >= 2.53
a12eeb2e 14BuildRequires: automake >= 1:1.11
a698035f
JB
15BuildRequires: libpng-devel
16BuildRequires: libtool
17BuildRequires: zlib-devel
f65434b9 18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
cd313560
JB
21jbig2dec is a decoder implementation of the JBIG2 image compression
22format. JBIG2 is designed for lossy or lossless encoding of 'bilevel'
23(1-bit monochrome) images at moderately high resolution, and in
24particular scanned paper documents. In this domain it is very
25efficient, offering compression ratios on the order of 100:1.
26
27This is a decoder only implementation, and currently is in the alpha
28stage, meaning it doesn't completely work yet. However, we are
29maintaining parity with available encoders, so it is useful for real
30work.
31
32The specificication has been published as ISO IEC 14492 and ITU T.88.
33These documents completely describe the format and they'll be required
34if you want to understand the code and contribute. We prefer the ISO
35version, but haven't discovered significant differences between the
36two.
37
38JBIG2 also includes the CCITT T.4 and T.6 (group 3 and group 4) fax
39encodings, which are documented separately. Their specifications and
40T.88 can be obtained from the ITU. The ISO version of JBIG2 can be
41obtained through the ISO website.
42
c20cf86d 43%description -l pl.UTF-8
cd313560 44jbig2dec to implementacja dekodera formatu kompresji obrazu JBIG2.
c20cf86d
JR
45JBIG2 został zaprojektowany dla stratnego i bezstratnego kodowania
46dwupoziomowych (monochromatycznych, 1-bitowych) obrazów o dość dużej
47rozdzielczości, w szczególności skanowanych dokumentów papierowych. W
48tej dziedzinie jest bardzo wydajny, oferując współczynniki kompresji
49rzędu 100:1.
50
51Jest to implementacja wyłącznie dekodera, aktualnie w stanie alpha, co
52oznacza, że jeszcze nie do końca działa. Jednak autorzy utrzymują ją w
53parze z dostępnymi koderami, więc jest użyteczna w praktycznych
cd313560
JB
54zastosowaniach.
55
c20cf86d
JR
56Specyfikacja została opublikowana jako ISO IEC 14492 oraz ITU T.88. Te
57dokumenty całkowicie opisują format i są wymagane do zrozumienia oraz
58rozwijania kodu. Autorzy jbig2dec preferują wersję ISO, ale nie
59odkryli znaczących różnic między nimi.
cd313560 60
c20cf86d
JR
61JBIG2 obejmuje także kodowania faksowe CCITT T.4 i T.6 (grupa 3 i
62grupa 4), które są udokumentowane oddzielnie. Ich specyfikacje oraz
63T.88 można zdobyć z ITU. Wersję ISO JBIG2 można zdobyć ze strony WWW
cd313560 64ISO.
f65434b9 65
66%package devel
67Summary: Development files for jbig2dec library
9d34e98a 68Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki jbig2dec
cd313560
JB
69Group: Development/Libraries
70Requires: %{name} = %{version}-%{release}
f65434b9 71
72%description devel
73Development files for jbig2dec library.
74
c20cf86d
JR
75%description devel -l pl.UTF-8
76Pliki nagłówkowe dla biblioteki jbig2dec.
f65434b9 77
78%package static
79Summary: Static version of jbig2dec library
9d34e98a 80Summary(pl.UTF-8): Statyczna wersja biblioteki jbig2dec
cd313560
JB
81Group: Development/Libraries
82Requires: %{name}-devel = %{version}-%{release}
f65434b9 83
84%description static
85Static version of jbig2dec library.
86
c20cf86d 87%description static -l pl.UTF-8
cd313560 88Statyczna 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
106rm -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
115rm -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
This page took 0.125702 seconds and 4 git commands to generate.