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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 857906 - (hide annotations) (download)
Sun Jul 26 11:34:07 2015 UTC (8 years, 9 months ago) by cjw
Original Path: cauldron/expat/current/SPECS/expat.spec
File size: 1758 byte(s)
- patch1: use patch from mozilla to fix CVE-2015-1283

1 wally 448454 %define major 1
2     %define libname %mklibname expat %{major}
3     %define devname %mklibname -d expat
4 blino 722
5     Summary: XML parser written in C
6     Name: expat
7 guillomovitch 227472 Version: 2.1.0
8 cjw 857906 Release: %mkrel 10
9 wally 448454 License: MIT
10 malo 310510 Group: Text tools
11 blino 722 URL: http://www.libexpat.org
12 guillomovitch 227472 Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.gz
13 wally 448458 Patch0: expat-2.1.0-xmlwfargs.patch
14 cjw 857906 # fix for CVE-2015-1283 as reported for chromium 44, patch from mozilla
15     Patch1: CVE-2015-1283.patch
16 blino 722
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 guillomovitch 227472 %package -n %{devname}
30 blino 722 Summary: Development environment for the expat XML parser
31     Group: Development/C
32     Requires: %{libname} = %{version}-%{release}
33 wally 448454 Provides: lib%{name}-devel = %{version}-%{release}
34 blino 722 Provides: %{name}-devel = %{version}-%{release}
35 wally 448454 Obsoletes: %{_lib}expat1-devel < 2.1.0-5
36 blino 722
37 guillomovitch 227472 %description -n %{devname}
38 blino 722 Development environment for the expat XML parser.
39    
40     %prep
41     %setup -q
42 wally 448458 %apply_patches
43 blino 722
44     %build
45 guillomovitch 227472 #rm -rf autom4te*.cache
46     #rm conftools/libtool.m4
47     #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
48     #export CFLAGS="%{optflags} -fPIC"
49 blino 722
50 wally 448454 %configure2_5x \
51     --disable-static
52 blino 722 %make
53    
54     %check
55     make check
56    
57     %install
58 wally 448454 %makeinstall_std
59 blino 722
60 wally 448454 #we don't want these
61     find %{buildroot} -name "*.la" -delete
62 blino 722
63     %files
64     %{_bindir}/xmlwf
65     %{_mandir}/man*/*
66    
67     %files -n %{libname}
68     %{_libdir}/libexpat.so.%{major}*
69    
70 guillomovitch 227472 %files -n %{devname}
71 blino 722 %doc doc/reference.html
72     %{_libdir}/libexpat.so
73     %{_includedir}/expat.h
74     %{_includedir}/expat_external.h
75 guillomovitch 227472 %{_libdir}/pkgconfig/expat.pc

  ViewVC Help
Powered by ViewVC 1.1.30