]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blob - crossmingw32-gettext.spec
- updated for gettext 0.13 (one hunk failed and not needed now)
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
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}
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:  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)
28
29 %define         no_install_post_strip   1
30
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}
36
37 %define         __cc                    %{target}-gcc
38 %define         __cxx                   %{target}-g++
39
40 %description
41 gettext libraries - cross mingw32 version.
42
43 %description -l pl
44 Biblioteki gettext - wersja skro¶na dla mingw32.
45
46 %prep
47 %setup -q -n %{realname}-%{version}
48 %patch0 -p1
49 %patch1 -p1
50 %patch2 -p1
51 %patch3 -p1
52 %patch4 -p1
53 %patch5 -p1
54
55 %build
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
64
65 rm -f aclocal.m4 missing
66 %{__libtoolize}
67 %{__aclocal}
68 %{__autoconf}
69 %{__automake}
70 cd gettext-runtime
71 rm -f aclocal.m4 missing
72 %{__libtoolize}
73 %{__aclocal} -I m4 -I ../gettext-tools/m4 -I ../autoconf-lib-link/m4
74 %{__autoconf}
75 %{__automake}
76
77 %configure \
78         --target=%{target} \
79         --host=%{target_platform} \
80         --prefix=%{arch} \
81         --disable-static \
82         --bindir=%{arch}/bin \
83         --libdir=%{arch}/lib \
84         --includedir=%{arch}/include
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT%{_mandir}
90
91 %{__make} install \
92         DESTDIR=$RPM_BUILD_ROOT
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
98 %defattr(644,root,root,755)
99 %{arch}
This page took 0.064231 seconds and 3 git commands to generate.