]>
Commit | Line | Data |
---|---|---|
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 | 7 | Summary: Library for handling TIFF files |
de17f669 ER |
8 | Summary(de.UTF-8): Library zum Verwalten von TIFF-Dateien |
9 | Summary(fr.UTF-8): Bibliothèque de gestion des fichiers TIFF | |
c3393b89 | 10 | Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF |
de17f669 | 11 | Summary(tr.UTF-8): TIFF dosyalarını işleme kitaplığı |
12e805ef | 12 | Name: libtiff |
b940a007 | 13 | Version: 4.3.0 |
8c0eba6a | 14 | Release: 1 |
1681c00e | 15 | License: BSD-like |
12e805ef | 16 | Group: Libraries |
dd1b0305 | 17 | Source0: http://download.osgeo.org/libtiff/tiff-%{version}.tar.gz |
b940a007 | 18 | # Source0-md5: 0a2e4744d1426a8fc8211c0cdbc3a1b3 |
078b9114 | 19 | Patch0: %{name}-glut.patch |
4bca8548 | 20 | URL: http://www.simplesystems.org/libtiff/ |
b757d9b6 | 21 | %{?with_opengl:BuildRequires: OpenGL-glut-devel} |
66e083c2 | 22 | BuildRequires: autoconf >= 2.64 |
0903de51 | 23 | BuildRequires: automake >= 1:1.11 |
d13d9e9c | 24 | BuildRequires: jbigkit-devel |
b940a007 | 25 | BuildRequires: lerc-devel |
ee94dc11 | 26 | %{?with_libdeflate:BuildRequires: libdeflate-devel} |
fa9d2f68 | 27 | BuildRequires: libjpeg-devel |
ace3440b | 28 | %{?with_jpeg12:BuildRequires: libjpeg12-devel} |
dd9b3cdb | 29 | BuildRequires: libstdc++-devel |
845fd3d0 | 30 | BuildRequires: libtool >= 2:2.2 |
a662a451 | 31 | BuildRequires: libwebp-devel |
ee94dc11 | 32 | BuildRequires: rpm-build >= 4.6 |
062d5959 JB |
33 | %{?with_opengl:BuildRequires: xorg-lib-libX11-devel} |
34 | BuildRequires: xz-devel | |
b8102648 | 35 | BuildRequires: zlib-devel |
a662a451 JB |
36 | BuildRequires: zstd-devel >= 1.0.0 |
37 | Requires: zstd >= 1.0.0 | |
71d4c69c | 38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
06657097 | 39 | |
40 | %description | |
41 | This package is a library of functions that manipulate TIFF images. | |
42 | ||
43617c5d | 43 | %description -l de.UTF-8 |
96905d58 | 44 | Eine Library von Funktionen zur Manipulation von TIFFs. |
06657097 | 45 | |
43617c5d JR |
46 | %description -l fr.UTF-8 |
47 | Bibliothèque de fonctions pour manipuler des images TIFF. | |
06657097 | 48 | |
43617c5d JR |
49 | %description -l pl.UTF-8 |
50 | Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w | |
f432c827 | 51 | formacie TIFF. |
06657097 | 52 | |
43617c5d JR |
53 | %description -l tr.UTF-8 |
54 | Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir | |
55 | kitaplıktır. | |
06657097 | 56 | |
c2f32c05 | 57 | %package devel |
5d31ce99 | 58 | Summary: Header files for developing programs using libtiff |
de17f669 ER |
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 | |
12e805ef | 61 | Group: Development/Libraries |
1681c00e | 62 | Requires: %{name} = %{version}-%{release} |
d1a9894b | 63 | Requires: jbigkit-devel |
b940a007 | 64 | Requires: lerc-devel |
ee94dc11 | 65 | %{?with_libdeflate:Requires: libdeflate-devel} |
dd9b3cdb | 66 | Requires: libjpeg-devel |
ace3440b | 67 | %{?with_jpeg12:Requires: libjpeg12-devel} |
a662a451 | 68 | Requires: libwebp-devel |
062d5959 | 69 | Requires: xz-devel |
dd9b3cdb | 70 | Requires: zlib-devel |
a662a451 | 71 | Requires: zstd-devel >= 1.0.0 |
06657097 | 72 | |
73 | %description devel | |
74 | This package is all you need to develop programs that manipulate tiff | |
75 | images. | |
76 | ||
43617c5d JR |
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. | |
06657097 | 80 | |
43617c5d JR |
81 | %description devel -l fr.UTF-8 |
82 | Ce package contient tout le nécessaire pour réaliser des programmes | |
06657097 | 83 | manipulant des images au format tiff. |
84 | ||
43617c5d JR |
85 | %description devel -l pl.UTF-8 |
86 | Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów | |
87 | operujących na formacie tiff. | |
ed5d0549 | 88 | |
43617c5d JR |
89 | %description devel -l tr.UTF-8 |
90 | tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu | |
91 | pakette yer alır. | |
06657097 | 92 | |
1681c00e JB |
93 | %package static |
94 | Summary: Static version libtiff library | |
de17f669 | 95 | Summary(pl.UTF-8): Biblioteka statyczna libtiff |
1681c00e JB |
96 | Group: Development/Libraries |
97 | Requires: %{name}-devel = %{version}-%{release} | |
98 | ||
99 | %description static | |
100 | Static libtiff library. | |
101 | ||
43617c5d | 102 | %description static -l pl.UTF-8 |
1681c00e JB |
103 | Statyczna biblioteka libtiff. |
104 | ||
dd9b3cdb JB |
105 | %package cxx |
106 | Summary: libtiff C++ streams library | |
de17f669 | 107 | Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff |
dd9b3cdb JB |
108 | Group: Libraries |
109 | Requires: %{name} = %{version}-%{release} | |
110 | ||
111 | %description cxx | |
112 | libtiff C++ streams library. | |
113 | ||
43617c5d | 114 | %description cxx -l pl.UTF-8 |
dd9b3cdb JB |
115 | Biblioteka strumieni C++ dla libtiff. |
116 | ||
117 | %package cxx-devel | |
118 | Summary: libtiff C++ streams API | |
de17f669 | 119 | Summary(pl.UTF-8): API strumieni C++ dla libtiff |
dd9b3cdb JB |
120 | Group: Development/Libraries |
121 | Requires: %{name}-cxx = %{version}-%{release} | |
122 | Requires: %{name}-devel = %{version}-%{release} | |
123 | Requires: libstdc++-devel | |
124 | ||
125 | %description cxx-devel | |
126 | libtiff C++ streams API. | |
127 | ||
43617c5d | 128 | %description cxx-devel -l pl.UTF-8 |
dd9b3cdb JB |
129 | API strumieni C++ dla libtiff. |
130 | ||
131 | %package cxx-static | |
132 | Summary: libtiff C++ streams static library | |
de17f669 | 133 | Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff |
dd9b3cdb JB |
134 | Group: Development/Libraries |
135 | Requires: %{name}-cxx-devel = %{version}-%{release} | |
136 | ||
137 | %description cxx-static | |
138 | libtiff C++ streams static library. | |
139 | ||
43617c5d | 140 | %description cxx-static -l pl.UTF-8 |
dd9b3cdb JB |
141 | Statyczna biblioteka strumieni C++ dla libtiff. |
142 | ||
c2f32c05 | 143 | %package progs |
12e805ef | 144 | Summary: Simple clients for manipulating tiff images |
de17f669 ER |
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 | |
a109d805 | 148 | Group: Applications/Graphics |
1681c00e | 149 | Requires: %{name} = %{version}-%{release} |
06657097 | 150 | |
151 | %description progs | |
152 | Simple clients for manipulating tiff images. | |
153 | ||
43617c5d | 154 | %description progs -l de.UTF-8 |
06657097 | 155 | Einfachen Clients zur Manipulation von tiff. |
156 | ||
43617c5d | 157 | %description progs -l fr.UTF-8 |
06657097 | 158 | Clients simples pour manipuler de telles images. |
159 | ||
43617c5d JR |
160 | %description progs -l pl.UTF-8 |
161 | Kilka prostych programów do manipulowania na plikach tiff. | |
06657097 | 162 | |
1681c00e JB |
163 | %package progs-gl |
164 | Summary: tiffgt - OpenGL-based tiff viewer | |
de17f669 | 165 | Summary(pl.UTF-8): tiffgt - program do oglądania plików tiff oparty o OpenGL |
1681c00e JB |
166 | Group: Applications/Graphics |
167 | Requires: %{name} = %{version}-%{release} | |
06657097 | 168 | |
1681c00e JB |
169 | %description progs-gl |
170 | tiffgt - OpenGL-based tiff viewer. | |
06657097 | 171 | |
43617c5d JR |
172 | %description progs-gl -l pl.UTF-8 |
173 | tiffgt - program do oglądania plików tiff oparty o OpenGL. | |
06657097 | 174 | |
ee94dc11 JB |
175 | %package doc |
176 | Summary: HTML documentation for tiff library and tools | |
177 | Summary(pl.UTF-8): Dokumentacja w formacie HTML do biblioteki i narzędzi tiff | |
178 | Group: Documentation | |
179 | BuildArch: noarch | |
180 | ||
181 | %description doc | |
182 | HTML documentation for tiff library and tools. | |
183 | ||
184 | %description doc -l pl.UTF-8 | |
185 | Dokumentacja 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 | |
206 | rm -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 |
214 | rm -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 |