1 |
%define major 1 |
2 |
%define libname %mklibname expat %{major} |
3 |
%define devname %mklibname -d expat |
4 |
|
5 |
Summary: XML parser written in C |
6 |
Name: expat |
7 |
Version: 2.2.0 |
8 |
Release: %mkrel 2 |
9 |
License: MIT |
10 |
Group: Text tools |
11 |
URL: http://www.libexpat.org |
12 |
Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.bz2 |
13 |
Patch0: expat-CVE-2016-0718-regression.patch |
14 |
|
15 |
%description |
16 |
Expat is an XML 1.0 parser written in C by James Clark. It aims to be |
17 |
fully conforming. It is currently not a validating XML parser. |
18 |
|
19 |
%package -n %{libname} |
20 |
Summary: Main library for expat |
21 |
Group: Development/C |
22 |
|
23 |
%description -n %{libname} |
24 |
This package contains the library needed to run programs dynamically |
25 |
linked with expat. |
26 |
|
27 |
%package -n %{devname} |
28 |
Summary: Development environment for the expat XML parser |
29 |
Group: Development/C |
30 |
Requires: %{libname} = %{version}-%{release} |
31 |
Provides: lib%{name}-devel = %{version}-%{release} |
32 |
Provides: %{name}-devel = %{version}-%{release} |
33 |
Obsoletes: %{_lib}expat1-devel < 2.1.0-5 |
34 |
|
35 |
%description -n %{devname} |
36 |
Development environment for the expat XML parser. |
37 |
|
38 |
%prep |
39 |
%setup -q |
40 |
%autopatch -p1 |
41 |
|
42 |
%build |
43 |
#rm -rf autom4te*.cache |
44 |
#rm conftools/libtool.m4 |
45 |
#libtoolize --copy --force --automake; aclocal; autoheader; autoconf |
46 |
#export CFLAGS="%{optflags} -fPIC" |
47 |
|
48 |
%configure2_5x \ |
49 |
--disable-static |
50 |
%make |
51 |
|
52 |
%check |
53 |
make check |
54 |
|
55 |
%install |
56 |
%makeinstall_std |
57 |
|
58 |
#we don't want these |
59 |
find %{buildroot} -name "*.la" -delete |
60 |
|
61 |
%files |
62 |
%{_bindir}/xmlwf |
63 |
%{_mandir}/man*/* |
64 |
|
65 |
%files -n %{libname} |
66 |
%{_libdir}/libexpat.so.%{major}{,.*} |
67 |
|
68 |
%files -n %{devname} |
69 |
%doc doc/reference.html |
70 |
%{_libdir}/libexpat.so |
71 |
%{_includedir}/expat.h |
72 |
%{_includedir}/expat_config.h |
73 |
%{_includedir}/expat_external.h |
74 |
%{_libdir}/pkgconfig/expat.pc |