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: 0a2e4744d1426a8fc8211c0cdbc3a1b3
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 BuildRequires: lerc-devel
26 %{?with_libdeflate:BuildRequires: libdeflate-devel}
27 BuildRequires: libjpeg-devel
28 %{?with_jpeg12:BuildRequires: libjpeg12-devel}
29 BuildRequires: libstdc++-devel
30 BuildRequires: libtool >= 2:2.2
31 BuildRequires: libwebp-devel
32 BuildRequires: rpm-build >= 4.6
33 %{?with_opengl:BuildRequires: xorg-lib-libX11-devel}
34 BuildRequires: xz-devel
35 BuildRequires: zlib-devel
36 BuildRequires: zstd-devel >= 1.0.0
37 Requires: zstd >= 1.0.0
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 This package is a library of functions that manipulate TIFF images.
43 %description -l de.UTF-8
44 Eine Library von Funktionen zur Manipulation von TIFFs.
46 %description -l fr.UTF-8
47 Bibliothèque de fonctions pour manipuler des images TIFF.
49 %description -l pl.UTF-8
50 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
53 %description -l tr.UTF-8
54 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
58 Summary: Header files for developing programs using libtiff
59 Summary(de.UTF-8): Header zur Entwicklung von Programmen unter Verwendung von libtiff
60 Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki libtiff
61 Group: Development/Libraries
62 Requires: %{name} = %{version}-%{release}
63 Requires: jbigkit-devel
65 %{?with_libdeflate:Requires: libdeflate-devel}
66 Requires: libjpeg-devel
67 %{?with_jpeg12:Requires: libjpeg12-devel}
68 Requires: libwebp-devel
71 Requires: zstd-devel >= 1.0.0
74 This package is all you need to develop programs that manipulate tiff
77 %description devel -l de.UTF-8
78 Dieses Paket enthält alles, was Sie zum Entwickeln von Programmen zum
79 Bearbeiten von tiff-Bildern benötigen.
81 %description devel -l fr.UTF-8
82 Ce package contient tout le nécessaire pour réaliser des programmes
83 manipulant des images au format tiff.
85 %description devel -l pl.UTF-8
86 Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów
87 operujących na formacie tiff.
89 %description devel -l tr.UTF-8
90 tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu
94 Summary: Static version libtiff library
95 Summary(pl.UTF-8): Biblioteka statyczna libtiff
96 Group: Development/Libraries
97 Requires: %{name}-devel = %{version}-%{release}
100 Static libtiff library.
102 %description static -l pl.UTF-8
103 Statyczna biblioteka libtiff.
106 Summary: libtiff C++ streams library
107 Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff
109 Requires: %{name} = %{version}-%{release}
112 libtiff C++ streams library.
114 %description cxx -l pl.UTF-8
115 Biblioteka strumieni C++ dla libtiff.
118 Summary: libtiff C++ streams API
119 Summary(pl.UTF-8): API strumieni C++ dla libtiff
120 Group: Development/Libraries
121 Requires: %{name}-cxx = %{version}-%{release}
122 Requires: %{name}-devel = %{version}-%{release}
123 Requires: libstdc++-devel
125 %description cxx-devel
126 libtiff C++ streams API.
128 %description cxx-devel -l pl.UTF-8
129 API strumieni C++ dla libtiff.
132 Summary: libtiff C++ streams static library
133 Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff
134 Group: Development/Libraries
135 Requires: %{name}-cxx-devel = %{version}-%{release}
137 %description cxx-static
138 libtiff C++ streams static library.
140 %description cxx-static -l pl.UTF-8
141 Statyczna biblioteka strumieni C++ dla libtiff.
144 Summary: Simple clients for manipulating tiff images
145 Summary(de.UTF-8): Einfachen Clients zur Manipulation von tiff
146 Summary(fr.UTF-8): Clients simples pour manipuler de telles images
147 Summary(pl.UTF-8): Kilka prostych programów do manipulowania na plikach tiff
148 Group: Applications/Graphics
149 Requires: %{name} = %{version}-%{release}
152 Simple clients for manipulating tiff images.
154 %description progs -l de.UTF-8
155 Einfachen Clients zur Manipulation von tiff.
157 %description progs -l fr.UTF-8
158 Clients simples pour manipuler de telles images.
160 %description progs -l pl.UTF-8
161 Kilka prostych programów do manipulowania na plikach tiff.
164 Summary: tiffgt - OpenGL-based tiff viewer
165 Summary(pl.UTF-8): tiffgt - program do oglądania plików tiff oparty o OpenGL
166 Group: Applications/Graphics
167 Requires: %{name} = %{version}-%{release}
169 %description progs-gl
170 tiffgt - OpenGL-based tiff viewer.
172 %description progs-gl -l pl.UTF-8
173 tiffgt - program do oglądania plików tiff oparty o OpenGL.
176 Summary: HTML documentation for tiff library and tools
177 Summary(pl.UTF-8): Dokumentacja w formacie HTML do biblioteki i narzędzi tiff
182 HTML documentation for tiff library and tools.
184 %description doc -l pl.UTF-8
185 Dokumentacja w formacie HTML do biblioteki i narzędzi tiff.
188 %setup -q -n tiff-%{version}
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}
206 rm -rf $RPM_BUILD_ROOT
209 DESTDIR=$RPM_BUILD_ROOT
211 # libtiff*.la kept - no .pc file for libtiffxx
214 rm -rf $RPM_BUILD_ROOT
216 %post -p /sbin/ldconfig
217 %postun -p /sbin/ldconfig
220 %defattr(644,root,root,755)
221 %doc COPYRIGHT ChangeLog README.md TODO
222 %attr(755,root,root) %{_libdir}/libtiff.so.*.*.*
223 %attr(755,root,root) %ghost %{_libdir}/libtiff.so.5
226 %defattr(644,root,root,755)
227 %attr(755,root,root) %{_libdir}/libtiff.so
228 %{_libdir}/libtiff.la
229 %{_includedir}/tiff*.h
230 %{_pkgconfigdir}/libtiff-4.pc
231 %{_mandir}/man3/TIFF*.3tiff*
232 %{_mandir}/man3/libtiff.3tiff*
235 %defattr(644,root,root,755)
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_libdir}/libtiffxx.so.*.*.*
241 %attr(755,root,root) %ghost %{_libdir}/libtiffxx.so.5
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/libtiffxx.so
246 %{_libdir}/libtiffxx.la
247 %{_includedir}/tiffio.hxx
250 %defattr(644,root,root,755)
251 %{_libdir}/libtiffxx.a
254 %defattr(644,root,root,755)
255 %attr(755,root,root) %{_bindir}/fax2ps
256 %attr(755,root,root) %{_bindir}/fax2tiff
257 %attr(755,root,root) %{_bindir}/pal2rgb
258 %attr(755,root,root) %{_bindir}/ppm2tiff
259 %attr(755,root,root) %{_bindir}/raw2tiff
260 %attr(755,root,root) %{_bindir}/tiff[!g]*
261 %{_mandir}/man1/fax2ps.1*
262 %{_mandir}/man1/fax2tiff.1*
263 %{_mandir}/man1/pal2rgb.1*
264 %{_mandir}/man1/ppm2tiff.1*
265 %{_mandir}/man1/raw2tiff.1*
266 %{_mandir}/man1/tiff[!g]*.1*
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_bindir}/tiffgt
272 %{_mandir}/man1/tiffgt.1*
276 %defattr(644,root,root,755)