]>
Commit | Line | Data |
---|---|---|
e5e5fbcf | 1 | Summary: gettext libraries - cross mingw32 version |
615485e8 | 2 | Summary(pl.UTF-8): Biblioteki gettext - wersja skrośna dla mingw32 |
db148317 | 3 | %define _realname gettext |
4 | Name: crossmingw32-%{_realname} | |
56f9329a | 5 | Version: 0.16.1 |
e86b7230 | 6 | Release: 1 |
7 | License: LGPL | |
c9e435aa | 8 | Group: Development/Libraries |
db148317 | 9 | Source0: ftp://ftp.gnu.org/gnu/gettext/%{_realname}-%{version}.tar.gz |
56f9329a | 10 | # Source0-md5: 3d9ad24301c6d6b17ec30704a13fe127 |
db148317 | 11 | Patch0: %{_realname}-info.patch |
12 | Patch1: %{_realname}-killkillkill.patch | |
f9b2d210 | 13 | Patch2: %{name}.patch |
db9d0dcf | 14 | Patch3: %{_realname}-localename.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 |
c9e435aa | 37 | %define _dlldir /usr/share/wine/windows/system |
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 | |
c9e435aa JB |
47 | %package static |
48 | Summary: Static gettext libraries (cross mingw32 version) | |
49 | Summary(pl.UTF-8): Statyczne biblioteki gettext (wersja skrośna mingw32) | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static gettext libraries (cross mingw32 version). | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczne biblioteki gettext (wersja skrośna mingw32). | |
58 | ||
59 | %package dll | |
60 | Summary: DLL gettext libraries for Windows | |
61 | Summary(pl.UTF-8): Biblioteki DLL gettext dla Windows | |
62 | Group: Applications/Emulators | |
63 | Requires: wine | |
64 | ||
65 | %description dll | |
66 | DLL gettext libraries for Windows. | |
67 | ||
68 | %description dll -l pl.UTF-8 | |
69 | Biblioteki DLL gettext dla Windows. | |
70 | ||
e86b7230 | 71 | %prep |
db148317 | 72 | %setup -q -n %{_realname}-%{version} |
3cf55ad9 | 73 | %patch0 -p1 |
6a3f6222 | 74 | %patch1 -p1 |
75 | %patch2 -p1 | |
db9d0dcf | 76 | %patch3 -p1 |
e86b7230 | 77 | |
78 | %build | |
e86b7230 | 79 | %{__libtoolize} |
6a3f6222 | 80 | %{__aclocal} |
e86b7230 | 81 | %{__autoconf} |
6a3f6222 | 82 | %{__automake} |
f9b2d210 | 83 | cd autoconf-lib-link |
221fdc2c | 84 | %{__aclocal} -I m4 -I ../m4 |
f9b2d210 JB |
85 | %{__autoconf} |
86 | %{__automake} | |
87 | cd ../gettext-runtime | |
4047acdd | 88 | %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4 |
6a3f6222 | 89 | %{__autoconf} |
90 | %{__automake} | |
59d0034b | 91 | cd .. |
e86b7230 | 92 | |
93 | %configure \ | |
94 | --target=%{target} \ | |
9738850f | 95 | --host=%{target} \ |
f9b2d210 | 96 | --disable-csharp \ |
9738850f | 97 | --enable-static |
98 | ||
e86b7230 | 99 | %{__make} |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
e86b7230 | 103 | |
104 | %{__make} install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
c9e435aa JB |
107 | install -d $RPM_BUILD_ROOT%{_dlldir} |
108 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
109 | ||
59d0034b | 110 | %if 0%{!?debug:1} |
c9e435aa | 111 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
59d0034b JB |
112 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
113 | %endif | |
c9e435aa JB |
114 | |
115 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias | |
116 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gettext,locale,man} | |
117 | rm -rf $RPM_BUILD_ROOT%{_infodir} | |
118 | ||
e86b7230 | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %files | |
e5e5fbcf | 123 | %defattr(644,root,root,755) |
0449639a | 124 | %{_libdir}/libintl.dll.a |
7063962d | 125 | %{_libdir}/libintl.la |
7063962d | 126 | %{_libdir}/libasprintf.dll.a |
4c54fa9e | 127 | %{_libdir}/libasprintf.la |
c9e435aa JB |
128 | %{_includedir}/*.h |
129 | ||
130 | %files static | |
131 | %defattr(644,root,root,755) | |
132 | %{_libdir}/libintl.a | |
133 | %{_libdir}/libasprintf.a | |
134 | ||
135 | %files dll | |
136 | %defattr(644,root,root,755) | |
137 | %{_dlldir}/libintl-8.dll | |
138 | %{_dlldir}/libasprintf-0.dll |