/[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 1768951 - (hide annotations) (download)
Tue Jan 18 15:24:54 2022 UTC (2 years, 3 months ago) by ns80
File size: 1817 byte(s)
- add upstream patches for CVE-2021-45960, CVE-2021-46143, CVE-2022-2282[2-7] (mga#29902)

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

  ViewVC Help
Powered by ViewVC 1.1.30