9397
|
1 |
#
|
|
2 |
# spec file for package pyxml
|
|
3 |
#
|
|
4 |
# includes module(s): pyxml
|
|
5 |
#
|
14644
|
6 |
# Copyright 2008 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
16434
|
10 |
%define owner laca
|
9397
|
11 |
#
|
14644
|
12 |
%{!?pythonver:%define pythonver 2.4}
|
9397
|
13 |
|
16425
|
14 |
%define OSR 8712:0.8.4
|
|
15 |
|
9397
|
16 |
Name: pyxml
|
|
17 |
License: CNRI Python License
|
|
18 |
Group: Development/Languages/Python
|
|
19 |
Version: 0.8.4
|
|
20 |
Release: 1
|
|
21 |
Distribution: Java Desktop System
|
17865
|
22 |
Vendor: Sourceforge
|
9397
|
23 |
Summary: Python XML module
|
15007
|
24 |
Source: http://internap.dl.sourceforge.net/sourceforge/pyxml/PyXML-0.8.4.tar.gz
|
9397
|
25 |
URL: http://pyxml.sourceforge.net/
|
|
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
27 |
Docdir: %{_defaultdocdir}/doc
|
|
28 |
Autoreqprov: off
|
|
29 |
Prereq: /sbin/ldconfig
|
|
30 |
Requires: python >= %{pythonver}
|
|
31 |
Requires: expat
|
|
32 |
BuildRequires: python-devel >= %{pythonver}
|
|
33 |
BuildRequires: expat
|
|
34 |
|
|
35 |
%description
|
|
36 |
A collection of tools useful for writing basic XML applications in Python,
|
|
37 |
along with documentation and sample code.
|
|
38 |
Features include (but are not limited to) SAX, DOM, the xmlproc validating
|
|
39 |
parser, an Expat interface.
|
|
40 |
|
|
41 |
%prep
|
|
42 |
%setup -q -n PyXML-%{version}
|
|
43 |
|
|
44 |
%install
|
14644
|
45 |
python%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
|
9397
|
46 |
|
|
47 |
# move to vendor-packages
|
|
48 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
49 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
50 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
51 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
52 |
|
|
53 |
%clean
|
|
54 |
rm -rf $RPM_BUILD_ROOT
|
|
55 |
|
|
56 |
%files
|
|
57 |
%defattr(-, root, root)
|
|
58 |
%{_bindir}
|
|
59 |
%{_libdir}/python?.?/vendor-packages
|
|
60 |
|
|
61 |
%changelog
|
14644
|
62 |
* Mon Nov 24 2008 - [email protected]
|
|
63 |
- use %{pythonver} macro to select with version of Python to build which
|
14610
|
64 |
* Mon Nov 17 2007 - [email protected]
|
|
65 |
- Fix installation directory bug.
|
11102
|
66 |
* Thu Nov 01 2007 - [email protected]
|
|
67 |
- Fix Source URL.
|
9397
|
68 |
* Thu Oct 27 2005 - [email protected]
|
|
69 |
- initial version
|