Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 4ef78796d3b979291c12c334e43d3363 > files > 2

PyXML-0.8.3-1mdk.src.rpm

%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
%define name	PyXML
%define version	0.8.3
%define release	1mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
URL:		http://%{name}.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pyxml/PyXML-%{version}.tar.bz2
License:	Apacheish License
Group:		System/Libraries
Summary:	XML libraries for python
Requires:	python
BuildRequires:	python
BuildRequires:	python-devel
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
An XML package for Python. The distribution contains a validating XML parser,
an implementation of the SAX and DOM programming interfaces and an interface
to the Expat parser.

%prep
%setup -q

%build
CFLAGS="$RPM_OPT_FLAGS" python setup.py build --without-xpath --without-xslt

%install
rm -fr $RPM_BUILD_ROOT
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES \
--without-xpath --without-xslt

python -O %{_libdir}/python%{pyver}/compileall.py \
$RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages

find $RPM_BUILD_ROOT%{_libdir}/python%{pyver} -name "*pyo" | \
sed "s|$RPM_BUILD_ROOT||" >> INSTALLED_FILES
grep -v %{_docdir} INSTALLED_FILES |grep -v LC_MESSAGES > installed_files

%clean
rm -rf $RPM_BUILD_ROOT

%files -f installed_files 
%defattr(-,root,root)
%doc LICENCE ANNOUNCE CREDITS README README.dom README.pyexpat README.sgmlop TODO doc/*
%lang(de) %{_libdir}/python%{pyver}/site-packages/*/dom/de/LC_MESSAGES/4Suite.mo
%lang(en_US) %{_libdir}/python%{pyver}/site-packages/*/dom/en_US/LC_MESSAGES/4Suite.mo
%lang(fr_FR) %{_libdir}/python%{pyver}/site-packages/*/dom/fr_FR/LC_MESSAGES/4Suite.mo

%changelog
* Wed Aug 20 2003 Austin Acton <aacton@yorku.ca> 0.8.3-1mdk
- 0.8.3

* Tue Aug 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.8.2-4mdk
- rebuild for new python

* Sat Mar 29 2003 David Walluck <walluck@linux-mandrake.com> 0.8.2-3mdk
- release

* Tue Mar 25 2003 David Walluck <david@anti-microsoft.org> 0.8.2-2plf
- spec file cleanups

* Sun Jan 26 2003 David Walluck <david@anti-microsoft.org> 0.8.2-1plf
- release