Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: third_party/libxml/src/libxml.spec.in

Issue 1752223002: Roll libxml to 2.9.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-cherry-pick fprintf formatting fix. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 %global with_python3 1
2
1 Summary: Library providing XML and HTML support 3 Summary: Library providing XML and HTML support
2 Name: libxml2 4 Name: libxml2
3 Version: @VERSION@ 5 Version: @VERSION@
4 Release: 1%{?dist}%{?extra_release} 6 Release: 1%{?dist}%{?extra_release}
5 License: MIT 7 License: MIT
6 Group: Development/Libraries 8 Group: Development/Libraries
7 Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz 9 Source: ftp://xmlsoft.org/libxml2/libxml2-%{version}.tar.gz
8 BuildRoot: %{_tmppath}/%{name}-%{version}-root 10 BuildRoot: %{_tmppath}/%{name}-%{version}-root
9 BuildRequires: python python-devel zlib-devel pkgconfig xz-devel 11 BuildRequires: python-devel
12 %if 0%{?with_python3}
13 BuildRequires: python3-devel
14 %endif # with_python3
15 BuildRequires: zlib-devel
16 BuildRequires: pkgconfig
17 BuildRequires: xz-devel
10 URL: http://xmlsoft.org/ 18 URL: http://xmlsoft.org/
11 19
12 %description 20 %description
13 This library allows to manipulate XML files. It includes support 21 This library allows to manipulate XML files. It includes support
14 to read, modify and write XML and HTML files. There is DTDs support 22 to read, modify and write XML and HTML files. There is DTDs support
15 this includes parsing and validation even with complex DtDs, either 23 this includes parsing and validation even with complex DtDs, either
16 at parse time or later once the document has been modified. The output 24 at parse time or later once the document has been modified. The output
17 can be a simple SAX stream or and in-memory DOM like representations. 25 can be a simple SAX stream or and in-memory DOM like representations.
18 In this case one can use the built-in XPath and XPointer implementation 26 In this case one can use the built-in XPath and XPointer implementation
19 to select sub nodes or ranges. A flexible Input/Output mechanism is 27 to select sub nodes or ranges. A flexible Input/Output mechanism is
(...skipping 28 matching lines...) Expand all
48 %description static 56 %description static
49 Static library for libxml2 provided for specific uses or shaving a few 57 Static library for libxml2 provided for specific uses or shaving a few
50 microseconds when parsing, do not link to them for generic purpose packages. 58 microseconds when parsing, do not link to them for generic purpose packages.
51 59
52 %package python 60 %package python
53 Summary: Python bindings for the libxml2 library 61 Summary: Python bindings for the libxml2 library
54 Group: Development/Libraries 62 Group: Development/Libraries
55 Requires: libxml2 = %{version}-%{release} 63 Requires: libxml2 = %{version}-%{release}
56 64
57 %description python 65 %description python
58 The libxml2-python package contains a module that permits applications 66 The libxml2-python package contains a Python 2 module that permits applications
59 written in the Python programming language to use the interface 67 written in the Python programming language, version 2, to use the interface
60 supplied by the libxml2 library to manipulate XML files. 68 supplied by the libxml2 library to manipulate XML files.
61 69
62 This library allows to manipulate XML files. It includes support 70 This library allows to manipulate XML files. It includes support
63 to read, modify and write XML and HTML files. There is DTDs support 71 to read, modify and write XML and HTML files. There is DTDs support
64 this includes parsing and validation even with complex DTDs, either 72 this includes parsing and validation even with complex DTDs, either
65 at parse time or later once the document has been modified. 73 at parse time or later once the document has been modified.
66 74
75 %if 0%{?with_python3}
76 %package python3
77 Summary: Python 3 bindings for the libxml2 library
78 Group: Development/Libraries
79 Requires: libxml2 = %{version}-%{release}
80
81 %description python3
82 The libxml2-python3 package contains a Python 3 module that permits
83 applications written in the Python programming language, version 3, to use the
84 interface supplied by the libxml2 library to manipulate XML files.
85
86 This library allows to manipulate XML files. It includes support
87 to read, modify and write XML and HTML files. There is DTDs support
88 this includes parsing and validation even with complex DTDs, either
89 at parse time or later once the document has been modified.
90 %endif # with_python3
91
67 %prep 92 %prep
68 %setup -q 93 %setup -q
69 94
70 %build 95 %build
71 %configure 96 %configure
72 make %{_smp_mflags} 97 make %{_smp_mflags}
73 98
74 %install 99 %install
75 rm -fr %{buildroot} 100 rm -fr %{buildroot}
76 101
77 make install DESTDIR=%{buildroot} 102 make install DESTDIR=%{buildroot}
78 103
104 %if 0%{?with_python3}
105 make clean
106 %configure --with-python=%{__python3}
107 make install DESTDIR=%{buildroot}
108 %endif # with_python3
109
110
79 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 111 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
80 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a 112 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.a
81 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la 113 rm -f $RPM_BUILD_ROOT%{_libdir}/python*/site-packages/*.la
82 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/* 114 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-%{version}/*
83 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/* 115 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/libxml2-python-%{version}/*
84 (cd doc/examples ; make clean ; rm -rf .deps Makefile) 116 (cd doc/examples ; make clean ; rm -rf .deps Makefile)
85 gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz 117 gzip -9 -c doc/libxml2-api.xml > doc/libxml2-api.xml.gz
86 118
87 %check 119 %check
88 make runtests 120 make runtests
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 %{_libdir}/cmake/libxml2/libxml2-config.cmake 161 %{_libdir}/cmake/libxml2/libxml2-config.cmake
130 162
131 %files static 163 %files static
132 %defattr(-, root, root) 164 %defattr(-, root, root)
133 165
134 %{_libdir}/*a 166 %{_libdir}/*a
135 167
136 %files python 168 %files python
137 %defattr(-, root, root) 169 %defattr(-, root, root)
138 170
139 %{_libdir}/python*/site-packages/libxml2.py* 171 %{_libdir}/python2*/site-packages/libxml2.py*
140 %{_libdir}/python*/site-packages/drv_libxml2.py* 172 %{_libdir}/python2*/site-packages/drv_libxml2.py*
141 %{_libdir}/python*/site-packages/libxml2mod* 173 %{_libdir}/python2*/site-packages/libxml2mod*
142 %doc python/TODO 174 %doc python/TODO
143 %doc python/libxml2class.txt 175 %doc python/libxml2class.txt
144 %doc python/tests/*.py 176 %doc python/tests/*.py
145 %doc doc/*.py 177 %doc doc/*.py
146 %doc doc/python.html 178 %doc doc/python.html
147 179
180 %if 0%{?with_python3}
181 %files python3
182 %defattr(-, root, root)
183
184 %{_libdir}/python3*/site-packages/libxml2.py*
185 %{_libdir}/python3*/site-packages/drv_libxml2.py*
186 %{_libdir}/python3*/site-packages/__pycache__/libxml2.cpython-34.py*
187 %{_libdir}/python3*/site-packages/__pycache__/drv_libxml2.cpython-34.py*
188 %{_libdir}/python3*/site-packages/libxml2mod*
189 %doc python/TODO
190 %doc python/libxml2class.txt
191 %doc python/tests/*.py
192 %doc doc/*.py
193 %doc doc/python.html
194 %endif # with_python3
195
148 %changelog 196 %changelog
149 * @RELDATE@ Daniel Veillard <veillard@redhat.com> 197 * @RELDATE@ Daniel Veillard <veillard@redhat.com>
150 - upstream release @VERSION@ see http://xmlsoft.org/news.html 198 - upstream release @VERSION@ see http://xmlsoft.org/news.html
151 199
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698