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