/[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 867571 - (show annotations) (download)
Fri Aug 21 16:50:36 2015 UTC (8 years, 8 months ago) by tmb
Original Path: cauldron/expat/current/SPECS/expat.spec
File size: 1758 byte(s)
rebuild for new gcc
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.1.0
8 Release: %mkrel 11
9 License: MIT
10 Group: Text tools
11 URL: http://www.libexpat.org
12 Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.gz
13 Patch0: expat-2.1.0-xmlwfargs.patch
14 # fix for CVE-2015-1283 as reported for chromium 44, patch from mozilla
15 Patch1: CVE-2015-1283.patch
16
17 %description
18 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
19 fully conforming. It is currently not a validating XML parser.
20
21 %package -n %{libname}
22 Summary: Main library for expat
23 Group: Development/C
24
25 %description -n %{libname}
26 This package contains the library needed to run programs dynamically
27 linked with expat.
28
29 %package -n %{devname}
30 Summary: Development environment for the expat XML parser
31 Group: Development/C
32 Requires: %{libname} = %{version}-%{release}
33 Provides: lib%{name}-devel = %{version}-%{release}
34 Provides: %{name}-devel = %{version}-%{release}
35 Obsoletes: %{_lib}expat1-devel < 2.1.0-5
36
37 %description -n %{devname}
38 Development environment for the expat XML parser.
39
40 %prep
41 %setup -q
42 %apply_patches
43
44 %build
45 #rm -rf autom4te*.cache
46 #rm conftools/libtool.m4
47 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
48 #export CFLAGS="%{optflags} -fPIC"
49
50 %configure2_5x \
51 --disable-static
52 %make
53
54 %check
55 make check
56
57 %install
58 %makeinstall_std
59
60 #we don't want these
61 find %{buildroot} -name "*.la" -delete
62
63 %files
64 %{_bindir}/xmlwf
65 %{_mandir}/man*/*
66
67 %files -n %{libname}
68 %{_libdir}/libexpat.so.%{major}*
69
70 %files -n %{devname}
71 %doc doc/reference.html
72 %{_libdir}/libexpat.so
73 %{_includedir}/expat.h
74 %{_includedir}/expat_external.h
75 %{_libdir}/pkgconfig/expat.pc

  ViewVC Help
Powered by ViewVC 1.1.30