]>
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} | |
5 | Version: 1.12 | |
d448d73b | 6 | Release: 1 |
057472cc | 7 | License: LGPL v2+ |
bdbdd5a9 | 8 | Group: Development/Libraries |
057472cc JB |
9 | Source0: http://ftp.gnu.org/gnu/libiconv/%{realname}-%{version}.tar.gz |
10 | # Source0-md5: c2be282595751535a618ae0edeb8f648 | |
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} | |
bdbdd5a9 | 26 | %define _dlldir /usr/share/wine/windows/system |
61701235 | 27 | %define __cc %{target}-gcc |
28 | %define __cxx %{target}-g++ | |
29 | ||
057472cc JB |
30 | %ifnarch %{ix86} |
31 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
4308b81c | 32 | %define optflags -O2 |
33 | %endif | |
34 | ||
61701235 | 35 | %description |
d57663a5 | 36 | The libiconv library provides an iconv() implementation, for use on |
37 | systems which don't have one, or whose implementation cannot convert | |
38 | from/to Unicode. | |
39 | ||
1c2c06ec JB |
40 | This package contains the cross version for mingw32. |
41 | ||
46dadd27 JR |
42 | %description -l pl.UTF-8 |
43 | Ta biblioteka dostarcza implementację iconv() do używania z systemami, | |
44 | które takiej funkcji nie posiadają, lub na których implementacja nie | |
45 | potrafi konwertować z/do Unikodu. | |
d57663a5 | 46 | |
46dadd27 | 47 | Ten pakiet zawiera wersję skrośną dla mingw32. |
61701235 | 48 | |
bdbdd5a9 JB |
49 | %package static |
50 | Summary: Static iconv libraries (cross mingw32 version) | |
51 | Summary(pl.UTF-8): Statyczne biblioteki iconv (wersja skrośna mingw32) | |
52 | Group: Development/Libraries | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | Static iconv libraries (cross mingw32 version). | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczne biblioteki iconv (wersja skrośna mingw32). | |
60 | ||
02669876 | 61 | %package dll |
bdbdd5a9 JB |
62 | Summary: DLL iconv libraries for Windows |
63 | Summary(pl.UTF-8): Biblioteki DLL iconv dla Windows | |
02669876 | 64 | Group: Applications/Emulators |
bdbdd5a9 | 65 | Requires: wine |
02669876 | 66 | |
67 | %description dll | |
bdbdd5a9 | 68 | DLL iconv libraries for Windows. |
02669876 | 69 | |
46dadd27 | 70 | %description dll -l pl.UTF-8 |
bdbdd5a9 | 71 | Biblioteki DLL iconv dla Windows. |
02669876 | 72 | |
61701235 | 73 | %prep |
057472cc | 74 | %setup -q -n %{realname}-%{version} |
61701235 | 75 | |
76 | %build | |
057472cc JB |
77 | cp -f /usr/share/automake/config.sub libcharset/build-aux |
78 | cp -f /usr/share/automake/config.sub build-aux | |
61701235 | 79 | %configure \ |
02669876 | 80 | --target="%{target}" \ |
c28ed475 | 81 | --host="%{target}" \ |
02669876 | 82 | --enable-static |
ceff60a8 | 83 | |
61701235 | 84 | %{__make} |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
bdbdd5a9 | 88 | install -d $RPM_BUILD_ROOT%{_dlldir} |
61701235 | 89 | |
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
bdbdd5a9 JB |
93 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
94 | ||
95 | %if 0%{!?debug:1} | |
96 | %{target}-strip -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
97 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
98 | %endif | |
99 | ||
100 | # not used on win32 | |
101 | rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias | |
102 | # runtime only | |
103 | rm -f $RPM_BUILD_ROOT%{_bindir}/iconv | |
104 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale | |
105 | ||
106 | rm -rf $RPM_BUILD_ROOT%{_datadir}/{doc,man} | |
ceff60a8 | 107 | |
61701235 | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %files | |
1c2c06ec | 112 | %defattr(644,root,root,755) |
bdbdd5a9 JB |
113 | %{_libdir}/libcharset.dll.a |
114 | %{_libdir}/libiconv.dll.a | |
115 | %{_libdir}/libcharset.la | |
116 | %{_libdir}/libiconv.la | |
117 | %{_includedir}/iconv.h | |
118 | %{_includedir}/libcharset.h | |
119 | %{_includedir}/localcharset.h | |
120 | ||
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libcharset.a | |
124 | %{_libdir}/libiconv.a | |
02669876 | 125 | |
126 | %files dll | |
127 | %defattr(644,root,root,755) | |
bdbdd5a9 JB |
128 | %{_dlldir}/libcharset-*.dll |
129 | %{_dlldir}/libiconv-*.dll |