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: 0c99a05e0c3c153bac1c960f78711155
12 URL: http://www.gnu.org/software/libiconv/
13 #BuildRequires: autoconf >= 2.57
14 #BuildRequires: automake
15 BuildRequires: crossmingw32-gcc
16 #BuildRequires: libtool
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++
31 The libiconv library provides an iconv() implementation, for use on
32 systems which don't have one, or whose implementation cannot convert
35 This package contains the cross version for mingw32.
38 Ta biblioteka dostarcza implementacjê iconv() do u¿ywania z systemami,
39 które takiej funkcji nie posiadaj±, lub na których implementacja nie
40 potrafi konwertowaæ z/do Unikodu.
42 Ten pakiet zawiera wersjê skro¶n± dla mingw32.
45 %setup -q -n %{realname}-%{version}
51 RANLIB="%{target}-ranlib" \
53 --host=%{target_platform} \
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
66 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %{_bindir}/libcharset-1.dll
75 %{_bindir}/libiconv-2.dll
76 %{_libdir}/libcharset.dll.a
77 %{_libdir}/libcharset.la
78 %{_libdir}/libiconv.dll.a
79 %{_libdir}/libiconv.la
80 %{_libdir}/charset.alias