1 %define realname libiconv
2 Summary: Character set conversion library - mingw32 cross version
3 Summary(pl): Biblioteka konwersji zestawów znaków - wersja skro¶na dla mingw32
4 Name: crossmingw32-%{realname}
9 Source0: ftp://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz
10 # Source0-md5: 6bc300365053c815b10b800a21e0bc7e
12 URL: http://www.gnu.org/software/libiconv/
13 BuildRequires: automake
14 BuildRequires: crossmingw32-gcc
15 Requires: crossmingw32-runtime
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define no_install_post_strip 1
20 %define target i386-mingw32
21 %define target_platform i386-pc-mingw32
22 %define _sysprefix /usr
23 %define _prefix %{_sysprefix}/%{target}
25 %define __cc %{target}-gcc
26 %define __cxx %{target}-g++
28 %ifarch alpha sparc sparc64 sparcv9
33 The libiconv library provides an iconv() implementation, for use on
34 systems which don't have one, or whose implementation cannot convert
37 This package contains the cross version for mingw32.
40 Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
41 które takiej funkcji nie posiadaj±, lub na których implementacja nie
42 potrafi konwertowaæ z/do Unikodu.
44 Ten pakiet zawiera wersjê skro¶n± dla mingw32.
47 Summary: %{realname} - DLL library for Windows
48 Summary(pl): %{realname} - biblioteka DLL dla Windows
49 Group: Applications/Emulators
52 %{realname} - DLL library for Windows.
54 %description dll -l pl
55 %{realname} - biblioteka DLL dla Windows.
58 %setup -q -n %{realname}-%{version}
62 cp -f /usr/share/automake/config.sub libcharset/autoconf
63 cp -f /usr/share/automake/config.sub autoconf
66 RANLIB="%{target}-ranlib" \
67 --target="%{target}" \
68 --host="%{target_platform}" \
74 %{target}-strip {,libcharset/}lib/.libs/*.dll
75 %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
83 DESTDIR=$RPM_BUILD_ROOT
85 install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
88 rm -rf $RPM_BUILD_ROOT
91 %defattr(644,root,root,755)
96 %defattr(644,root,root,755)
97 %{_datadir}/wine/windows/system/*