/[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 1901604 - (show annotations) (download)
Wed Nov 2 13:56:33 2022 UTC (16 months, 3 weeks ago) by ns80
File size: 2462 byte(s)
- add patch from Debian for CVE-2022-43680 (mga#31057)

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 6
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 Patch5: CVE-2022-25235.patch
20 Patch6: CVE-2022-25235-2.patch
21 Patch7: CVE-2022-25236.patch
22 Patch8: CVE-2022-25313.patch
23 Patch9: CVE-2022-25314.patch
24 Patch10: CVE-2022-25315.patch
25 Patch11: fix-build_model-regression.patch
26 Patch12: protect-against-nested-element-declaration-model-regressions.patch
27 Patch13: CVE-2022-25236-2.patch
28 Patch14: CVE-2022-25236-3.patch
29 Patch15: CVE-2022-25236-4.patch
30 Patch16: CVE-2022-25236-5.patch
31 Patch17: CVE-2022-25236-6.patch
32 Patch18: fix_test_dup.patch
33 Patch19: CVE-2022-40674.patch
34 Patch20: CVE-2022-40674_addon.patch
35 Patch21: CVE-2022-43680.patch
36
37 BuildRequires: docbook2x
38
39 %description
40 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
41 fully conforming. It is currently not a validating XML parser.
42
43 %package -n %{libname}
44 Summary: Main library for expat
45 Group: Development/C
46
47 %description -n %{libname}
48 This package contains the library needed to run programs dynamically
49 linked with expat.
50
51 %package -n %{devname}
52 Summary: Development environment for the expat XML parser
53 Group: Development/C
54 Requires: %{libname} = %{version}-%{release}
55 Provides: lib%{name}-devel = %{version}-%{release}
56 Provides: %{name}-devel = %{version}-%{release}
57
58 %description -n %{devname}
59 Development environment for the expat XML parser.
60
61 %prep
62 %setup -q
63 %autopatch -p1
64
65 %build
66 #rm -rf autom4te*.cache
67 #rm conftools/libtool.m4
68 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
69 #export CFLAGS="%{optflags} -fPIC"
70
71 %configure \
72 --disable-static \
73 --with-docbook
74 %make_build
75
76 %check
77 make check
78
79 %install
80 %make_install
81
82 #we don't want these
83 find %{buildroot} -name "*.la" -delete
84
85 %files
86 %{_bindir}/xmlwf
87 %{_mandir}/man*/*
88
89 %files -n %{libname}
90 %{_libdir}/libexpat.so.%{major}{,.*}
91
92 %files -n %{devname}
93 %doc doc/reference.html
94 %{_libdir}/libexpat.so
95 %{_includedir}/expat.h
96 %{_includedir}/expat_config.h
97 %{_includedir}/expat_external.h
98 %{_libdir}/pkgconfig/expat.pc
99 %{_docdir}/expat/AUTHORS
100 %{_docdir}/expat/changelog

  ViewVC Help
Powered by ViewVC 1.1.30