]>
Commit | Line | Data |
---|---|---|
66d412c6 JB |
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} | |
586430fa | 5 | Version: 0.9.5 |
66d412c6 JB |
6 | Release: 1 |
7 | License: LGPL v3+ | |
8 | Group: Libraries | |
e9aa690f | 9 | Source0: http://ftp.gnu.org/gnu/libunistring/%{realname}-%{version}.tar.xz |
586430fa | 10 | # Source0-md5: 6f8766d0b0497380d725639e19c04310 |
66d412c6 JB |
11 | URL: http://gnu.org/software/libunistring/ |
12 | BuildRequires: crossmingw32-gcc | |
38b9d7d3 | 13 | BuildRequires: crossmingw32-libiconv |
e9aa690f JB |
14 | BuildRequires: tar >= 1:1.22 |
15 | BuildRequires: xz | |
38b9d7d3 | 16 | Requires: crossmingw32-libiconv |
66d412c6 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %define no_install_post_strip 1 | |
20 | ||
21 | %define target i386-mingw32 | |
22 | %define target_platform i386-pc-mingw32 | |
23 | ||
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++ | |
30 | ||
31 | %ifnarch %{ix86} | |
32 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
33 | %define optflags -O2 | |
34 | %endif | |
35 | # -z options are invalid for mingw linker | |
36 | %define filterout_ld -Wl,-z,.* | |
e9aa690f | 37 | %define filterout_c -f[-a-z0-9=]* |
66d412c6 JB |
38 | |
39 | %description | |
40 | This library provides functions for manipulating Unicode strings and | |
41 | for manipulating C strings according to the Unicode standard. | |
42 | ||
43 | This package contains the cross version for Win32. | |
44 | ||
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. | |
48 | ||
49 | Ten pakiet zawiera wersję skrośną dla Win32. | |
50 | ||
51 | %package static | |
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} | |
56 | ||
57 | %description static | |
58 | Static unistring library (cross MinGW32 version). | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka unistring (wersja skrośna MinGW32). | |
62 | ||
63 | %package dll | |
64 | Summary: DLL unistring library for Windows | |
65 | Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows | |
66 | Group: Applications/Emulators | |
67 | Requires: wine | |
38b9d7d3 | 68 | Requires: crossmingw32-libiconv-dll |
66d412c6 JB |
69 | |
70 | %description dll | |
71 | Header files for unistring library. | |
72 | ||
73 | %description dll -l pl.UTF-8 | |
74 | Pliki nagłówkowe biblioteki unistring. | |
75 | ||
76 | %prep | |
77 | %setup -q -n %{realname}-%{version} | |
78 | ||
79 | %build | |
80 | %configure \ | |
81 | --target=%{target} \ | |
82 | --host=%{target} | |
83 | ||
84 | %{__make} | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR=$RPM_BUILD_ROOT | |
91 | ||
92 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
93 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
94 | ||
95 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring | |
96 | ||
97 | %if 0%{!?debug:1} | |
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 | |
100 | %endif | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %files | |
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 | |
112 | ||
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libunistring.a | |
116 | ||
117 | %files dll | |
118 | %defattr(644,root,root,755) | |
e9aa690f | 119 | %{_dlldir}/libunistring-2.dll |