]>
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} | |
5 | Version: 0.9.3 | |
6 | Release: 1 | |
7 | License: LGPL v3+ | |
8 | Group: Libraries | |
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) | |
15 | ||
16 | %define no_install_post_strip 1 | |
17 | ||
18 | %define target i386-mingw32 | |
19 | %define target_platform i386-pc-mingw32 | |
20 | ||
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++ | |
27 | ||
28 | %ifnarch %{ix86} | |
29 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
30 | %define optflags -O2 | |
31 | %endif | |
32 | # -z options are invalid for mingw linker | |
33 | %define filterout_ld -Wl,-z,.* | |
34 | ||
35 | %description | |
36 | This library provides functions for manipulating Unicode strings and | |
37 | for manipulating C strings according to the Unicode standard. | |
38 | ||
39 | This package contains the cross version for Win32. | |
40 | ||
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. | |
44 | ||
45 | Ten pakiet zawiera wersję skrośną dla Win32. | |
46 | ||
47 | %package static | |
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} | |
52 | ||
53 | %description static | |
54 | Static unistring library (cross MinGW32 version). | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka unistring (wersja skrośna MinGW32). | |
58 | ||
59 | %package dll | |
60 | Summary: DLL unistring library for Windows | |
61 | Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows | |
62 | Group: Applications/Emulators | |
63 | Requires: wine | |
64 | ||
65 | %description dll | |
66 | Header files for unistring library. | |
67 | ||
68 | %description dll -l pl.UTF-8 | |
69 | Pliki nagłówkowe biblioteki unistring. | |
70 | ||
71 | %prep | |
72 | %setup -q -n %{realname}-%{version} | |
73 | ||
74 | %build | |
75 | %configure \ | |
76 | --target=%{target} \ | |
77 | --host=%{target} | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
88 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
89 | ||
90 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring | |
91 | ||
92 | %if 0%{!?debug:1} | |
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 | |
95 | %endif | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %files | |
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 | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libunistring.a | |
111 | ||
112 | %files dll | |
113 | %defattr(644,root,root,755) | |
114 | %{_dlldir}/libunistring-*.dll |