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