1 Summary: Unicode string library - MinGW32 cross version
2 Summary(pl.UTF-8): Biblioteka do obsługi łańcuchów unikodowych - wersja skrośna dla MinGW32
3 %define realname libunistring
4 Name: crossmingw32-%{realname}
7 License: LGPL v3+ or GPL v2+
9 Source0: http://ftp.gnu.org/gnu/libunistring/%{realname}-%{version}.tar.xz
10 # Source0-md5: 82e0545363d111bfdfec2ddbfe62ffd3
11 URL: http://gnu.org/software/libunistring/
12 BuildRequires: crossmingw32-gcc
13 BuildRequires: crossmingw32-libiconv
14 BuildRequires: tar >= 1:1.22
16 Requires: crossmingw32-libiconv
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define no_install_post_strip 1
21 %define target i386-mingw32
22 %define target_platform i386-pc-mingw32
24 %define _sysprefix /usr
25 %define _prefix %{_sysprefix}/%{target}
26 %define _libdir %{_prefix}/lib
27 %define _dlldir /usr/share/wine/windows/system
28 %define __cc %{target}-gcc
29 %define __cxx %{target}-g++
32 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
35 # -z options are invalid for mingw linker
36 %define filterout_ld -Wl,-z,.*
37 %define filterout_c -f[-a-z0-9=]*
40 This library provides functions for manipulating Unicode strings and
41 for manipulating C strings according to the Unicode standard.
43 This package contains the cross version for Win32.
45 %description -l pl.UTF-8
46 Ta biblioteka udostępnia funkcje do obsługi łańcuchów unikodowych oraz
47 do obsługi łańcuchów znaków C zgodnie ze standardem Unicode.
49 Ten pakiet zawiera wersję skrośną dla Win32.
52 Summary: Static unistring library (cross MinGW32 version)
53 Summary(pl.UTF-8): Statyczna biblioteka unistring (wersja skrośna MinGW32)
54 Group: Development/Libraries
55 Requires: %{name} = %{version}-%{release}
58 Static unistring library (cross MinGW32 version).
60 %description static -l pl.UTF-8
61 Statyczna biblioteka unistring (wersja skrośna MinGW32).
64 Summary: DLL unistring library for Windows
65 Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows
66 Group: Applications/Emulators
68 Requires: crossmingw32-libiconv-dll
71 Header files for unistring library.
73 %description dll -l pl.UTF-8
74 Pliki nagłówkowe biblioteki unistring.
77 %setup -q -n %{realname}-%{version}
87 rm -rf $RPM_BUILD_ROOT
90 DESTDIR=$RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_dlldir}
93 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
95 %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring
98 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
99 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
103 rm -rf $RPM_BUILD_ROOT
106 %defattr(644,root,root,755)
107 %doc AUTHORS BUGS ChangeLog NEWS README THANKS
108 %attr(755,root,root) %{_libdir}/libunistring.dll.a
109 %{_libdir}/libunistring.la
110 %{_includedir}/unistring
111 %{_includedir}/uni*.h
114 %defattr(644,root,root,755)
115 %{_libdir}/libunistring.a
118 %defattr(644,root,root,755)
119 %{_dlldir}/libunistring-2.dll