1 |
%define libname_orig libexpat |
2 |
%define major 1 |
3 |
%define libname %mklibname expat %{major} |
4 |
%define devname %mklibname -d expat %{major} |
5 |
|
6 |
Summary: XML parser written in C |
7 |
Name: expat |
8 |
Version: 2.1.0 |
9 |
Release: %mkrel 4 |
10 |
License: MPL or GPL |
11 |
Group: Text tools |
12 |
URL: http://www.libexpat.org |
13 |
Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.gz |
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: %{libname_orig}-devel = %{version}-%{release} |
32 |
Provides: %{name}-devel = %{version}-%{release} |
33 |
Obsoletes: %{mklibname expat -d 0} |
34 |
Provides: %{mklibname expat -d 0} = %{version}-%{release} |
35 |
|
36 |
%description -n %{devname} |
37 |
Development environment for the expat XML parser. |
38 |
|
39 |
%prep |
40 |
|
41 |
%setup -q |
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 |
%make |
51 |
|
52 |
%check |
53 |
make check |
54 |
|
55 |
%install |
56 |
rm -rf %{buildroot} |
57 |
|
58 |
%makeinstall_std mandir=%{buildroot}%{_mandir}/man1 |
59 |
|
60 |
rm -f %{buildroot}%{_libdir}/libexpat.la |
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_external.h |
74 |
%{_libdir}/libexpat.a |
75 |
%{_libdir}/pkgconfig/expat.pc |
76 |
|
77 |
|