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}
9 Source0: http://ftp.gnu.org/gnu/libunistring/%{realname}-%{version}.tar.gz
10 # Source0-md5: db8eca3b64163abadf8c40e5cecc261f
11 URL: http://gnu.org/software/libunistring/
12 BuildRequires: crossmingw32-gcc
13 Requires: crossmingw32-runtime
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define no_install_post_strip 1
18 %define target i386-mingw32
19 %define target_platform i386-pc-mingw32
21 %define _sysprefix /usr
22 %define _prefix %{_sysprefix}/%{target}
23 %define _libdir %{_prefix}/lib
24 %define _dlldir /usr/share/wine/windows/system
25 %define __cc %{target}-gcc
26 %define __cxx %{target}-g++
29 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
32 # -z options are invalid for mingw linker
33 %define filterout_ld -Wl,-z,.*
36 This library provides functions for manipulating Unicode strings and
37 for manipulating C strings according to the Unicode standard.
39 This package contains the cross version for Win32.
41 %description -l pl.UTF-8
42 Ta biblioteka udostępnia funkcje do obsługi łańcuchów unikodowych oraz
43 do obsługi łańcuchów znaków C zgodnie ze standardem Unicode.
45 Ten pakiet zawiera wersję skrośną dla Win32.
48 Summary: Static unistring library (cross MinGW32 version)
49 Summary(pl.UTF-8): Statyczna biblioteka unistring (wersja skrośna MinGW32)
50 Group: Development/Libraries
51 Requires: %{name} = %{version}-%{release}
54 Static unistring library (cross MinGW32 version).
56 %description static -l pl.UTF-8
57 Statyczna biblioteka unistring (wersja skrośna MinGW32).
60 Summary: DLL unistring library for Windows
61 Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows
62 Group: Applications/Emulators
66 Header files for unistring library.
68 %description dll -l pl.UTF-8
69 Pliki nagłówkowe biblioteki unistring.
72 %setup -q -n %{realname}-%{version}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT%{_dlldir}
88 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
90 %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring
93 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
94 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
98 rm -rf $RPM_BUILD_ROOT
101 %defattr(644,root,root,755)
102 %doc AUTHORS BUGS ChangeLog NEWS README THANKS
103 %attr(755,root,root) %{_libdir}/libunistring.dll.a
104 %{_libdir}/libunistring.la
105 %{_includedir}/unistring
106 %{_includedir}/uni*.h
109 %defattr(644,root,root,755)
110 %{_libdir}/libunistring.a
113 %defattr(644,root,root,755)
114 %{_dlldir}/libunistring-*.dll