]>
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 |
057472cc JB |
3 | %define realname libiconv |
4 | Name: crossmingw32-%{realname} | |
3b5ca684 | 5 | Version: 1.13 |
d448d73b | 6 | Release: 1 |
057472cc | 7 | License: LGPL v2+ |
bdbdd5a9 | 8 | Group: Development/Libraries |
057472cc | 9 | Source0: http://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz |
3b5ca684 | 10 | # Source0-md5: 048032a3032ebd182150bdee30a5d533 |
61701235 | 11 | URL: http://www.gnu.org/software/libiconv/ |
02669876 | 12 | BuildRequires: automake |
1c2c06ec | 13 | BuildRequires: crossmingw32-gcc |
d448d73b JB |
14 | # because of broken w32 relink in libtool |
15 | BuildConflicts: crossmingw32-libiconv < 1.10 | |
ceff60a8 JB |
16 | Requires: crossmingw32-runtime |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61701235 | 18 | |
19 | %define no_install_post_strip 1 | |
20 | ||
21 | %define target i386-mingw32 | |
22 | %define target_platform i386-pc-mingw32 | |
4bed20cc | 23 | |
ceff60a8 JB |
24 | %define _sysprefix /usr |
25 | %define _prefix %{_sysprefix}/%{target} | |
d642e563 | 26 | %define _libdir %{_prefix}/lib |
bdbdd5a9 | 27 | %define _dlldir /usr/share/wine/windows/system |
61701235 | 28 | %define __cc %{target}-gcc |
29 | %define __cxx %{target}-g++ | |
30 | ||
057472cc JB |
31 | %ifnarch %{ix86} |
32 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
4308b81c | 33 | %define optflags -O2 |
34 | %endif | |
3b5ca684 JB |
35 | # -z options are invalid for mingw linker |
36 | %define filterout_ld -Wl,-z,.* | |
4308b81c | 37 | |
61701235 | 38 | %description |
d57663a5 | 39 | The libiconv library provides an iconv() implementation, for use on |
40 | systems which don't have one, or whose implementation cannot convert | |
41 | from/to Unicode. | |
42 | ||
1c2c06ec JB |
43 | This package contains the cross version for mingw32. |
44 | ||
46dadd27 JR |
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. | |
d57663a5 | 49 | |
46dadd27 | 50 | Ten pakiet zawiera wersję skrośną dla mingw32. |
61701235 | 51 | |
bdbdd5a9 JB |
52 | %package static |
53 | Summary: Static iconv libraries (cross mingw32 version) | |
54 | Summary(pl.UTF-8): Statyczne biblioteki iconv (wersja skrośna mingw32) | |
55 | Group: Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description static | |
59 | Static iconv libraries (cross mingw32 version). | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczne biblioteki iconv (wersja skrośna mingw32). | |
63 | ||
02669876 | 64 | %package dll |
bdbdd5a9 JB |
65 | Summary: DLL iconv libraries for Windows |
66 | Summary(pl.UTF-8): Biblioteki DLL iconv dla Windows | |
02669876 | 67 | Group: Applications/Emulators |
bdbdd5a9 | 68 | Requires: wine |
02669876 | 69 | |
70 | %description dll | |
bdbdd5a9 | 71 | DLL iconv libraries for Windows. |
02669876 | 72 | |
46dadd27 | 73 | %description dll -l pl.UTF-8 |
bdbdd5a9 | 74 | Biblioteki DLL iconv dla Windows. |
02669876 | 75 | |
61701235 | 76 | %prep |
057472cc | 77 | %setup -q -n %{realname}-%{version} |
61701235 | 78 | |
79 | %build | |
057472cc JB |
80 | cp -f /usr/share/automake/config.sub libcharset/build-aux |
81 | cp -f /usr/share/automake/config.sub build-aux | |
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 |