1 %define realname libiconv
2 Summary: Character set conversion library - mingw32 cross version
3 Summary(pl.UTF-8): 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: 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 _sysprefix /usr
25 %define _prefix %{_sysprefix}/%{target}
27 %define __cc %{target}-gcc
28 %define __cxx %{target}-g++
30 %ifarch alpha sparc sparc64 sparcv9
35 The libiconv library provides an iconv() implementation, for use on
36 systems which don't have one, or whose implementation cannot convert
39 This package contains the cross version for mingw32.
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.
46 Ten pakiet zawiera wersję skrośną dla mingw32.
49 Summary: %{realname} - DLL library for Windows
50 Summary(pl.UTF-8): %{realname} - biblioteka DLL dla Windows
51 Group: Applications/Emulators
54 %{realname} - DLL library for Windows.
56 %description dll -l pl.UTF-8
57 %{realname} - biblioteka DLL dla Windows.
60 %setup -q -n %{realname}-%{version}
64 cp -f /usr/share/automake/config.sub libcharset/autoconf
65 cp -f /usr/share/automake/config.sub autoconf
68 RANLIB="%{target}-ranlib" \
69 --target="%{target}" \
70 --host="%{target_platform}" \
76 %{target}-strip {,libcharset/}lib/.libs/*.dll
77 %{target}-strip -g -R.comment -R.note {,libcharset/}lib/.libs/*.a
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
85 DESTDIR=$RPM_BUILD_ROOT
87 install {,libcharset/}lib/.libs/*.dll $RPM_BUILD_ROOT%{_datadir}/wine/windows/system
90 rm -rf $RPM_BUILD_ROOT
93 %defattr(644,root,root,755)
98 %defattr(644,root,root,755)
99 %{_datadir}/wine/windows/system/*