]>
Commit | Line | Data |
---|---|---|
4c54fa9e | 1 | # |
e5e5fbcf | 2 | Summary: gettext libraries - cross mingw32 version |
615485e8 | 3 | Summary(pl.UTF-8): Biblioteki gettext - wersja skrośna dla mingw32 |
db148317 | 4 | %define _realname gettext |
5 | Name: crossmingw32-%{_realname} | |
56f9329a | 6 | Version: 0.16.1 |
e86b7230 | 7 | Release: 1 |
8 | License: LGPL | |
9 | Group: Libraries | |
db148317 | 10 | Source0: ftp://ftp.gnu.org/gnu/gettext/%{_realname}-%{version}.tar.gz |
56f9329a | 11 | # Source0-md5: 3d9ad24301c6d6b17ec30704a13fe127 |
db148317 | 12 | Patch0: %{_realname}-info.patch |
13 | Patch1: %{_realname}-killkillkill.patch | |
f9b2d210 | 14 | Patch2: %{name}.patch |
db9d0dcf | 15 | Patch3: %{_realname}-localename.patch |
e86b7230 | 16 | URL: http://www.gnu.org/software/gettext/ |
024b6753 JB |
17 | BuildRequires: autoconf >= 2.60 |
18 | BuildRequires: automake >= 1:1.10 | |
e5e5fbcf | 19 | BuildRequires: crossmingw32-gcc |
db148317 | 20 | BuildRequires: crossmingw32-gcc-c++ |
e5e5fbcf | 21 | BuildRequires: crossmingw32-libiconv |
e86b7230 | 22 | BuildRequires: libtool |
b3175891 | 23 | BuildRequires: texinfo |
59d0034b JB |
24 | Requires: crossmingw32-libiconv |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
e86b7230 | 26 | |
27 | %define no_install_post_strip 1 | |
28 | ||
29 | %define target i386-mingw32 | |
30 | %define target_platform i386-pc-mingw32 | |
db148317 | 31 | %define arch %{_prefix}/%{target} |
32 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
33 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
34 | ||
59d0034b JB |
35 | %define _sysprefix /usr |
36 | %define _prefix %{_sysprefix}/%{target} | |
db148317 | 37 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
e86b7230 | 38 | %define __cc %{target}-gcc |
39 | %define __cxx %{target}-g++ | |
40 | ||
41 | %description | |
e5e5fbcf JB |
42 | gettext libraries - cross mingw32 version. |
43 | ||
8f9ab6bc JR |
44 | %description -l pl.UTF-8 |
45 | Biblioteki gettext - wersja skrośna dla mingw32. | |
e86b7230 | 46 | |
47 | %prep | |
db148317 | 48 | %setup -q -n %{_realname}-%{version} |
3cf55ad9 | 49 | %patch0 -p1 |
6a3f6222 | 50 | %patch1 -p1 |
51 | %patch2 -p1 | |
db9d0dcf | 52 | %patch3 -p1 |
e86b7230 | 53 | |
54 | %build | |
e86b7230 | 55 | %{__libtoolize} |
6a3f6222 | 56 | %{__aclocal} |
e86b7230 | 57 | %{__autoconf} |
6a3f6222 | 58 | %{__automake} |
f9b2d210 | 59 | cd autoconf-lib-link |
221fdc2c | 60 | %{__aclocal} -I m4 -I ../m4 |
f9b2d210 JB |
61 | %{__autoconf} |
62 | %{__automake} | |
63 | cd ../gettext-runtime | |
4047acdd | 64 | %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4 |
6a3f6222 | 65 | %{__autoconf} |
66 | %{__automake} | |
59d0034b | 67 | cd .. |
e86b7230 | 68 | |
69 | %configure \ | |
0449639a | 70 | AR="%{target}-ar" \ |
71 | RANLIB="%{target}-ranlib" \ | |
e86b7230 | 72 | --target=%{target} \ |
73 | --host=%{target_platform} \ | |
f9b2d210 | 74 | --disable-csharp \ |
59d0034b | 75 | --disable-static |
e86b7230 | 76 | %{__make} |
77 | ||
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
e86b7230 | 80 | |
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
59d0034b JB |
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 | ||
e86b7230 | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %files | |
e5e5fbcf | 93 | %defattr(644,root,root,755) |
0449639a | 94 | %{_bindir}/libintl-8.dll |
95 | %{_libdir}/libintl.dll.a | |
7063962d | 96 | %{_libdir}/libintl.la |
7063962d JB |
97 | %{_bindir}/libasprintf-0.dll |
98 | %{_libdir}/libasprintf.dll.a | |
4c54fa9e | 99 | %{_libdir}/libasprintf.la |
59d0034b | 100 | %{_includedir}/*.h |