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