/[packages]/updates/8/expat/current/SPECS/expat.spec
ViewVC logotype

Contents of /updates/8/expat/current/SPECS/expat.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1449988 - (show annotations) (download)
Sun Oct 6 19:44:30 2019 UTC (4 years, 6 months ago) by daviddavid
Original Path: cauldron/expat/current/SPECS/expat.spec
File size: 1705 byte(s)
- new version: 2.2.9

1 %define major 1
2 %define libname %mklibname expat %{major}
3 %define devname %mklibname expat -d
4
5 Summary: XML parser written in C
6 Name: expat
7 Version: 2.2.9
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
34 %description -n %{devname}
35 Development environment for the expat XML parser.
36
37 %prep
38 %setup -q
39 %autopatch -p1
40
41 %build
42 #rm -rf autom4te*.cache
43 #rm conftools/libtool.m4
44 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
45 #export CFLAGS="%{optflags} -fPIC"
46
47 %configure2_5x \
48 --disable-static \
49 --with-docbook
50 %make_build
51
52 %check
53 make check
54
55 %install
56 %make_install
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
75 %{_docdir}/expat/AUTHORS
76 %{_docdir}/expat/changelog

  ViewVC Help
Powered by ViewVC 1.1.30