/[packages]/cauldron/expat/current/SPECS/expat.spec
ViewVC logotype

Contents of /cauldron/expat/current/SPECS/expat.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 724 - (show annotations) (download)
Sat Jan 8 15:38:48 2011 UTC (13 years, 3 months ago) by blino
File size: 2097 byte(s)
remove old ldconfig scripts

1 %define libname_orig libexpat
2 %define major 1
3 %define libname %mklibname expat %{major}
4
5 Summary: XML parser written in C
6 Name: expat
7 Version: 2.0.1
8 Release: %mkrel 14
9 License: MPL or GPL
10 Group: Development/Other
11 URL: http://www.libexpat.org
12 Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.bz2
13 Patch0: expat-2.0.1-CVE-2009-3720.diff
14 Patch1: expat-2.0.1-CVE-2009-3560.diff
15 Patch2: expat-2.0.1-confcxx.patch
16 BuildRequires: libtool
17 Requires: %{libname} = %{version}-%{release}
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19
20 %description
21 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
22 fully conforming. It is currently not a validating XML parser.
23
24 %package -n %{libname}
25 Summary: Main library for expat
26 Group: Development/C
27
28 %description -n %{libname}
29 This package contains the library needed to run programs dynamically
30 linked with expat.
31
32 %package -n %{libname}-devel
33 Summary: Development environment for the expat XML parser
34 Group: Development/C
35 Requires: %{libname} = %{version}-%{release}
36 Provides: %{libname_orig}-devel = %{version}-%{release}
37 Provides: %{name}-devel = %{version}-%{release}
38 Obsoletes: %{mklibname expat -d 0}
39 Provides: %{mklibname expat -d 0} = %{version}-%{release}
40
41 %description -n %{libname}-devel
42 Development environment for the expat XML parser.
43
44 %prep
45
46 %setup -q
47 %patch0 -p0 -b .CVE-2009-3720
48 %patch1 -p0 -b .CVE-2009-3560
49 %patch2 -p1 -b .confcxx
50
51 %build
52 rm -rf autom4te*.cache
53 rm conftools/libtool.m4
54 libtoolize --copy --force --automake; aclocal; autoheader; autoconf
55 export CFLAGS="%{optflags} -fPIC"
56
57 %configure2_5x
58 %make
59
60 %check
61 make check
62
63 %install
64 rm -rf %{buildroot}
65
66 %makeinstall_std mandir=%{buildroot}%{_mandir}/man1
67
68 %clean
69 rm -rf %{buildroot}
70
71 %files
72 %defattr(-,root,root)
73 %{_bindir}/xmlwf
74 %{_mandir}/man*/*
75
76 %files -n %{libname}
77 %defattr(-,root,root)
78 %{_libdir}/libexpat.so.%{major}*
79
80 %files -n %{libname}-devel
81 %defattr(-,root,root)
82 %doc doc/reference.html
83 %{_libdir}/libexpat.so
84 %{_includedir}/expat.h
85 %{_includedir}/expat_external.h
86 %{_libdir}/libexpat.a
87 %{_libdir}/libexpat.la
88
89

  ViewVC Help
Powered by ViewVC 1.1.30