]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blob - crossmingw32-gettext.spec
- updated to 0.13.1
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
1 %define         realname                gettext
2 Summary:        gettext libraries - cross mingw32 version
3 Summary(pl):    Biblioteki gettext - wersja skro¶na dla mingw32
4 Name:           crossmingw32-%{realname}
5 Version:        0.13.1
6 Release:        1
7 License:        LGPL
8 Group:          Libraries
9 Source0:        ftp://ftp.gnu.org/pub/gnu/gettext/%{realname}-%{version}.tar.gz
10 # Source0-md5:  b3477289185e7781527345c14a4565de
11 Patch0:         %{realname}-info.patch
12 Patch1:         %{realname}-killkillkill.patch
13 Patch2:         %{realname}-pl.po-update.patch
14 Patch3:         %{realname}-am18.patch
15 Patch4:         %{name}.patch
16 URL:            http://www.gnu.org/software/gettext/
17 BuildRequires:  autoconf >= 2.57
18 BuildRequires:  automake >= 1.7.5
19 BuildRequires:  crossmingw32-gcc
20 BuildRequires:  crossmingw32-libiconv
21 BuildRequires:  libtool
22 Requires:       crossmingw32-libiconv
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %define         no_install_post_strip   1
26
27 %define         target                  i386-mingw32
28 %define         target_platform         i386-pc-mingw32
29 %define         _sysprefix              /usr
30 %define         _prefix                 %{_sysprefix}/%{target}
31
32 %define         __cc                    %{target}-gcc
33 %define         __cxx                   %{target}-g++
34
35 %description
36 gettext libraries - cross mingw32 version.
37
38 %description -l pl
39 Biblioteki gettext - wersja skro¶na dla mingw32.
40
41 %prep
42 %setup -q -n %{realname}-%{version}
43 %patch0 -p1
44 %patch1 -p1
45 %patch2 -p1
46 %patch3 -p1
47 %patch4 -p1
48
49 %build
50 %{__libtoolize}
51 %{__aclocal}
52 %{__autoconf}
53 %{__automake}
54 cd gettext-runtime
55 %{__libtoolize}
56 %{__aclocal} -I m4 -I ../autoconf-lib-link/m4 -I ../gettext-tools/m4 -I ../config/m4
57 %{__autoconf}
58 %{__automake}
59 cd ..
60
61 %configure \
62         AR="%{target}-ar" \
63         RANLIB="%{target}-ranlib" \
64         --target=%{target} \
65         --host=%{target_platform} \
66         --disable-static
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 %if 0%{!?debug:1}
76 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
77 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
78 %endif
79
80 %clean
81 rm -rf $RPM_BUILD_ROOT
82
83 %files
84 %defattr(644,root,root,755)
85 %{_bindir}/libintl-2.dll
86 %{_libdir}/libasprintf.a
87 %{_libdir}/libasprintf.la
88 %{_libdir}/libintl.dll.a
89 %{_libdir}/libintl.la
90 %{_includedir}/*.h
This page took 0.043035 seconds and 3 git commands to generate.