]>
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 | |
38b9d7d3 JB |
13 | BuildRequires: crossmingw32-libiconv |
14 | Requires: crossmingw32-libiconv | |
66d412c6 JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %define no_install_post_strip 1 | |
18 | ||
19 | %define target i386-mingw32 | |
20 | %define target_platform i386-pc-mingw32 | |
21 | ||
22 | %define _sysprefix /usr | |
23 | %define _prefix %{_sysprefix}/%{target} | |
24 | %define _libdir %{_prefix}/lib | |
25 | %define _dlldir /usr/share/wine/windows/system | |
26 | %define __cc %{target}-gcc | |
27 | %define __cxx %{target}-g++ | |
28 | ||
29 | %ifnarch %{ix86} | |
30 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
31 | %define optflags -O2 | |
32 | %endif | |
33 | # -z options are invalid for mingw linker | |
34 | %define filterout_ld -Wl,-z,.* | |
35 | ||
36 | %description | |
37 | This library provides functions for manipulating Unicode strings and | |
38 | for manipulating C strings according to the Unicode standard. | |
39 | ||
40 | This package contains the cross version for Win32. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Ta biblioteka udostępnia funkcje do obsługi łańcuchów unikodowych oraz | |
44 | do obsługi łańcuchów znaków C zgodnie ze standardem Unicode. | |
45 | ||
46 | Ten pakiet zawiera wersję skrośną dla Win32. | |
47 | ||
48 | %package static | |
49 | Summary: Static unistring library (cross MinGW32 version) | |
50 | Summary(pl.UTF-8): Statyczna biblioteka unistring (wersja skrośna MinGW32) | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description static | |
55 | Static unistring library (cross MinGW32 version). | |
56 | ||
57 | %description static -l pl.UTF-8 | |
58 | Statyczna biblioteka unistring (wersja skrośna MinGW32). | |
59 | ||
60 | %package dll | |
61 | Summary: DLL unistring library for Windows | |
62 | Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows | |
63 | Group: Applications/Emulators | |
64 | Requires: wine | |
38b9d7d3 | 65 | Requires: crossmingw32-libiconv-dll |
66d412c6 JB |
66 | |
67 | %description dll | |
68 | Header files for unistring library. | |
69 | ||
70 | %description dll -l pl.UTF-8 | |
71 | Pliki nagłówkowe biblioteki unistring. | |
72 | ||
73 | %prep | |
74 | %setup -q -n %{realname}-%{version} | |
75 | ||
76 | %build | |
77 | %configure \ | |
78 | --target=%{target} \ | |
79 | --host=%{target} | |
80 | ||
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | install -d $RPM_BUILD_ROOT%{_dlldir} | |
90 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
91 | ||
92 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring | |
93 | ||
94 | %if 0%{!?debug:1} | |
95 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll | |
96 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a | |
97 | %endif | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS BUGS ChangeLog NEWS README THANKS | |
105 | %attr(755,root,root) %{_libdir}/libunistring.dll.a | |
106 | %{_libdir}/libunistring.la | |
107 | %{_includedir}/unistring | |
108 | %{_includedir}/uni*.h | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
112 | %{_libdir}/libunistring.a | |
113 | ||
114 | %files dll | |
115 | %defattr(644,root,root,755) | |
116 | %{_dlldir}/libunistring-*.dll |