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