/[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 1790357 - (show annotations) (download)
Fri Mar 11 09:19:06 2022 UTC (2 years, 1 month ago) by ns80
File size: 2366 byte(s)
- add patches from Ubuntu to fix regressions introduced by security fixes (mga#30145)

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 4
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
34 BuildRequires: docbook2x
35
36 %description
37 Expat is an XML 1.0 parser written in C by James Clark. It aims to be
38 fully conforming. It is currently not a validating XML parser.
39
40 %package -n %{libname}
41 Summary: Main library for expat
42 Group: Development/C
43
44 %description -n %{libname}
45 This package contains the library needed to run programs dynamically
46 linked with expat.
47
48 %package -n %{devname}
49 Summary: Development environment for the expat XML parser
50 Group: Development/C
51 Requires: %{libname} = %{version}-%{release}
52 Provides: lib%{name}-devel = %{version}-%{release}
53 Provides: %{name}-devel = %{version}-%{release}
54
55 %description -n %{devname}
56 Development environment for the expat XML parser.
57
58 %prep
59 %setup -q
60 %autopatch -p1
61
62 %build
63 #rm -rf autom4te*.cache
64 #rm conftools/libtool.m4
65 #libtoolize --copy --force --automake; aclocal; autoheader; autoconf
66 #export CFLAGS="%{optflags} -fPIC"
67
68 %configure \
69 --disable-static \
70 --with-docbook
71 %make_build
72
73 %check
74 make check
75
76 %install
77 %make_install
78
79 #we don't want these
80 find %{buildroot} -name "*.la" -delete
81
82 %files
83 %{_bindir}/xmlwf
84 %{_mandir}/man*/*
85
86 %files -n %{libname}
87 %{_libdir}/libexpat.so.%{major}{,.*}
88
89 %files -n %{devname}
90 %doc doc/reference.html
91 %{_libdir}/libexpat.so
92 %{_includedir}/expat.h
93 %{_includedir}/expat_config.h
94 %{_includedir}/expat_external.h
95 %{_libdir}/pkgconfig/expat.pc
96 %{_docdir}/expat/AUTHORS
97 %{_docdir}/expat/changelog

  ViewVC Help
Powered by ViewVC 1.1.30