]> git.pld-linux.org Git - packages/libtiff.git/blame - libtiff.spec
- updated to 4.3.0, adds support for LERC compression
[packages/libtiff.git] / libtiff.spec
CommitLineData
b757d9b6
JK
1#
2# Conditional build:
ee94dc11
JB
3%bcond_without opengl # OpenGL viewer
4%bcond_without libdeflate # libdeflate for faster Deflate support
5%bcond_with jpeg12 # dual 8/12-bit libjpeg mode
b757d9b6 6#
ed5d0549 7Summary: Library for handling TIFF files
de17f669
ER
8Summary(de.UTF-8): Library zum Verwalten von TIFF-Dateien
9Summary(fr.UTF-8): Bibliothèque de gestion des fichiers TIFF
c3393b89 10Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF
de17f669 11Summary(tr.UTF-8): TIFF dosyalarını işleme kitaplığı
12e805ef 12Name: libtiff
b940a007 13Version: 4.3.0
8c0eba6a 14Release: 1
1681c00e 15License: BSD-like
12e805ef 16Group: Libraries
dd1b0305 17Source0: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
b940a007 18# Source0-md5: 0a2e4744d1426a8fc8211c0cdbc3a1b3
078b9114 19Patch0: %{name}-glut.patch
4bca8548 20URL: http://www.simplesystems.org/libtiff/
b757d9b6 21%{?with_opengl:BuildRequires: OpenGL-glut-devel}
66e083c2 22BuildRequires: autoconf >= 2.64
0903de51 23BuildRequires: automake >= 1:1.11
d13d9e9c 24BuildRequires: jbigkit-devel
b940a007 25BuildRequires: lerc-devel
ee94dc11 26%{?with_libdeflate:BuildRequires: libdeflate-devel}
fa9d2f68 27BuildRequires: libjpeg-devel
ace3440b 28%{?with_jpeg12:BuildRequires: libjpeg12-devel}
dd9b3cdb 29BuildRequires: libstdc++-devel
845fd3d0 30BuildRequires: libtool >= 2:2.2
a662a451 31BuildRequires: libwebp-devel
ee94dc11 32BuildRequires: rpm-build >= 4.6
062d5959
JB
33%{?with_opengl:BuildRequires: xorg-lib-libX11-devel}
34BuildRequires: xz-devel
b8102648 35BuildRequires: zlib-devel
a662a451
JB
36BuildRequires: zstd-devel >= 1.0.0
37Requires: zstd >= 1.0.0
71d4c69c 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
06657097 39
40%description
41This package is a library of functions that manipulate TIFF images.
42
43617c5d 43%description -l de.UTF-8
96905d58 44Eine Library von Funktionen zur Manipulation von TIFFs.
06657097 45
43617c5d
JR
46%description -l fr.UTF-8
47Bibliothèque de fonctions pour manipuler des images TIFF.
06657097 48
43617c5d
JR
49%description -l pl.UTF-8
50Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
f432c827 51formacie TIFF.
06657097 52
43617c5d
JR
53%description -l tr.UTF-8
54Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
55kitaplıktır.
06657097 56
c2f32c05 57%package devel
5d31ce99 58Summary: Header files for developing programs using libtiff
de17f669
ER
59Summary(de.UTF-8): Header zur Entwicklung von Programmen unter Verwendung von libtiff
60Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki libtiff
12e805ef 61Group: Development/Libraries
1681c00e 62Requires: %{name} = %{version}-%{release}
d1a9894b 63Requires: jbigkit-devel
b940a007 64Requires: lerc-devel
ee94dc11 65%{?with_libdeflate:Requires: libdeflate-devel}
dd9b3cdb 66Requires: libjpeg-devel
ace3440b 67%{?with_jpeg12:Requires: libjpeg12-devel}
a662a451 68Requires: libwebp-devel
062d5959 69Requires: xz-devel
dd9b3cdb 70Requires: zlib-devel
a662a451 71Requires: zstd-devel >= 1.0.0
06657097 72
73%description devel
74This package is all you need to develop programs that manipulate tiff
75images.
76
43617c5d
JR
77%description devel -l de.UTF-8
78Dieses Paket enthält alles, was Sie zum Entwickeln von Programmen zum
79Bearbeiten von tiff-Bildern benötigen.
06657097 80
43617c5d
JR
81%description devel -l fr.UTF-8
82Ce package contient tout le nécessaire pour réaliser des programmes
06657097 83manipulant des images au format tiff.
84
43617c5d
JR
85%description devel -l pl.UTF-8
86Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów
87operujących na formacie tiff.
ed5d0549 88
43617c5d
JR
89%description devel -l tr.UTF-8
90tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu
91pakette yer alır.
06657097 92
1681c00e
JB
93%package static
94Summary: Static version libtiff library
de17f669 95Summary(pl.UTF-8): Biblioteka statyczna libtiff
1681c00e
JB
96Group: Development/Libraries
97Requires: %{name}-devel = %{version}-%{release}
98
99%description static
100Static libtiff library.
101
43617c5d 102%description static -l pl.UTF-8
1681c00e
JB
103Statyczna biblioteka libtiff.
104
dd9b3cdb
JB
105%package cxx
106Summary: libtiff C++ streams library
de17f669 107Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff
dd9b3cdb
JB
108Group: Libraries
109Requires: %{name} = %{version}-%{release}
110
111%description cxx
112libtiff C++ streams library.
113
43617c5d 114%description cxx -l pl.UTF-8
dd9b3cdb
JB
115Biblioteka strumieni C++ dla libtiff.
116
117%package cxx-devel
118Summary: libtiff C++ streams API
de17f669 119Summary(pl.UTF-8): API strumieni C++ dla libtiff
dd9b3cdb
JB
120Group: Development/Libraries
121Requires: %{name}-cxx = %{version}-%{release}
122Requires: %{name}-devel = %{version}-%{release}
123Requires: libstdc++-devel
124
125%description cxx-devel
126libtiff C++ streams API.
127
43617c5d 128%description cxx-devel -l pl.UTF-8
dd9b3cdb
JB
129API strumieni C++ dla libtiff.
130
131%package cxx-static
132Summary: libtiff C++ streams static library
de17f669 133Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff
dd9b3cdb
JB
134Group: Development/Libraries
135Requires: %{name}-cxx-devel = %{version}-%{release}
136
137%description cxx-static
138libtiff C++ streams static library.
139
43617c5d 140%description cxx-static -l pl.UTF-8
dd9b3cdb
JB
141Statyczna biblioteka strumieni C++ dla libtiff.
142
c2f32c05 143%package progs
12e805ef 144Summary: Simple clients for manipulating tiff images
de17f669
ER
145Summary(de.UTF-8): Einfachen Clients zur Manipulation von tiff
146Summary(fr.UTF-8): Clients simples pour manipuler de telles images
147Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach tiff
a109d805 148Group: Applications/Graphics
1681c00e 149Requires: %{name} = %{version}-%{release}
06657097 150
151%description progs
152Simple clients for manipulating tiff images.
153
43617c5d 154%description progs -l de.UTF-8
06657097 155Einfachen Clients zur Manipulation von tiff.
156
43617c5d 157%description progs -l fr.UTF-8
06657097 158Clients simples pour manipuler de telles images.
159
43617c5d
JR
160%description progs -l pl.UTF-8
161Kilka prostych programów do manipulowania na plikach tiff.
06657097 162
1681c00e
JB
163%package progs-gl
164Summary: tiffgt - OpenGL-based tiff viewer
de17f669 165Summary(pl.UTF-8): tiffgt - program do oglądania plików tiff oparty o OpenGL
1681c00e
JB
166Group: Applications/Graphics
167Requires: %{name} = %{version}-%{release}
06657097 168
1681c00e
JB
169%description progs-gl
170tiffgt - OpenGL-based tiff viewer.
06657097 171
43617c5d
JR
172%description progs-gl -l pl.UTF-8
173tiffgt - program do oglądania plików tiff oparty o OpenGL.
06657097 174
ee94dc11
JB
175%package doc
176Summary: HTML documentation for tiff library and tools
177Summary(pl.UTF-8): Dokumentacja w formacie HTML do biblioteki i narzędzi tiff
178Group: Documentation
179BuildArch: noarch
180
181%description doc
182HTML documentation for tiff library and tools.
183
184%description doc -l pl.UTF-8
185Dokumentacja w formacie HTML do biblioteki i narzędzi tiff.
186
06657097 187%prep
1681c00e 188%setup -q -n tiff-%{version}
062d5959 189%patch0 -p1
98ec66eb 190
06657097 191%build
1681c00e 192%{__libtoolize}
98ec66eb 193%{__aclocal} -I m4
1681c00e
JB
194%{__autoconf}
195%{__autoheader}
196%{__automake}
8d2addb3 197%configure \
ee94dc11
JB
198 %{?with_jpeg12:--enable-jpeg12 --with-jpeg12-include-dir=%{_includedir}/libjpeg12 --with-jpeg12-lib=-ljpeg12} \
199 %{!?with_libdeflate:--disable-libdeflate} \
200 --with-docdir=%{_docdir}/tiff \
201 %{!?with_opengl:--without-x}
1681c00e
JB
202
203%{__make}
06657097 204
205%install
206rm -rf $RPM_BUILD_ROOT
1189da32 207
1681c00e
JB
208%{__make} install \
209 DESTDIR=$RPM_BUILD_ROOT
34ea33ac 210
61c4f216 211# libtiff*.la kept - no .pc file for libtiffxx
062d5959 212
06657097 213%clean
214rm -rf $RPM_BUILD_ROOT
215
b8102648
JB
216%post -p /sbin/ldconfig
217%postun -p /sbin/ldconfig
218
06657097 219%files
c6061f80 220%defattr(644,root,root,755)
8c0eba6a 221%doc COPYRIGHT ChangeLog README.md TODO
dd9b3cdb 222%attr(755,root,root) %{_libdir}/libtiff.so.*.*.*
062d5959 223%attr(755,root,root) %ghost %{_libdir}/libtiff.so.5
06657097 224
225%files devel
1189da32 226%defattr(644,root,root,755)
dd9b3cdb
JB
227%attr(755,root,root) %{_libdir}/libtiff.so
228%{_libdir}/libtiff.la
229%{_includedir}/tiff*.h
062d5959 230%{_pkgconfigdir}/libtiff-4.pc
0903de51
JB
231%{_mandir}/man3/TIFF*.3tiff*
232%{_mandir}/man3/libtiff.3tiff*
06657097 233
1681c00e
JB
234%files static
235%defattr(644,root,root,755)
dd9b3cdb
JB
236%{_libdir}/libtiff.a
237
238%files cxx
239%defattr(644,root,root,755)
4f61b455 240%attr(755,root,root) %{_libdir}/libtiffxx.so.*.*.*
062d5959 241%attr(755,root,root) %ghost %{_libdir}/libtiffxx.so.5
dd9b3cdb
JB
242
243%files cxx-devel
244%defattr(644,root,root,755)
4f61b455
KK
245%attr(755,root,root) %{_libdir}/libtiffxx.so
246%{_libdir}/libtiffxx.la
dd9b3cdb
JB
247%{_includedir}/tiffio.hxx
248
249%files cxx-static
250%defattr(644,root,root,755)
4f61b455 251%{_libdir}/libtiffxx.a
1681c00e 252
06657097 253%files progs
1189da32 254%defattr(644,root,root,755)
062d5959
JB
255%attr(755,root,root) %{_bindir}/fax2ps
256%attr(755,root,root) %{_bindir}/fax2tiff
062d5959
JB
257%attr(755,root,root) %{_bindir}/pal2rgb
258%attr(755,root,root) %{_bindir}/ppm2tiff
062d5959 259%attr(755,root,root) %{_bindir}/raw2tiff
062d5959 260%attr(755,root,root) %{_bindir}/tiff[!g]*
062d5959
JB
261%{_mandir}/man1/fax2ps.1*
262%{_mandir}/man1/fax2tiff.1*
062d5959
JB
263%{_mandir}/man1/pal2rgb.1*
264%{_mandir}/man1/ppm2tiff.1*
062d5959 265%{_mandir}/man1/raw2tiff.1*
062d5959 266%{_mandir}/man1/tiff[!g]*.1*
06657097 267
b757d9b6 268%if %{with opengl}
1681c00e 269%files progs-gl
c6061f80 270%defattr(644,root,root,755)
1681c00e
JB
271%attr(755,root,root) %{_bindir}/tiffgt
272%{_mandir}/man1/tiffgt.1*
b757d9b6 273%endif
ee94dc11
JB
274
275%files doc
276%defattr(644,root,root,755)
277%{_docdir}/tiff
This page took 0.265707 seconds and 4 git commands to generate.