]>
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 |
bdbdd5a9 | 8 | Group: Development/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} |
4bed20cc | 25 | |
ceff60a8 JB |
26 | %define _sysprefix /usr |
27 | %define _prefix %{_sysprefix}/%{target} | |
4bed20cc | 28 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
bdbdd5a9 | 29 | %define _dlldir /usr/share/wine/windows/system |
61701235 | 30 | %define __cc %{target}-gcc |
31 | %define __cxx %{target}-g++ | |
32 | ||
bdbdd5a9 | 33 | %ifnarch alpha sparc sparc64 sparcv9 |
4308b81c | 34 | %define optflags -O2 |
35 | %endif | |
36 | ||
61701235 | 37 | %description |
d57663a5 | 38 | The libiconv library provides an iconv() implementation, for use on |
39 | systems which don't have one, or whose implementation cannot convert | |
40 | from/to Unicode. | |
41 | ||
1c2c06ec JB |
42 | This package contains the cross version for mingw32. |
43 | ||
46dadd27 JR |
44 | %description -l pl.UTF-8 |
45 | Ta biblioteka dostarcza implementację iconv() do używania z systemami, | |
46 | które takiej funkcji nie posiadają, lub na których implementacja nie | |
47 | potrafi konwertować z/do Unikodu. | |
d57663a5 | 48 | |
46dadd27 | 49 | Ten pakiet zawiera wersję skrośną dla mingw32. |
61701235 | 50 | |
bdbdd5a9 JB |
51 | %package static |
52 | Summary: Static iconv libraries (cross mingw32 version) | |
53 | Summary(pl.UTF-8): Statyczne biblioteki iconv (wersja skrośna mingw32) | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static iconv libraries (cross mingw32 version). | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczne biblioteki iconv (wersja skrośna mingw32). | |
62 | ||
02669876 | 63 | %package dll |
bdbdd5a9 JB |
64 | Summary: DLL iconv libraries for Windows |
65 | Summary(pl.UTF-8): Biblioteki DLL iconv dla Windows | |
02669876 | 66 | Group: Applications/Emulators |
bdbdd5a9 | 67 | Requires: wine |
02669876 | 68 | |
69 | %description dll | |
bdbdd5a9 | 70 | DLL iconv libraries for Windows. |
02669876 | 71 | |
46dadd27 | 72 | %description dll -l pl.UTF-8 |
bdbdd5a9 | 73 | Biblioteki DLL iconv dla Windows. |
02669876 | 74 | |
61701235 | 75 | %prep |
4bed20cc | 76 | %setup -q -n %{_realname}-%{version} |
61701235 | 77 | %patch0 -p1 |
78 | ||
79 | %build | |
4c6026be | 80 | cp -f /usr/share/automake/config.sub libcharset/autoconf |
81 | cp -f /usr/share/automake/config.sub autoconf | |
61701235 | 82 | %configure \ |
02669876 | 83 | --target="%{target}" \ |
c28ed475 | 84 | --host="%{target}" \ |
02669876 | 85 | --enable-static |
ceff60a8 | 86 | |
61701235 | 87 | %{__make} |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
bdbdd5a9 | 91 | install -d $RPM_BUILD_ROOT%{_dlldir} |
61701235 | 92 | |
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
bdbdd5a9 JB |
96 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
97 | ||
98 | %if 0%{!?debug:1} | |
99 | %{target}-strip -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
100 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
101 | %endif | |
102 | ||
103 | # not used on win32 | |
104 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias | |
105 | # runtime only | |
106 | rm -f $RPM_BUILD_ROOT%{_bindir}/iconv | |
107 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale | |
108 | ||
109 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man} | |
ceff60a8 | 110 | |
61701235 | 111 | %clean |
112 | rm -rf $RPM_BUILD_ROOT | |
113 | ||
114 | %files | |
1c2c06ec | 115 | %defattr(644,root,root,755) |
bdbdd5a9 JB |
116 | %{_libdir}/libcharset.dll.a |
117 | %{_libdir}/libiconv.dll.a | |
118 | %{_libdir}/libcharset.la | |
119 | %{_libdir}/libiconv.la | |
120 | %{_includedir}/iconv.h | |
121 | %{_includedir}/libcharset.h | |
122 | %{_includedir}/localcharset.h | |
123 | ||
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libcharset.a | |
127 | %{_libdir}/libiconv.a | |
02669876 | 128 | |
129 | %files dll | |
130 | %defattr(644,root,root,755) | |
bdbdd5a9 JB |
131 | %{_dlldir}/libcharset-*.dll |
132 | %{_dlldir}/libiconv-*.dll |