1 Summary: Character set conversion library - mingw32 cross version
2 Summary(pl.UTF-8): Biblioteka konwersji zestawów znaków - wersja skrośna dla mingw32
3 %define _realname libiconv
4 Name: crossmingw32-%{_realname}
9 Source0: ftp://ftp.gnu.org/gnu/libiconv/%{_realname}-%{version}.tar.gz
10 # Source0-md5: b77a17e4a5a817100ad4b2613935055e
12 URL: http://www.gnu.org/software/libiconv/
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc
15 # because of broken w32 relink in libtool
16 BuildConflicts: crossmingw32-libiconv < 1.10
17 Requires: crossmingw32-runtime
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 %define no_install_post_strip 1
22 %define target i386-mingw32
23 %define target_platform i386-pc-mingw32
24 %define arch %{_prefix}/%{target}
25 %define gccarch %{_prefix}/lib/gcc-lib/%{target}
26 %define gcclib %{_prefix}/lib/gcc-lib/%{target}/%{version}
28 %define _sysprefix /usr
29 %define _prefix %{_sysprefix}/%{target}
30 %define _pkgconfigdir %{_prefix}/lib/pkgconfig
31 %define __cc %{target}-gcc
32 %define __cxx %{target}-g++
34 %ifarch alpha sparc sparc64 sparcv9
39 The libiconv library provides an iconv() implementation, for use on
40 systems which don't have one, or whose implementation cannot convert
43 This package contains the cross version for mingw32.
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.
50 Ten pakiet zawiera wersję skrośną dla mingw32.
53 Summary: %{_relaname} - DLL library for Windows
54 Summary(pl.UTF-8): %{_relaname} - biblioteka DLL dla Windows
55 Group: Applications/Emulators
58 %{_realname} - DLL library for Windows.
60 %description dll -l pl.UTF-8
61 %{_realname} - biblioteka DLL dla Windows.
64 %setup -q -n %{_realname}-%{version}
68 cp -f /usr/share/automake/config.sub libcharset/autoconf
69 cp -f /usr/share/automake/config.sub autoconf
72 RANLIB="%{target}-ranlib" \
73 --target="%{target}" \
74 --host="%{target_platform}" \
80 %{target}-strip {,libcharset/}lib/.libs/*.dll
81 %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
89 DESTDIR=$RPM_BUILD_ROOT
91 install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
94 rm -rf $RPM_BUILD_ROOT
97 %defattr(644,root,root,755)
102 %defattr(644,root,root,755)
104 %{_datadir}/wine/windows/system/*