]> git.pld-linux.org Git - packages/libtiff.git/blob - libtiff.spec
dfcb6c692904a64412ba87feedf8838c85a26dfe
[packages/libtiff.git] / libtiff.spec
1 #
2 # Conditional build:
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
6 #
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ığı
12 Name:           libtiff
13 Version:        4.2.0
14 Release:        1
15 License:        BSD-like
16 Group:          Libraries
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)
38
39 %description
40 This package is a library of functions that manipulate TIFF images.
41
42 %description -l de.UTF-8
43 Eine Library von Funktionen zur Manipulation von TIFFs.
44
45 %description -l fr.UTF-8
46 Bibliothèque de fonctions pour manipuler des images TIFF.
47
48 %description -l pl.UTF-8
49 Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
50 formacie TIFF.
51
52 %description -l tr.UTF-8
53 Bu paket TIFF resimlerini işleyen fonksiyonlardan oluşan bir
54 kitaplıktır.
55
56 %package devel
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
67 Requires:       xz-devel
68 Requires:       zlib-devel
69 Requires:       zstd-devel >= 1.0.0
70
71 %description devel
72 This package is all you need to develop programs that manipulate tiff
73 images.
74
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.
78
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.
82
83 %description devel -l pl.UTF-8
84 Pakiet ten zawiera wszystko co potrzebujesz przy pisaniu programów
85 operujących na formacie tiff.
86
87 %description devel -l tr.UTF-8
88 tiff resimlerini işleyen programlar yazmak için gerekli dosyalar bu
89 pakette yer alır.
90
91 %package static
92 Summary:        Static version libtiff library
93 Summary(pl.UTF-8):      Biblioteka statyczna libtiff
94 Group:          Development/Libraries
95 Requires:       %{name}-devel = %{version}-%{release}
96
97 %description static
98 Static libtiff library.
99
100 %description static -l pl.UTF-8
101 Statyczna biblioteka libtiff.
102
103 %package cxx
104 Summary:        libtiff C++ streams library
105 Summary(pl.UTF-8):      Biblioteka strumieni C++ dla libtiff
106 Group:          Libraries
107 Requires:       %{name} = %{version}-%{release}
108
109 %description cxx
110 libtiff C++ streams library.
111
112 %description cxx -l pl.UTF-8
113 Biblioteka strumieni C++ dla libtiff.
114
115 %package cxx-devel
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
122
123 %description cxx-devel
124 libtiff C++ streams API.
125
126 %description cxx-devel -l pl.UTF-8
127 API strumieni C++ dla libtiff.
128
129 %package cxx-static
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}
134
135 %description cxx-static
136 libtiff C++ streams static library.
137
138 %description cxx-static -l pl.UTF-8
139 Statyczna biblioteka strumieni C++ dla libtiff.
140
141 %package progs
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}
148
149 %description progs
150 Simple clients for manipulating tiff images.
151
152 %description progs -l de.UTF-8
153 Einfachen Clients zur Manipulation von tiff.
154
155 %description progs -l fr.UTF-8
156 Clients simples pour manipuler de telles images.
157
158 %description progs -l pl.UTF-8
159 Kilka prostych programów do manipulowania na plikach tiff.
160
161 %package progs-gl
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}
166
167 %description progs-gl
168 tiffgt - OpenGL-based tiff viewer.
169
170 %description progs-gl -l pl.UTF-8
171 tiffgt - program do oglądania plików tiff oparty o OpenGL.
172
173 %package doc
174 Summary:        HTML documentation for tiff library and tools
175 Summary(pl.UTF-8):      Dokumentacja w formacie HTML do biblioteki i narzędzi tiff
176 Group:          Documentation
177 BuildArch:      noarch
178
179 %description doc
180 HTML documentation for tiff library and tools.
181
182 %description doc -l pl.UTF-8
183 Dokumentacja w formacie HTML do biblioteki i narzędzi tiff.
184
185 %prep
186 %setup -q -n tiff-%{version}
187 %patch0 -p1
188
189 %build
190 %{__libtoolize}
191 %{__aclocal} -I m4
192 %{__autoconf}
193 %{__autoheader}
194 %{__automake}
195 %configure \
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}
200
201 %{__make}
202
203 %install
204 rm -rf $RPM_BUILD_ROOT
205
206 %{__make} install \
207         DESTDIR=$RPM_BUILD_ROOT
208
209 # libtiff*.la kept - no .pc file for libtiffxx
210
211 %clean
212 rm -rf $RPM_BUILD_ROOT
213
214 %post   -p /sbin/ldconfig
215 %postun -p /sbin/ldconfig
216
217 %files
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
222
223 %files devel
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*
231
232 %files static
233 %defattr(644,root,root,755)
234 %{_libdir}/libtiff.a
235
236 %files cxx
237 %defattr(644,root,root,755)
238 %attr(755,root,root) %{_libdir}/libtiffxx.so.*.*.*
239 %attr(755,root,root) %ghost %{_libdir}/libtiffxx.so.5
240
241 %files cxx-devel
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/libtiffxx.so
244 %{_libdir}/libtiffxx.la
245 %{_includedir}/tiffio.hxx
246
247 %files cxx-static
248 %defattr(644,root,root,755)
249 %{_libdir}/libtiffxx.a
250
251 %files progs
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*
265
266 %if %{with opengl}
267 %files progs-gl
268 %defattr(644,root,root,755)
269 %attr(755,root,root) %{_bindir}/tiffgt
270 %{_mandir}/man1/tiffgt.1*
271 %endif
272
273 %files doc
274 %defattr(644,root,root,755)
275 %{_docdir}/tiff
This page took 0.055111 seconds and 2 git commands to generate.