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