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