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.7 |
8 |
Release: %mkrel 1 |
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 |
BuildRequires: docbook2x |
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 |
--with-docbook |
51 |
%make_build |
52 |
|
53 |
%check |
54 |
make check |
55 |
|
56 |
%install |
57 |
%make_install |
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 |
76 |
%{_docdir}/expat/AUTHORS |
77 |
%{_docdir}/expat/changelog |