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