|
Last change
on this file since 24 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 |
|
|---|
| 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 | BuildRequires: libxml2-devel python-devel
|
|---|
| 19 | #BuildRequires: python-xml
|
|---|
| 20 | BuildRoot: %{_tmppath}/libxml2-%{version}-%{release}-buildroot
|
|---|
| 21 |
|
|---|
| 22 | Requires: libxml2 = %{version}
|
|---|
| 23 | Requires: python
|
|---|
| 24 | Requires: python(abi) = 2.6
|
|---|
| 25 |
|
|---|
| 26 | %description
|
|---|
| 27 | The libxml2-python package contains a module that permits applications
|
|---|
| 28 | written in the Python programming language to use the interface
|
|---|
| 29 | supplied by the libxml2 library to manipulate XML files.
|
|---|
| 30 |
|
|---|
| 31 | This library allows manipulation of XML files. It includes support for
|
|---|
| 32 | reading, modifying, and writing XML and HTML files. There is DTD
|
|---|
| 33 | support that includes parsing and validation even with complex DTDs,
|
|---|
| 34 | either at parse time or later once the document has been modified.
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 | %setup -q -n libxml2-%{unmangled_version}
|
|---|
| 38 |
|
|---|
| 39 | %build
|
|---|
| 40 | cd python
|
|---|
| 41 | env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
|
|---|
| 42 |
|
|---|
| 43 | %install
|
|---|
| 44 | cd python
|
|---|
| 45 | python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
|---|
| 46 |
|
|---|
| 47 | %clean
|
|---|
| 48 | rm -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.