/[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 1770964 - (show annotations) (download)
Wed Feb 2 09:06:40 2022 UTC (2 years, 2 months ago) by ns80
File size: 1877 byte(s)
- backport upstream patches for CVE-2022-23852 and CVE-2022-23990 (mga#29985)

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.10
8 %define subrel 2
9 Release: %mkrel 1
10 License: MIT
11 Group: Text tools
12 URL: http://www.libexpat.org
13 Source0: http://prdownloads.sourceforge.net/expat/expat-%{version}.tar.xz
14 Patch0: CVE-2021-45960.patch
15 Patch1: CVE-2021-46143.patch
16 Patch2: CVE-2022-22822-to-22827.patch
17 Patch3: CVE-2022-23852.patch
18 Patch4: CVE-2022-23990.patch
19 BuildRequires: docbook2x
20
21 %description
22 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
23 fully conforming. It is currently not a validating XML parser.
24
25 %package -n %{libname}
26 Summary: Main library for expat
27 Group: Development/C
28
29 %description -n %{libname}
30 This package contains the library needed to run programs dynamically
31 linked with expat.
32
33 %package -n %{devname}
34 Summary: Development environment for the expat XML parser
35 Group: Development/C
36 Requires: %{libname} = %{version}-%{release}
37 Provides: lib%{name}-devel = %{version}-%{release}
38 Provides: %{name}-devel = %{version}-%{release}
39
40 %description -n %{devname}
41 Development environment for the expat XML parser.
42
43 %prep
44 %setup -q
45 %autopatch -p1
46
47 %build
48 #rm -rf autom4te*.cache
49 #rm conftools/libtool.m4
50 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
51 #export CFLAGS="%{optflags} -fPIC"
52
53 %configure \
54 --disable-static \
55 --with-docbook
56 %make_build
57
58 %check
59 make check
60
61 %install
62 %make_install
63
64 #we don't want these
65 find %{buildroot} -name "*.la" -delete
66
67 %files
68 %{_bindir}/xmlwf
69 %{_mandir}/man*/*
70
71 %files -n %{libname}
72 %{_libdir}/libexpat.so.%{major}{,.*}
73
74 %files -n %{devname}
75 %doc doc/reference.html
76 %{_libdir}/libexpat.so
77 %{_includedir}/expat.h
78 %{_includedir}/expat_config.h
79 %{_includedir}/expat_external.h
80 %{_libdir}/pkgconfig/expat.pc
81 %{_docdir}/expat/AUTHORS
82 %{_docdir}/expat/changelog

  ViewVC Help
Powered by ViewVC 1.1.30