1 |
wally |
448454 |
%define major 1 |
2 |
|
|
%define libname %mklibname expat %{major} |
3 |
daviddavid |
1443872 |
%define devname %mklibname expat -d |
4 |
blino |
722 |
|
5 |
|
|
Summary: XML parser written in C |
6 |
|
|
Name: expat |
7 |
daviddavid |
1449988 |
Version: 2.2.9 |
8 |
shlomif |
1415598 |
Release: %mkrel 1 |
9 |
wally |
448454 |
License: MIT |
10 |
malo |
310510 |
Group: Text tools |
11 |
blino |
722 |
URL: http://www.libexpat.org |
12 |
shlomif |
1002687 |
Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.bz2 |
13 |
daviddavid |
1443872 |
BuildRequires: docbook2x |
14 |
blino |
722 |
|
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 |
guillomovitch |
227472 |
%package -n %{devname} |
28 |
blino |
722 |
Summary: Development environment for the expat XML parser |
29 |
|
|
Group: Development/C |
30 |
shlomif |
1142518 |
Requires: %{libname} = %{version}-%{release} |
31 |
wally |
448454 |
Provides: lib%{name}-devel = %{version}-%{release} |
32 |
blino |
722 |
Provides: %{name}-devel = %{version}-%{release} |
33 |
|
|
|
34 |
guillomovitch |
227472 |
%description -n %{devname} |
35 |
blino |
722 |
Development environment for the expat XML parser. |
36 |
|
|
|
37 |
|
|
%prep |
38 |
|
|
%setup -q |
39 |
ovitters |
876058 |
%autopatch -p1 |
40 |
blino |
722 |
|
41 |
|
|
%build |
42 |
guillomovitch |
227472 |
#rm -rf autom4te*.cache |
43 |
|
|
#rm conftools/libtool.m4 |
44 |
|
|
#libtoolize --copy --force --automake; aclocal; autoheader; autoconf |
45 |
|
|
#export CFLAGS="%{optflags} -fPIC" |
46 |
blino |
722 |
|
47 |
wally |
1478757 |
%configure \ |
48 |
shlomif |
1415762 |
--disable-static \ |
49 |
daviddavid |
1443872 |
--with-docbook |
50 |
shlomif |
1107875 |
%make_build |
51 |
blino |
722 |
|
52 |
|
|
%check |
53 |
|
|
make check |
54 |
|
|
|
55 |
|
|
%install |
56 |
shlomif |
1107875 |
%make_install |
57 |
blino |
722 |
|
58 |
wally |
448454 |
#we don't want these |
59 |
|
|
find %{buildroot} -name "*.la" -delete |
60 |
blino |
722 |
|
61 |
|
|
%files |
62 |
|
|
%{_bindir}/xmlwf |
63 |
|
|
%{_mandir}/man*/* |
64 |
|
|
|
65 |
|
|
%files -n %{libname} |
66 |
ovitters |
876058 |
%{_libdir}/libexpat.so.%{major}{,.*} |
67 |
blino |
722 |
|
68 |
guillomovitch |
227472 |
%files -n %{devname} |
69 |
blino |
722 |
%doc doc/reference.html |
70 |
|
|
%{_libdir}/libexpat.so |
71 |
|
|
%{_includedir}/expat.h |
72 |
shlomif |
1002687 |
%{_includedir}/expat_config.h |
73 |
blino |
722 |
%{_includedir}/expat_external.h |
74 |
guillomovitch |
227472 |
%{_libdir}/pkgconfig/expat.pc |
75 |
shlomif |
1142518 |
%{_docdir}/expat/AUTHORS |
76 |
|
|
%{_docdir}/expat/changelog |