1 %define realname gettext
2 %define snapshot 2003.02.01-1
3 Summary: gettext libraries - cross mingw32 version
4 Summary(pl): Biblioteki gettext - wersja skro¶na dla mingw32
5 Name: crossmingw32-%{realname}
10 #Source0: http://dl.sourceforge.net/mingw/%{realname}-%{version}-%{snapshot}-src.tar.bz2
11 # Source0-md5: 5d4bddd300072315e668247e5b7d5bdb
12 Source0: ftp://ftp.gnu.org/pub/gnu/gettext/%{realname}-%{version}.tar.gz
13 Patch0: %{realname}-info.patch
14 Patch1: %{realname}-aclocal.patch
15 Patch2: %{realname}-killkillkill.patch
16 Patch3: %{realname}-pl.po-update.patch
17 Patch4: %{realname}-no_docs.patch
18 Patch5: crossmingw32-gettext.patch
19 URL: http://www.gnu.org/software/gettext/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: crossmingw32-gcc
23 BuildRequires: crossmingw32-libiconv
24 BuildRequires: gtk-doc >= 0.9-4
25 BuildRequires: libtool
26 BuildRequires: rpm-build >= 4.1-8.2
27 BuildRoot: %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
29 %define no_install_post_strip 1
31 %define target i386-mingw32
32 %define target_platform i386-pc-mingw32
33 %define arch %{_prefix}/%{target}
34 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
35 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
37 %define __cc %{target}-gcc
38 %define __cxx %{target}-g++
41 gettext libraries - cross mingw32 version.
44 Biblioteki gettext - wersja skro¶na dla mingw32.
47 %setup -q -n %{realname}-%{version}
56 CC=%{target}-gcc ; export CC
57 CXX=%{target}-g++ ; export CXX
58 LD=%{target}-ld ; export LD
59 AR=%{target}-ar ; export AR
60 AS=%{target}-as ; export AS
61 CROSS_COMPILE=1 ; export CROSS_COMPILE
62 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
63 RANLIB=%{target}-ranlib ; export RANLIB
65 rm -f aclocal.m4 missing
71 rm -f aclocal.m4 missing
73 %{__aclocal} -I m4 -I ../gettext-tools/m4 -I ../autoconf-lib-link/m4
79 --host=%{target_platform} \
82 --bindir=%{arch}/bin \
83 --libdir=%{arch}/lib \
84 --includedir=%{arch}/include
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_mandir}
92 DESTDIR=$RPM_BUILD_ROOT
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)