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