/[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 1037203 - (show annotations) (download)
Wed Jun 22 15:11:07 2016 UTC (7 years, 9 months ago) by luigiwalser
Original Path: cauldron/expat/current/SPECS/expat.spec
File size: 1654 byte(s)
2.2.0
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.0
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
14 %description
15 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
16 fully conforming. It is currently not a validating XML parser.
17
18 %package -n %{libname}
19 Summary: Main library for expat
20 Group: Development/C
21
22 %description -n %{libname}
23 This package contains the library needed to run programs dynamically
24 linked with expat.
25
26 %package -n %{devname}
27 Summary: Development environment for the expat XML parser
28 Group: Development/C
29 Requires: %{libname} = %{version}-%{release}
30 Provides: lib%{name}-devel = %{version}-%{release}
31 Provides: %{name}-devel = %{version}-%{release}
32 Obsoletes: %{_lib}expat1-devel < 2.1.0-5
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 %make
50
51 %check
52 make check
53
54 %install
55 %makeinstall_std
56
57 #we don't want these
58 find %{buildroot} -name "*.la" -delete
59
60 %files
61 %{_bindir}/xmlwf
62 %{_mandir}/man*/*
63
64 %files -n %{libname}
65 %{_libdir}/libexpat.so.%{major}{,.*}
66
67 %files -n %{devname}
68 %doc doc/reference.html
69 %{_libdir}/libexpat.so
70 %{_includedir}/expat.h
71 %{_includedir}/expat_config.h
72 %{_includedir}/expat_external.h
73 %{_libdir}/pkgconfig/expat.pc

  ViewVC Help
Powered by ViewVC 1.1.30