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