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