- updated to 3.9.5
[packages/crossmingw32-libtiff.git] / crossmingw32-libtiff.spec
CommitLineData
fc43d37a
JB
1Summary: Library for handling TIFF files - cross MinGW32 version
2Summary(pl.UTF-8): Biblioteka do manipulacji plikami w formacie TIFF - wersja skrośna MinGW32
9a892315
JB
3%define realname libtiff
4Name: crossmingw32-%{realname}
89d08bdd 5Version: 3.9.5
aaf747bd 6Release: 1
7License: BSD-like
9c36ab3b 8Group: Development/Libraries
aaf747bd 9Source0: ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
89d08bdd 10# Source0-md5: 8fc7ce3b4e1d0cc8a319336967815084
9a892315 11Patch0: %{realname}-sec.patch
ede1b237
JB
12Patch1: %{realname}-glut.patch
13Patch2: %{realname}-CVE-2009-2285.patch
aaf747bd 14URL: http://www.remotesensing.org/libtiff/
aaf747bd 15BuildRequires: autoconf >= 2.59
ede1b237 16BuildRequires: automake >= 1:1.11
99ba0ced 17BuildRequires: crossmingw32-gcc-c++
aaf747bd 18BuildRequires: crossmingw32-libjpeg
19BuildRequires: crossmingw32-zlib
20BuildRequires: libtool
9c36ab3b
JB
21Requires: crossmingw32-libjpeg
22Requires: crossmingw32-zlib
aaf747bd 23BuildRoot: %{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 45This package is a library of functions that manipulate TIFF images
fc43d37a 46(cross MinGW32 version).
aaf747bd 47
48%description -l pl.UTF-8
49Ten pakiet zawiera bibliotekę pozwalającą manipulować plikami w
fc43d37a 50formacie TIFF (w wersji skrośnej MinGW32).
9c36ab3b
JB
51
52%package static
fc43d37a
JB
53Summary: Static libtiff library (cross MinGW32 version)
54Summary(pl.UTF-8): Statyczna biblioteka libtiff (wersja skrośna MinGW32)
9c36ab3b
JB
55Group: Development/Libraries
56Requires: %{name} = %{version}-%{release}
57
58%description static
fc43d37a 59Static libtiff library (cross MinGW32 version).
9c36ab3b
JB
60
61%description static -l pl.UTF-8
fc43d37a 62Statyczna biblioteka libtiff (wersja skrośna MinGW32).
aaf747bd 63
9c36ab3b
JB
64%package dll
65Summary: DLL libtiff library for Windows
66Summary(pl.UTF-8): Biblioteka DLL libtiff dla Windows
67Group: Applications/Emulators
68Requires: wine
69Requires: crossmingw32-libjpeg-dll
70Requires: crossmingw32-zlib-dll
71
72%description dll
73DLL libtiff library for Windows.
74
75%description dll -l pl.UTF-8
76Biblioteka DLL libtiff dla Windows.
aaf747bd 77
78%package cxx
fc43d37a
JB
79Summary: libtiff C++ streams library (cross MinGW32 version)
80Summary(pl.UTF-8): Biblioteka strumieni C++ dla libtiff (wersja skrośna MinGW32)
9c36ab3b 81Group: Development/Libraries
aaf747bd 82Requires: %{name} = %{version}-%{release}
83
84%description cxx
fc43d37a 85libtiff C++ streams library (cross MinGW32 version).
aaf747bd 86
87%description cxx -l pl.UTF-8
fc43d37a 88Biblioteka strumieni C++ dla libtiff (wersja skrośna MinGW32).
9c36ab3b
JB
89
90%package cxx-static
fc43d37a
JB
91Summary: Static libtiff C++ streams library (cross MinGW32 version)
92Summary(pl.UTF-8): Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna MinGW32)
9c36ab3b
JB
93Group: Development/Libraries
94Requires: %{name}-cxx = %{version}-%{release}
95
96%description cxx-static
fc43d37a 97Static libtiff C++ streams library (cross MinGW32 version).
9c36ab3b
JB
98
99%description cxx-static -l pl.UTF-8
100Statyczna biblioteka strumieni C++ dla libtiff (wersja skrośna
fc43d37a 101MinGW32).
9c36ab3b
JB
102
103%package cxx-dll
104Summary: DLL libtiff C++ streams library for Windows
105Summary(pl.UTF-8): Biblioteka DLL strumieni C++ libtiff dla Windows
106Group: Applications/Emulators
107Requires: %{name}-dll = %{version}-%{release}
108
109%description cxx-dll
110DLL libtiff C++ streams library for Windows.
111
112%description cxx-dll -l pl.UTF-8
113Biblioteka 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
137rm -rf $RPM_BUILD_ROOT
aaf747bd 138
139%{__make} install \
140 DESTDIR=$RPM_BUILD_ROOT
141
9c36ab3b
JB
142install -d $RPM_BUILD_ROOT%{_dlldir}
143mv -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
150rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man}
aaf747bd 151
152%clean
153rm -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
This page took 0.107903 seconds and 4 git commands to generate.