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
7 Summary: Library for handling TIFF files
8 Summary(de.UTF-8): Library zum Verwalten von TIFF-Dateien
9 Summary(fr.UTF-8): Bibliothèque de gestion des fichiers TIFF
10 Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF
11 Summary(tr.UTF-8): TIFF dosyalarını işleme kitaplığı
17 Source0: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz
18 # Source0-md5: 2bbf6db1ddc4a59c89d6986b368fc063
19 Patch0: %{name}-glut.patch
20 URL: http://www.simplesystems.org/libtiff/
21 %{?with_opengl:BuildRequires: OpenGL-glut-devel}
22 BuildRequires: autoconf >= 2.64
23 BuildRequires: automake >= 1:1.11
24 BuildRequires: jbigkit-devel
25 %{?with_libdeflate:BuildRequires: libdeflate-devel}
26 BuildRequires: libjpeg-devel
27 %{?with_jpeg12:BuildRequires: libjpeg12-devel}
28 BuildRequires: libstdc++-devel
29 BuildRequires: libtool >= 2:2.2
30 BuildRequires: libwebp-devel
31 BuildRequires: rpm-build >= 4.6
32 %{?with_opengl:BuildRequires: xorg-lib-libX11-devel}
33 BuildRequires: xz-devel
34 BuildRequires: zlib-devel
35 BuildRequires: zstd-devel >= 1.0.0
36 Requires: zstd >= 1.0.0
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 This package is a library of functions that manipulate TIFF images.
42 %description -l de.UTF-8
43 Eine Library von Funktionen zur Manipulation von TIFFs.
45 %description -l fr.UTF-8
46 Bibliothèque de fonctions pour manipuler des images TIFF.
48 %description -l pl.UTF-8
49 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
52 %description -l tr.UTF-8
53 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
57 Summary: Header files for developing programs using libtiff
58 Summary(de.UTF-8): Header zur Entwicklung von Programmen unter Verwendung von libtiff
59 Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki libtiff
60 Group: Development/Libraries
61 Requires: %{name} = %{version}-%{release}
62 Requires: jbigkit-devel
63 %{?with_libdeflate:Requires: libdeflate-devel}
64 Requires: libjpeg-devel
65 %{?with_jpeg12:Requires: libjpeg12-devel}
66 Requires: libwebp-devel
69 Requires: zstd-devel >= 1.0.0
72 This package is all you need to develop programs that manipulate tiff
75 %description devel -l de.UTF-8
76 Dieses Paket enthält alles, was Sie zum Entwickeln von Programmen zum
77 Bearbeiten von tiff-Bildern benötigen.
79 %description devel -l fr.UTF-8
80 Ce package contient tout le nécessaire pour réaliser des programmes
81 manipulant des images au format tiff.
83 %description devel -l pl.UTF-8
84 Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów
85 operujących na formacie tiff.
87 %description devel -l tr.UTF-8
88 tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu
92 Summary: Static version libtiff library
93 Summary(pl.UTF-8): Biblioteka statyczna libtiff
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
98 Static libtiff library.
100 %description static -l pl.UTF-8
101 Statyczna biblioteka libtiff.
104 Summary: libtiff C++ streams library
105 Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff
107 Requires: %{name} = %{version}-%{release}
110 libtiff C++ streams library.
112 %description cxx -l pl.UTF-8
113 Biblioteka strumieni C++ dla libtiff.
116 Summary: libtiff C++ streams API
117 Summary(pl.UTF-8): API strumieni C++ dla libtiff
118 Group: Development/Libraries
119 Requires: %{name}-cxx = %{version}-%{release}
120 Requires: %{name}-devel = %{version}-%{release}
121 Requires: libstdc++-devel
123 %description cxx-devel
124 libtiff C++ streams API.
126 %description cxx-devel -l pl.UTF-8
127 API strumieni C++ dla libtiff.
130 Summary: libtiff C++ streams static library
131 Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff
132 Group: Development/Libraries
133 Requires: %{name}-cxx-devel = %{version}-%{release}
135 %description cxx-static
136 libtiff C++ streams static library.
138 %description cxx-static -l pl.UTF-8
139 Statyczna biblioteka strumieni C++ dla libtiff.
142 Summary: Simple clients for manipulating tiff images
143 Summary(de.UTF-8): Einfachen Clients zur Manipulation von tiff
144 Summary(fr.UTF-8): Clients simples pour manipuler de telles images
145 Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach tiff
146 Group: Applications/Graphics
147 Requires: %{name} = %{version}-%{release}
150 Simple clients for manipulating tiff images.
152 %description progs -l de.UTF-8
153 Einfachen Clients zur Manipulation von tiff.
155 %description progs -l fr.UTF-8
156 Clients simples pour manipuler de telles images.
158 %description progs -l pl.UTF-8
159 Kilka prostych programów do manipulowania na plikach tiff.
162 Summary: tiffgt - OpenGL-based tiff viewer
163 Summary(pl.UTF-8): tiffgt - program do oglądania plików tiff oparty o OpenGL
164 Group: Applications/Graphics
165 Requires: %{name} = %{version}-%{release}
167 %description progs-gl
168 tiffgt - OpenGL-based tiff viewer.
170 %description progs-gl -l pl.UTF-8
171 tiffgt - program do oglądania plików tiff oparty o OpenGL.
174 Summary: HTML documentation for tiff library and tools
175 Summary(pl.UTF-8): Dokumentacja w formacie HTML do biblioteki i narzędzi tiff
180 HTML documentation for tiff library and tools.
182 %description doc -l pl.UTF-8
183 Dokumentacja w formacie HTML do biblioteki i narzędzi tiff.
186 %setup -q -n tiff-%{version}
196 %{?with_jpeg12:--enable-jpeg12 --with-jpeg12-include-dir=%{_includedir}/libjpeg12 --with-jpeg12-lib=-ljpeg12} \
197 %{!?with_libdeflate:--disable-libdeflate} \
198 --with-docdir=%{_docdir}/tiff \
199 %{!?with_opengl:--without-x}
204 rm -rf $RPM_BUILD_ROOT
207 DESTDIR=$RPM_BUILD_ROOT
209 # libtiff*.la kept - no .pc file for libtiffxx
212 rm -rf $RPM_BUILD_ROOT
214 %post -p /sbin/ldconfig
215 %postun -p /sbin/ldconfig
218 %defattr(644,root,root,755)
219 %doc COPYRIGHT ChangeLog README.md TODO
220 %attr(755,root,root) %{_libdir}/libtiff.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libtiff.so.5
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/libtiff.so
226 %{_libdir}/libtiff.la
227 %{_includedir}/tiff*.h
228 %{_pkgconfigdir}/libtiff-4.pc
229 %{_mandir}/man3/TIFF*.3tiff*
230 %{_mandir}/man3/libtiff.3tiff*
233 %defattr(644,root,root,755)
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libtiffxx.so.*.*.*
239 %attr(755,root,root) %ghost %{_libdir}/libtiffxx.so.5
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libtiffxx.so
244 %{_libdir}/libtiffxx.la
245 %{_includedir}/tiffio.hxx
248 %defattr(644,root,root,755)
249 %{_libdir}/libtiffxx.a
252 %defattr(644,root,root,755)
253 %attr(755,root,root) %{_bindir}/fax2ps
254 %attr(755,root,root) %{_bindir}/fax2tiff
255 %attr(755,root,root) %{_bindir}/pal2rgb
256 %attr(755,root,root) %{_bindir}/ppm2tiff
257 %attr(755,root,root) %{_bindir}/raw2tiff
258 %attr(755,root,root) %{_bindir}/tiff[!g]*
259 %{_mandir}/man1/fax2ps.1*
260 %{_mandir}/man1/fax2tiff.1*
261 %{_mandir}/man1/pal2rgb.1*
262 %{_mandir}/man1/ppm2tiff.1*
263 %{_mandir}/man1/raw2tiff.1*
264 %{_mandir}/man1/tiff[!g]*.1*
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/tiffgt
270 %{_mandir}/man1/tiffgt.1*
274 %defattr(644,root,root,755)