]>
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 |
960aaac2 | 3 | %define _realname expat |
4 | Name: crossmingw32-%{_realname} | |
d83d463b JB |
5 | Version: 2.0.0 |
6 | Release: 1 | |
2f2d778e | 7 | License: Thai Open Source Software Center Ltd (distributable) |
a30c37e1 | 8 | Group: Development/Libraries |
960aaac2 | 9 | Source0: http://dl.sourceforge.net/expat/%{_realname}-%{version}.tar.gz |
d83d463b | 10 | # Source0-md5: d945df7f1c0868c5c73cf66ba9596f3f |
960aaac2 | 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 | %define arch %{_prefix}/%{target} |
960aaac2 | 26 | |
b3b05d57 JB |
27 | %define _sysprefix /usr |
28 | %define _prefix %{_sysprefix}/%{target} | |
a30c37e1 | 29 | %define _dlldir /usr/share/wine/windows/system |
2f2d778e | 30 | %define __cc %{target}-gcc |
31 | %define __cxx %{target}-g++ | |
32 | ||
e982d4da | 33 | %ifarch alpha sparc sparc64 sparcv9 |
34 | # alpha's -mieee and sparc's -mtune=* are not valid for target's gcc | |
35 | %define optflags -O2 | |
36 | %endif | |
37 | ||
2f2d778e | 38 | %description |
39 | Expat is an XML parser written in C. It aims to be fully conforming. | |
40 | It is currently not a validating XML parser. | |
41 | ||
5d2130e4 | 42 | This package contains the cross version for Win32. |
43 | ||
be3c7c98 JR |
44 | %description -l pl.UTF-8 |
45 | Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej | |
46 | zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który | |
47 | potwiedzał by zgodność ze specyfikacją. | |
2f2d778e | 48 | |
be3c7c98 | 49 | Ten pakiet zawiera wersję skrośną dla Win32. |
5d2130e4 | 50 | |
a30c37e1 JB |
51 | %package static |
52 | Summary: Static expat library (cross mingw32 version) | |
53 | Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32) | |
54 | Group: Development/Libraries | |
55 | Requires: %{name} = %{version}-%{release} | |
2f2d778e | 56 | |
a30c37e1 JB |
57 | %description static |
58 | Static expat library (cross mingw32 version). | |
2f2d778e | 59 | |
a30c37e1 JB |
60 | %description static -l pl.UTF-8 |
61 | Statyczna biblioteka expat (wersja skrośna mingw32). | |
62 | ||
63 | %package dll | |
64 | Summary: DLL expat library for Windows | |
65 | Summary(pl.UTF-8): Biblioteka DLL expat dla Windows | |
66 | Group: Applications/Emulators | |
67 | Requires: wine | |
68 | ||
69 | %description dll | |
70 | DLL expat library for Windows. | |
71 | ||
72 | %description dll -l pl.UTF-8 | |
73 | Biblioteka DLL expat dla Windows. | |
2f2d778e | 74 | |
75 | %prep | |
960aaac2 | 76 | %setup -q -n %{_realname}-%{version} |
2f2d778e | 77 | %patch0 -p1 |
78 | %patch1 -p1 | |
2f2d778e | 79 | |
80 | %build | |
2f2d778e | 81 | %{__libtoolize} |
82 | %{__aclocal} | |
83 | %{__autoconf} | |
84 | %configure \ | |
85 | --target=%{target} \ | |
e8288e84 | 86 | --host=%{target} |
87 | ||
2f2d778e | 88 | %{__make} |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
a30c37e1 JB |
96 | install -d $RPM_BUILD_ROOT%{_dlldir} |
97 | mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} | |
98 | ||
c3f78ef5 | 99 | %if 0%{!?debug:1} |
a30c37e1 | 100 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
c3f78ef5 JB |
101 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
102 | %endif | |
103 | ||
a30c37e1 JB |
104 | rm -rf $RPM_BUILD_ROOT%{_datadir}/man |
105 | ||
2f2d778e | 106 | %clean |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %files | |
b3b05d57 | 110 | %defattr(644,root,root,755) |
b3b05d57 JB |
111 | %{_libdir}/libexpat.dll.a |
112 | %{_libdir}/libexpat.la | |
d4e689a3 | 113 | %{_includedir}/expat*.h |
a30c37e1 JB |
114 | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/libexpat.a | |
118 | ||
119 | %files dll | |
120 | %defattr(644,root,root,755) | |
121 | %{_dlldir}/libexpat-0.dll |