]>
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 | |
d17eea6e | 63 | Requires: crossmingw32-libiconv-dll |
c9e435aa JB |
64 | Requires: wine |
65 | ||
66 | %description dll | |
67 | DLL gettext libraries for Windows. | |
68 | ||
69 | %description dll -l pl.UTF-8 | |
70 | Biblioteki DLL gettext dla Windows. | |
71 | ||
e86b7230 | 72 | %prep |
db148317 | 73 | %setup -q -n %{_realname}-%{version} |
3cf55ad9 | 74 | %patch0 -p1 |
6a3f6222 | 75 | %patch1 -p1 |
76 | %patch2 -p1 | |
db9d0dcf | 77 | %patch3 -p1 |
e86b7230 | 78 | |
79 | %build | |
e86b7230 | 80 | %{__libtoolize} |
6a3f6222 | 81 | %{__aclocal} |
e86b7230 | 82 | %{__autoconf} |
6a3f6222 | 83 | %{__automake} |
f9b2d210 | 84 | cd autoconf-lib-link |
221fdc2c | 85 | %{__aclocal} -I m4 -I ../m4 |
f9b2d210 JB |
86 | %{__autoconf} |
87 | %{__automake} | |
88 | cd ../gettext-runtime | |
4047acdd | 89 | %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4 |
6a3f6222 | 90 | %{__autoconf} |
91 | %{__automake} | |
59d0034b | 92 | cd .. |
e86b7230 | 93 | |
94 | %configure \ | |
95 | --target=%{target} \ | |
9738850f | 96 | --host=%{target} \ |
f9b2d210 | 97 | --disable-csharp \ |
9738850f | 98 | --enable-static |
99 | ||
e86b7230 | 100 | %{__make} |
101 | ||
102 | %install | |
103 | rm -rf $RPM_BUILD_ROOT | |
e86b7230 | 104 | |
105 | %{__make} install \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
c9e435aa JB |
108 | install -d $RPM_BUILD_ROOT%{_dlldir} |
109 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
110 | ||
59d0034b | 111 | %if 0%{!?debug:1} |
c9e435aa | 112 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
59d0034b JB |
113 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
114 | %endif | |
c9e435aa JB |
115 | |
116 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias | |
117 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gettext,locale,man} | |
118 | rm -rf $RPM_BUILD_ROOT%{_infodir} | |
119 | ||
e86b7230 | 120 | %clean |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %files | |
e5e5fbcf | 124 | %defattr(644,root,root,755) |
0449639a | 125 | %{_libdir}/libintl.dll.a |
7063962d | 126 | %{_libdir}/libintl.la |
7063962d | 127 | %{_libdir}/libasprintf.dll.a |
4c54fa9e | 128 | %{_libdir}/libasprintf.la |
c9e435aa JB |
129 | %{_includedir}/*.h |
130 | ||
131 | %files static | |
132 | %defattr(644,root,root,755) | |
133 | %{_libdir}/libintl.a | |
134 | %{_libdir}/libasprintf.a | |
135 | ||
136 | %files dll | |
137 | %defattr(644,root,root,755) | |
138 | %{_dlldir}/libintl-8.dll | |
139 | %{_dlldir}/libasprintf-0.dll |