]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blob - crossmingw32-gettext.spec
- I forgot about patch
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
1
2 %define         realname                gettext
3 %define         snapshot                2003.02.01-1
4 Summary:        iconv
5 Name:           crossmingw32-%{realname}
6 Version:        0.12.1
7 Release:        1
8 License:        LGPL
9 Group:          Libraries
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:  gtk-doc >= 0.9-4
23 BuildRequires:  libtool
24 BuildRequires:  rpm-build >= 4.1-8.2
25 BuildRequires:  crossmingw32-libiconv
26 BuildRoot:      %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
27
28 %define         no_install_post_strip   1
29
30 %define         target                  i386-mingw32
31 %define         target_platform         i386-pc-mingw32
32 %define         arch                    %{_prefix}/%{target}
33 %define         gccarch                 %{_prefix}/lib/gcc-lib/%{target}
34 %define         gcclib                  %{_prefix}/lib/gcc-lib/%{target}/%{version}
35
36 %define         __cc                    %{target}-gcc
37 %define         __cxx                   %{target}-g++
38
39 %description
40 gettext
41
42 %prep
43 %setup -q -n %{realname}-%{version}
44 %patch0 -p1
45 %patch1 -p1
46 %patch2 -p1
47 %patch3 -p1
48 %patch4 -p1
49 %patch5 -p1
50
51 %build
52 CC=%{target}-gcc ; export CC
53 CXX=%{target}-g++ ; export CXX
54 LD=%{target}-ld ; export LD
55 AR=%{target}-ar ; export AR
56 AS=%{target}-as ; export AS
57 CROSS_COMPILE=1 ; export CROSS_COMPILE
58 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
59 RANLIB=%{target}-ranlib ; export RANLIB
60
61 rm -f aclocal.m4 missing
62 %{__libtoolize}
63 %{__aclocal}
64 %{__autoconf}
65 %{__automake}
66 cd gettext-runtime
67 rm -f aclocal.m4 missing
68 %{__libtoolize}
69 %{__aclocal} -I m4 -I ../gettext-tools/m4 -I ../autoconf-lib-link/m4
70 %{__autoconf}
71 %{__automake}
72
73 %configure \
74         --target=%{target} \
75         --host=%{target_platform} \
76         --prefix=%{arch} \
77         --disable-static \
78         --bindir=%{arch}/bin \
79         --libdir=%{arch}/lib \
80         --includedir=%{arch}/include
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_mandir}
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %files
94 %{arch}
This page took 0.034768 seconds and 4 git commands to generate.