]>
Commit | Line | Data |
---|---|---|
5d2130e4 | 1 | Summary: XML 1.0 parser - Ming32 cross version |
3cb831d9 | 2 | Summary(pl.UTF-8): Analizator składni XML-a 1.0 - wersja skrośna dla Ming32 |
6359e4d5 JB |
3 | %define realname expat |
4 | Name: crossmingw32-%{realname} | |
5 | Version: 2.0.1 | |
505c22d6 | 6 | Release: 2 |
2f2d778e | 7 | License: Thai Open Source Software Center Ltd (distributable) |
a30c37e1 | 8 | Group: Development/Libraries |
6359e4d5 JB |
9 | Source0: http://dl.sourceforge.net/expat/%{realname}-%{version}.tar.gz |
10 | # Source0-md5: ee8b492592568805593f81f8cdf2a04c | |
11 | Patch0: %{realname}-ac_fixes.patch | |
12 | Patch1: %{realname}-soname.patch | |
2f2d778e | 13 | URL: http://expat.sourceforge.net/ |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
b3b05d57 | 16 | BuildRequires: crossmingw32-gcc |
2f2d778e | 17 | BuildRequires: libtool |
b3b05d57 | 18 | Requires: crossmingw32-runtime |
759d16e8 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2f2d778e | 20 | |
21 | %define no_install_post_strip 1 | |
22 | ||
23 | %define target i386-mingw32 | |
24 | %define target_platform i386-pc-mingw32 | |
960aaac2 | 25 | |
b3b05d57 JB |
26 | %define _sysprefix /usr |
27 | %define _prefix %{_sysprefix}/%{target} | |
3aca424e | 28 | %define _libdir %{_prefix}/lib |
a30c37e1 | 29 | %define _dlldir /usr/share/wine/windows/system |
2f2d778e | 30 | %define __cc %{target}-gcc |
31 | %define __cxx %{target}-g++ | |
32 | ||
505c22d6 JB |
33 | %ifnarch %{ix86} |
34 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
e982d4da | 35 | %define optflags -O2 |
36 | %endif | |
505c22d6 JB |
37 | # -z options are invalid for mingw linker |
38 | %define filterout_ld -Wl,-z,.* | |
e982d4da | 39 | |
2f2d778e | 40 | %description |
41 | Expat is an XML parser written in C. It aims to be fully conforming. | |
42 | It is currently not a validating XML parser. | |
43 | ||
5d2130e4 | 44 | This package contains the cross version for Win32. |
45 | ||
be3c7c98 JR |
46 | %description -l pl.UTF-8 |
47 | Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej | |
48 | zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który | |
49 | potwiedzał by zgodność ze specyfikacją. | |
2f2d778e | 50 | |
be3c7c98 | 51 | Ten pakiet zawiera wersję skrośną dla Win32. |
5d2130e4 | 52 | |
a30c37e1 JB |
53 | %package static |
54 | Summary: Static expat library (cross mingw32 version) | |
55 | Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32) | |
56 | Group: Development/Libraries | |
57 | Requires: %{name} = %{version}-%{release} | |
2f2d778e | 58 | |
a30c37e1 JB |
59 | %description static |
60 | Static expat library (cross mingw32 version). | |
2f2d778e | 61 | |
a30c37e1 JB |
62 | %description static -l pl.UTF-8 |
63 | Statyczna biblioteka expat (wersja skrośna mingw32). | |
64 | ||
65 | %package dll | |
66 | Summary: DLL expat library for Windows | |
67 | Summary(pl.UTF-8): Biblioteka DLL expat dla Windows | |
68 | Group: Applications/Emulators | |
69 | Requires: wine | |
70 | ||
71 | %description dll | |
72 | DLL expat library for Windows. | |
73 | ||
74 | %description dll -l pl.UTF-8 | |
75 | Biblioteka DLL expat dla Windows. | |
2f2d778e | 76 | |
77 | %prep | |
6359e4d5 | 78 | %setup -q -n %{realname}-%{version} |
2f2d778e | 79 | %patch0 -p1 |
80 | %patch1 -p1 | |
2f2d778e | 81 | |
82 | %build | |
2f2d778e | 83 | %{__libtoolize} |
84 | %{__aclocal} | |
85 | %{__autoconf} | |
86 | %configure \ | |
87 | --target=%{target} \ | |
e8288e84 | 88 | --host=%{target} |
89 | ||
7181f99e | 90 | %{__make} buildlib |
2f2d778e | 91 | |
92 | %install | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
7181f99e | 95 | %{__make} installlib \ |
2f2d778e | 96 | DESTDIR=$RPM_BUILD_ROOT |
97 | ||
a30c37e1 JB |
98 | install -d $RPM_BUILD_ROOT%{_dlldir} |
99 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
100 | ||
c3f78ef5 | 101 | %if 0%{!?debug:1} |
a30c37e1 | 102 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
c3f78ef5 JB |
103 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
104 | %endif | |
105 | ||
a30c37e1 JB |
106 | rm -rf $RPM_BUILD_ROOT%{_datadir}/man |
107 | ||
2f2d778e | 108 | %clean |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | ||
111 | %files | |
b3b05d57 | 112 | %defattr(644,root,root,755) |
b3b05d57 JB |
113 | %{_libdir}/libexpat.dll.a |
114 | %{_libdir}/libexpat.la | |
d4e689a3 | 115 | %{_includedir}/expat*.h |
a30c37e1 JB |
116 | |
117 | %files static | |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libexpat.a | |
120 | ||
121 | %files dll | |
122 | %defattr(644,root,root,755) | |
123 | %{_dlldir}/libexpat-0.dll |