]>
Commit | Line | Data |
---|---|---|
1 | Summary: gettext libraries - cross mingw32 version | |
2 | Summary(pl.UTF-8): Biblioteki gettext - wersja skrośna dla mingw32 | |
3 | %define _realname gettext | |
4 | Name: crossmingw32-%{_realname} | |
5 | Version: 0.16.1 | |
6 | Release: 1 | |
7 | License: LGPL | |
8 | Group: Development/Libraries | |
9 | Source0: ftp://ftp.gnu.org/gnu/gettext/%{_realname}-%{version}.tar.gz | |
10 | # Source0-md5: 3d9ad24301c6d6b17ec30704a13fe127 | |
11 | Patch0: %{_realname}-info.patch | |
12 | Patch1: %{_realname}-killkillkill.patch | |
13 | Patch2: %{name}.patch | |
14 | Patch3: %{_realname}-localename.patch | |
15 | URL: http://www.gnu.org/software/gettext/ | |
16 | BuildRequires: autoconf >= 2.60 | |
17 | BuildRequires: automake >= 1:1.10 | |
18 | BuildRequires: crossmingw32-gcc | |
19 | BuildRequires: crossmingw32-gcc-c++ | |
20 | BuildRequires: crossmingw32-libiconv | |
21 | BuildRequires: libtool | |
22 | BuildRequires: texinfo | |
23 | Requires: crossmingw32-libiconv | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %define no_install_post_strip 1 | |
27 | ||
28 | %define target i386-mingw32 | |
29 | %define target_platform i386-pc-mingw32 | |
30 | %define arch %{_prefix}/%{target} | |
31 | ||
32 | %define _sysprefix /usr | |
33 | %define _prefix %{_sysprefix}/%{target} | |
34 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig | |
35 | %define _dlldir /usr/share/wine/windows/system | |
36 | %define __cc %{target}-gcc | |
37 | %define __cxx %{target}-g++ | |
38 | ||
39 | %description | |
40 | gettext libraries - cross mingw32 version. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Biblioteki gettext - wersja skrośna dla mingw32. | |
44 | ||
45 | %package static | |
46 | Summary: Static gettext libraries (cross mingw32 version) | |
47 | Summary(pl.UTF-8): Statyczne biblioteki gettext (wersja skrośna mingw32) | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static gettext libraries (cross mingw32 version). | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczne biblioteki gettext (wersja skrośna mingw32). | |
56 | ||
57 | %package dll | |
58 | Summary: DLL gettext libraries for Windows | |
59 | Summary(pl.UTF-8): Biblioteki DLL gettext dla Windows | |
60 | Group: Applications/Emulators | |
61 | Requires: crossmingw32-libiconv-dll | |
62 | Requires: wine | |
63 | ||
64 | %description dll | |
65 | DLL gettext libraries for Windows. | |
66 | ||
67 | %description dll -l pl.UTF-8 | |
68 | Biblioteki DLL gettext dla Windows. | |
69 | ||
70 | %prep | |
71 | %setup -q -n %{_realname}-%{version} | |
72 | %patch0 -p1 | |
73 | %patch1 -p1 | |
74 | %patch2 -p1 | |
75 | %patch3 -p1 | |
76 | ||
77 | %build | |
78 | %{__libtoolize} | |
79 | %{__aclocal} | |
80 | %{__autoconf} | |
81 | %{__automake} | |
82 | cd autoconf-lib-link | |
83 | %{__aclocal} -I m4 -I ../m4 | |
84 | %{__autoconf} | |
85 | %{__automake} | |
86 | cd ../gettext-runtime | |
87 | %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4 | |
88 | %{__autoconf} | |
89 | %{__automake} | |
90 | cd .. | |
91 | ||
92 | %configure \ | |
93 | --target=%{target} \ | |
94 | --host=%{target} \ | |
95 | --disable-csharp \ | |
96 | --enable-static | |
97 | ||
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
103 | %{__make} install \ | |
104 | DESTDIR=$RPM_BUILD_ROOT | |
105 | ||
106 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
107 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
108 | ||
109 | %if 0%{!?debug:1} | |
110 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
111 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
112 | %endif | |
113 | ||
114 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias | |
115 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gettext,locale,man} | |
116 | rm -rf $RPM_BUILD_ROOT%{_infodir} | |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libintl.dll.a | |
124 | %{_libdir}/libintl.la | |
125 | %{_libdir}/libasprintf.dll.a | |
126 | %{_libdir}/libasprintf.la | |
127 | %{_includedir}/*.h | |
128 | ||
129 | %files static | |
130 | %defattr(644,root,root,755) | |
131 | %{_libdir}/libintl.a | |
132 | %{_libdir}/libasprintf.a | |
133 | ||
134 | %files dll | |
135 | %defattr(644,root,root,755) | |
136 | %{_dlldir}/libintl-8.dll | |
137 | %{_dlldir}/libasprintf-0.dll |