]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blob - crossmingw32-gettext.spec
- 1.12.1 version
[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:                crossmingw32-gettext.patch
14 Patch0:         %{realname}-info.patch
15 Patch1:         %{realname}-aclocal.patch
16 Patch2:         %{realname}-killkillkill.patch
17 Patch3:         %{realname}-pl.po-update.patch
18 Patch4:         %{realname}-no_docs.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
50 %build
51 CC=%{target}-gcc ; export CC
52 CXX=%{target}-g++ ; export CXX
53 LD=%{target}-ld ; export LD
54 AR=%{target}-ar ; export AR
55 AS=%{target}-as ; export AS
56 CROSS_COMPILE=1 ; export CROSS_COMPILE
57 CPPFLAGS="-I%{arch}/include" ; export CPPFLAGS
58 RANLIB=%{target}-ranlib ; export RANLIB
59
60 rm -f aclocal.m4 missing
61 %{__libtoolize}
62 %{__aclocal}
63 %{__autoconf}
64 %{__automake}
65 cd gettext-runtime
66 rm -f aclocal.m4 missing
67 %{__libtoolize}
68 %{__aclocal} -I m4 -I ../gettext-tools/m4 -I ../autoconf-lib-link/m4
69 %{__autoconf}
70 %{__automake}
71
72 %configure \
73         --target=%{target} \
74         --host=%{target_platform} \
75         --prefix=%{arch} \
76         --disable-static \
77         --bindir=%{arch}/bin \
78         --libdir=%{arch}/lib \
79         --includedir=%{arch}/include
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 install -d $RPM_BUILD_ROOT%{_mandir}
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %{arch}
This page took 0.06664 seconds and 3 git commands to generate.