source: spec/trunk/SPECS/libxml2-python.spec@ 11

Last change on this file since 11 was 11, checked in by Yuri Dario, 15 years ago

spec: initial import for base .spec files.

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1%define name libxml2-python
2%define version 2.7.7
3%define unmangled_version 2.7.7
4%define release 1
5
6Summary: libxml2 package
7Name: %{name}
8Version: %{version}
9Release: %{release}
10Source: libxml2-%{version}.tar.gz
11#Source1: %{name}-%{unmangled_version}.tar.gz
12License: MIT Licence
13Group: Development/Libraries
14Prefix: %{_prefix}
15Vendor: Daniel Veillard <veillard@redhat.com>
16Url: http://xmlsoft.org/python.html
17
18BuildRequires: libxml2-devel python-devel
19#BuildRequires: python-xml
20BuildRoot: %{_tmppath}/libxml2-%{version}-%{release}-buildroot
21
22Requires: libxml2 = %{version}
23Requires: python
24Requires: python(abi) = 2.6
25
26%description
27The libxml2-python package contains a module that permits applications
28written in the Python programming language to use the interface
29supplied by the libxml2 library to manipulate XML files.
30
31This library allows manipulation of XML files. It includes support for
32reading, modifying, and writing XML and HTML files. There is DTD
33support that includes parsing and validation even with complex DTDs,
34either at parse time or later once the document has been modified.
35
36%prep
37%setup -q -n libxml2-%{unmangled_version}
38
39%build
40cd python
41env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
42
43%install
44cd python
45python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50%files -f python/INSTALLED_FILES
51%defattr(-,root,root)
Note: See TracBrowser for help on using the repository browser.