]>
Commit | Line | Data |
---|---|---|
1c2c06ec | 1 | Summary: Character set conversion library - mingw32 cross version |
83f8bd69 | 2 | Summary(pl.UTF-8): Biblioteka konwersji zestawów znaków - wersja skrośna dla mingw32 |
4bed20cc | 3 | %define _realname libiconv |
4 | Name: crossmingw32-%{_realname} | |
20246ebc | 5 | Version: 1.11 |
d448d73b | 6 | Release: 1 |
61701235 | 7 | License: LGPL |
8 | Group: Libraries | |
4bed20cc | 9 | Source0: ftp://ftp.gnu.org/gnu/libiconv/%{_realname}-%{version}.tar.gz |
20246ebc | 10 | # Source0-md5: b77a17e4a5a817100ad4b2613935055e |
ceff60a8 | 11 | Patch0: %{name}.patch |
61701235 | 12 | URL: http://www.gnu.org/software/libiconv/ |
02669876 | 13 | BuildRequires: automake |
1c2c06ec | 14 | BuildRequires: crossmingw32-gcc |
d448d73b JB |
15 | # because of broken w32 relink in libtool |
16 | BuildConflicts: crossmingw32-libiconv < 1.10 | |
ceff60a8 JB |
17 | Requires: crossmingw32-runtime |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61701235 | 19 | |
20 | %define no_install_post_strip 1 | |
21 | ||
22 | %define target i386-mingw32 | |
23 | %define target_platform i386-pc-mingw32 | |
4bed20cc | 24 | %define arch %{_prefix}/%{target} |
25 | %define gccarch %{_prefix}/lib/gcc-lib/%{target} | |
26 | %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version} | |
27 | ||
ceff60a8 JB |
28 | %define _sysprefix /usr |
29 | %define _prefix %{_sysprefix}/%{target} | |
4bed20cc | 30 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
61701235 | 31 | %define __cc %{target}-gcc |
32 | %define __cxx %{target}-g++ | |
33 | ||
4308b81c | 34 | %ifarch alpha sparc sparc64 sparcv9 |
35 | %define optflags -O2 | |
36 | %endif | |
37 | ||
61701235 | 38 | %description |
d57663a5 | 39 | The libiconv library provides an iconv() implementation, for use on |
40 | systems which don't have one, or whose implementation cannot convert | |
41 | from/to Unicode. | |
42 | ||
1c2c06ec JB |
43 | This package contains the cross version for mingw32. |
44 | ||
46dadd27 JR |
45 | %description -l pl.UTF-8 |
46 | Ta biblioteka dostarcza implementację iconv() do używania z systemami, | |
47 | które takiej funkcji nie posiadają, lub na których implementacja nie | |
48 | potrafi konwertować z/do Unikodu. | |
d57663a5 | 49 | |
46dadd27 | 50 | Ten pakiet zawiera wersję skrośną dla mingw32. |
61701235 | 51 | |
02669876 | 52 | %package dll |
4bed20cc | 53 | Summary: %{_relaname} - DLL library for Windows |
54 | Summary(pl.UTF-8): %{_relaname} - biblioteka DLL dla Windows | |
02669876 | 55 | Group: Applications/Emulators |
56 | ||
57 | %description dll | |
4bed20cc | 58 | %{_realname} - DLL library for Windows. |
02669876 | 59 | |
46dadd27 | 60 | %description dll -l pl.UTF-8 |
4bed20cc | 61 | %{_realname} - biblioteka DLL dla Windows. |
02669876 | 62 | |
61701235 | 63 | %prep |
4bed20cc | 64 | %setup -q -n %{_realname}-%{version} |
61701235 | 65 | %patch0 -p1 |
66 | ||
67 | %build | |
4c6026be | 68 | cp -f /usr/share/automake/config.sub libcharset/autoconf |
69 | cp -f /usr/share/automake/config.sub autoconf | |
61701235 | 70 | %configure \ |
02669876 | 71 | --target="%{target}" \ |
c28ed475 | 72 | --host="%{target}" \ |
02669876 | 73 | --enable-static |
ceff60a8 | 74 | |
61701235 | 75 | %{__make} |
76 | ||
02669876 | 77 | %if 0%{!?debug:1} |
78 | %{target}-strip {,libcharset/}lib/.libs/*.dll | |
79 | %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a | |
80 | %endif | |
81 | ||
61701235 | 82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
02669876 | 84 | install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system |
61701235 | 85 | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
02669876 | 89 | install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system |
ceff60a8 | 90 | |
61701235 | 91 | %clean |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %files | |
1c2c06ec | 95 | %defattr(644,root,root,755) |
02669876 | 96 | %{_libdir}/* |
ceff60a8 | 97 | %{_includedir}/*.h |
02669876 | 98 | |
99 | %files dll | |
100 | %defattr(644,root,root,755) | |
4bed20cc | 101 | %{_bindir}/lib*.dll |
02669876 | 102 | %{_datadir}/wine/windows/system/* |