]>
Commit | Line | Data |
---|---|---|
aaf747bd | 1 | Summary: Library for handling TIFF files - cross Mingw32 version |
9c36ab3b | 2 | Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF - wersja skrośna Mingw32 |
9a892315 JB |
3 | %define realname libtiff |
4 | Name: crossmingw32-%{realname} | |
f8c1134e | 5 | Version: 3.9.4 |
aaf747bd | 6 | Release: 1 |
7 | License: BSD-like | |
9c36ab3b | 8 | Group: Development/Libraries |
aaf747bd | 9 | Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz |
f8c1134e | 10 | # Source0-md5: 2006c1bdd12644dbf02956955175afd6 |
9a892315 | 11 | Patch0: %{realname}-sec.patch |
ede1b237 JB |
12 | Patch1: %{realname}-glut.patch |
13 | Patch2: %{realname}-CVE-2009-2285.patch | |
aaf747bd | 14 | URL: http://www.remotesensing.org/libtiff/ |
aaf747bd | 15 | BuildRequires: autoconf >= 2.59 |
ede1b237 | 16 | BuildRequires: automake >= 1:1.11 |
99ba0ced | 17 | BuildRequires: crossmingw32-gcc-c++ |
aaf747bd | 18 | BuildRequires: crossmingw32-libjpeg |
19 | BuildRequires: crossmingw32-zlib | |
20 | BuildRequires: libtool | |
9c36ab3b JB |
21 | Requires: crossmingw32-libjpeg |
22 | Requires: crossmingw32-zlib | |
aaf747bd | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
aaf747bd | 25 | %define no_install_post_strip 1 |
26 | ||
27 | %define target i386-mingw32 | |
28 | %define target_platform i386-pc-mingw32 | |
aaf747bd | 29 | |
30 | %define _sysprefix /usr | |
31 | %define _prefix %{_sysprefix}/%{target} | |
9a892315 | 32 | %define _libdir %{_prefix}/lib |
9c36ab3b | 33 | %define _dlldir /usr/share/windows/wine/system |
aaf747bd | 34 | %define __cc %{target}-gcc |
35 | %define __cxx %{target}-g++ | |
36 | ||
ede1b237 JB |
37 | %ifnarch %{ix86} |
38 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
39 | %define optflags -O2 | |
40 | %endif | |
41 | # -z options are invalid for mingw linker | |
42 | %define filterout_ld -Wl,-z,.* | |
43 | ||
aaf747bd | 44 | %description |
9c36ab3b JB |
45 | This package is a library of functions that manipulate TIFF images |
46 | (cross mingw32 version). | |
aaf747bd | 47 | |
48 | %description -l pl.UTF-8 | |
49 | Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w | |
9c36ab3b JB |
50 | formacie TIFF (w wersji skrośnej mingw32). |
51 | ||
52 | %package static | |
53 | Summary: Static libtiff library (cross mingw32 version) | |
54 | Summary(pl.UTF-8): Statyczna biblioteka libtiff (wersja skrośna mingw32) | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static libtiff library (cross mingw32 version). | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczna biblioteka libtiff (wersja skrośna mingw32). | |
aaf747bd | 63 | |
9c36ab3b JB |
64 | %package dll |
65 | Summary: DLL libtiff library for Windows | |
66 | Summary(pl.UTF-8): Biblioteka DLL libtiff dla Windows | |
67 | Group: Applications/Emulators | |
68 | Requires: wine | |
69 | Requires: crossmingw32-libjpeg-dll | |
70 | Requires: crossmingw32-zlib-dll | |
71 | ||
72 | %description dll | |
73 | DLL libtiff library for Windows. | |
74 | ||
75 | %description dll -l pl.UTF-8 | |
76 | Biblioteka DLL libtiff dla Windows. | |
aaf747bd | 77 | |
78 | %package cxx | |
9c36ab3b JB |
79 | Summary: libtiff C++ streams library (cross mingw32 version) |
80 | Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32) | |
81 | Group: Development/Libraries | |
aaf747bd | 82 | Requires: %{name} = %{version}-%{release} |
83 | ||
84 | %description cxx | |
9c36ab3b | 85 | libtiff C++ streams library (cross mingw32 version). |
aaf747bd | 86 | |
87 | %description cxx -l pl.UTF-8 | |
9c36ab3b JB |
88 | Biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32). |
89 | ||
90 | %package cxx-static | |
91 | Summary: Static libtiff C++ streams library (cross mingw32 version) | |
92 | Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna mingw32) | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-cxx = %{version}-%{release} | |
95 | ||
96 | %description cxx-static | |
97 | Static libtiff C++ streams library (cross mingw32 version). | |
98 | ||
99 | %description cxx-static -l pl.UTF-8 | |
100 | Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna | |
101 | mingw32). | |
102 | ||
103 | %package cxx-dll | |
104 | Summary: DLL libtiff C++ streams library for Windows | |
105 | Summary(pl.UTF-8): Biblioteka DLL strumieni C++ libtiff dla Windows | |
106 | Group: Applications/Emulators | |
107 | Requires: %{name}-dll = %{version}-%{release} | |
108 | ||
109 | %description cxx-dll | |
110 | DLL libtiff C++ streams library for Windows. | |
111 | ||
112 | %description cxx-dll -l pl.UTF-8 | |
113 | Biblioteka DLL strumieni C++ libtiff dla Windows. | |
aaf747bd | 114 | |
115 | %prep | |
116 | %setup -q -n tiff-%{version} | |
aaf747bd | 117 | %patch0 -p1 |
ede1b237 JB |
118 | %patch1 -p0 |
119 | %patch2 -p1 | |
aaf747bd | 120 | |
ede1b237 | 121 | %{__rm} m4/{libtool,lt*}.m4 |
aaf747bd | 122 | |
123 | %build | |
aaf747bd | 124 | %{__libtoolize} |
125 | %{__aclocal} -I m4 | |
126 | %{__autoconf} | |
127 | %{__autoheader} | |
128 | %{__automake} | |
129 | %configure \ | |
9c36ab3b | 130 | lt_cv_deplibs_check_method=pass_all \ |
aaf747bd | 131 | --target=%{target} \ |
4a078997 | 132 | --host=%{target} \ |
133 | --enable-static | |
aaf747bd | 134 | %{__make} |
135 | ||
136 | %install | |
137 | rm -rf $RPM_BUILD_ROOT | |
aaf747bd | 138 | |
139 | %{__make} install \ | |
140 | DESTDIR=$RPM_BUILD_ROOT | |
141 | ||
9c36ab3b JB |
142 | install -d $RPM_BUILD_ROOT%{_dlldir} |
143 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
144 | ||
145 | %if 0%{!?debug:1} | |
146 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
147 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
148 | %endif | |
149 | ||
150 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man} | |
aaf747bd | 151 | |
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
155 | %files | |
156 | %defattr(644,root,root,755) | |
157 | %doc COPYRIGHT ChangeLog README TODO | |
9c36ab3b | 158 | %{_libdir}/libtiff.dll.a |
aaf747bd | 159 | %{_libdir}/libtiff.la |
aaf747bd | 160 | %{_includedir}/tiff*.h |
161 | ||
9c36ab3b JB |
162 | %files static |
163 | %defattr(644,root,root,755) | |
164 | %{_libdir}/libtiff.a | |
165 | ||
166 | %files dll | |
167 | %defattr(644,root,root,755) | |
168 | %{_dlldir}/libtiff-*.dll | |
169 | ||
aaf747bd | 170 | %files cxx |
171 | %defattr(644,root,root,755) | |
9c36ab3b | 172 | %{_libdir}/libtiffxx.dll.a |
aaf747bd | 173 | %{_libdir}/libtiffxx.la |
aaf747bd | 174 | %{_includedir}/tiffio.hxx |
9c36ab3b JB |
175 | |
176 | %files cxx-static | |
177 | %defattr(644,root,root,755) | |
178 | %{_libdir}/libtiffxx.a | |
179 | ||
180 | %files cxx-dll | |
181 | %defattr(644,root,root,755) | |
182 | %{_dlldir}/libtiffxx-*.dll |