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