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