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