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