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: https://ftp.gnu.org/gnu/libunistring/%{realname}-%{version}.tar.xz
10 # Source0-md5: 6b4ea63617bf09d76e5234379e75e7f9
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
20 %define _enable_debug_packages 0
22 %define target i386-mingw32
23 %define target_platform i386-pc-mingw32
25 %define _sysprefix /usr
26 %define _prefix %{_sysprefix}/%{target}
27 %define _libdir %{_prefix}/lib
28 %define _dlldir /usr/share/wine/windows/system
29 %define __cc %{target}-gcc
30 %define __cxx %{target}-g++
33 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
36 # -z options are invalid for mingw linker
37 %define filterout_ld -Wl,-z,.*
38 %define filterout_c -f[-a-z0-9=]*
41 This library provides functions for manipulating Unicode strings and
42 for manipulating C strings according to the Unicode standard.
44 This package contains the cross version for Win32.
46 %description -l pl.UTF-8
47 Ta biblioteka udostępnia funkcje do obsługi łańcuchów unikodowych oraz
48 do obsługi łańcuchów znaków C zgodnie ze standardem Unicode.
50 Ten pakiet zawiera wersję skrośną dla Win32.
53 Summary: Static unistring library (cross MinGW32 version)
54 Summary(pl.UTF-8): Statyczna biblioteka unistring (wersja skrośna MinGW32)
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Static unistring library (cross MinGW32 version).
61 %description static -l pl.UTF-8
62 Statyczna biblioteka unistring (wersja skrośna MinGW32).
65 Summary: DLL unistring library for Windows
66 Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows
67 Group: Applications/Emulators
69 Requires: crossmingw32-libiconv-dll
72 Header files for unistring library.
74 %description dll -l pl.UTF-8
75 Pliki nagłówkowe biblioteki unistring.
78 %setup -q -n %{realname}-%{version}
88 rm -rf $RPM_BUILD_ROOT
91 DESTDIR=$RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT%{_dlldir}
94 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
96 %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring
99 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
100 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
104 rm -rf $RPM_BUILD_ROOT
107 %defattr(644,root,root,755)
108 %doc AUTHORS BUGS ChangeLog NEWS README THANKS
109 %attr(755,root,root) %{_libdir}/libunistring.dll.a
110 %{_libdir}/libunistring.la
111 %{_includedir}/unistring
112 %{_includedir}/uni*.h
115 %defattr(644,root,root,755)
116 %{_libdir}/libunistring.a
119 %defattr(644,root,root,755)
120 %{_dlldir}/libunistring-5.dll