]>
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} | |
62803e06 | 5 | Version: 2.2.8 |
ee06e98c | 6 | Release: 1 |
039251e4 | 7 | License: MIT |
a30c37e1 | 8 | Group: Development/Libraries |
b68efd35 | 9 | Source0: http://downloads.sourceforge.net/expat/%{realname}-%{version}.tar.xz |
62803e06 | 10 | # Source0-md5: cdf54239f892fc7914957f10de1e1c70 |
ee06e98c | 11 | URL: http://www.libexpat.org/ |
b68efd35 | 12 | BuildRequires: autoconf >= 2.69 |
2f2d778e | 13 | BuildRequires: automake |
b68efd35 | 14 | BuildRequires: crossmingw32-gcc >= 1:3.2 |
62803e06 | 15 | BuildRequires: libtool >= 1:2.4 |
b68efd35 JB |
16 | BuildRequires: tar >= 1:1.22 |
17 | BuildRequires: xz | |
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 |
ee06e98c | 29 | %define _pkgconfigdir %{_prefix}/lib/pkgconfig |
a30c37e1 | 30 | %define _dlldir /usr/share/wine/windows/system |
2f2d778e | 31 | %define __cc %{target}-gcc |
32 | %define __cxx %{target}-g++ | |
ee06e98c JB |
33 | %define __pkgconfig_provides %{nil} |
34 | %define __pkgconfig_requires %{nil} | |
2f2d778e | 35 | |
505c22d6 JB |
36 | %ifnarch %{ix86} |
37 | # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc | |
e982d4da | 38 | %define optflags -O2 |
39 | %endif | |
505c22d6 JB |
40 | # -z options are invalid for mingw linker |
41 | %define filterout_ld -Wl,-z,.* | |
92f2a7f5 JR |
42 | %define filterout_c -f[-a-z0-9=]* |
43 | %define filterout_cxx -f[-a-z0-9=]* | |
e982d4da | 44 | |
2f2d778e | 45 | %description |
46 | Expat is an XML parser written in C. It aims to be fully conforming. | |
47 | It is currently not a validating XML parser. | |
48 | ||
5d2130e4 | 49 | This package contains the cross version for Win32. |
50 | ||
be3c7c98 JR |
51 | %description -l pl.UTF-8 |
52 | Expat to napisany w języku C analizator składni XML-a. Dąży do pełnej | |
53 | zgodności ze specyfikacją. Aktualnie nie jest analizatorem, który | |
54 | potwiedzał by zgodność ze specyfikacją. | |
2f2d778e | 55 | |
be3c7c98 | 56 | Ten pakiet zawiera wersję skrośną dla Win32. |
5d2130e4 | 57 | |
a30c37e1 JB |
58 | %package static |
59 | Summary: Static expat library (cross mingw32 version) | |
60 | Summary(pl.UTF-8): Statyczna biblioteka expat (wersja skrośna mingw32) | |
61 | Group: Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
2f2d778e | 63 | |
a30c37e1 JB |
64 | %description static |
65 | Static expat library (cross mingw32 version). | |
2f2d778e | 66 | |
a30c37e1 JB |
67 | %description static -l pl.UTF-8 |
68 | Statyczna biblioteka expat (wersja skrośna mingw32). | |
69 | ||
70 | %package dll | |
71 | Summary: DLL expat library for Windows | |
72 | Summary(pl.UTF-8): Biblioteka DLL expat dla Windows | |
73 | Group: Applications/Emulators | |
74 | Requires: wine | |
75 | ||
76 | %description dll | |
77 | DLL expat library for Windows. | |
78 | ||
79 | %description dll -l pl.UTF-8 | |
80 | Biblioteka DLL expat dla Windows. | |
2f2d778e | 81 | |
82 | %prep | |
6359e4d5 | 83 | %setup -q -n %{realname}-%{version} |
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 | 93 | --host=%{target} \ |
6fa157b2 | 94 | --without-docbook \ |
ceccda69 | 95 | --without-xmlwf |
e8288e84 | 96 | |
ceccda69 | 97 | %{__make} |
2f2d778e | 98 | |
99 | %install | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
ceccda69 | 102 | %{__make} install \ |
2f2d778e | 103 | DESTDIR=$RPM_BUILD_ROOT |
104 | ||
a30c37e1 | 105 | install -d $RPM_BUILD_ROOT%{_dlldir} |
ceccda69 | 106 | %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir} |
a30c37e1 | 107 | |
c3f78ef5 | 108 | %if 0%{!?debug:1} |
a30c37e1 | 109 | %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll |
c3f78ef5 JB |
110 | %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a |
111 | %endif | |
112 | ||
2f2d778e | 113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
116 | %files | |
b3b05d57 | 117 | %defattr(644,root,root,755) |
b68efd35 | 118 | %doc AUTHORS COPYING Changes README.md |
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 |