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