Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 6ad0ac5d549c9e48c10d75a3fa0a0b6c > files > 2

ooopy-0.2-alt1.1.src.rpm

Name: ooopy
Version: 0.2
Release: alt1.1

Summary: OOoPy: Modify OpenOffice.org documents in Python

License: GPL
Group: Text tools
Url: http://ooopy.sourceforge.net/

BuildArch: noarch
Packager: Vitaly Lipatov <lav@altlinux.ru>

%setup_python_module %name

Source: http://dl.sf.net/ooopy/OOoPy-%version.tar.bz2

# manually removed: eric
# Automatically added by buildreq on Tue Nov 01 2005
BuildRequires: python-base python-dev python-modules-compiler python-modules-encodings

%description
OpenOffice.org (OOo) documents are ZIP archives containing several XML
files.  Therefore it is easy to inspect, create, or modify OOo
documents. OOoPy is a library in Python for these tasks with OOo
documents. To not reinvent the wheel, OOoPy uses an existing XML
library, ElementTree_ by Fredrik Lundh. OOoPy is a thin wrapper around
ElementTree_ using Python's ZipFile to read and write OOo documents.
										   

%prep
%setup -q -n OOoPy-%version

%build
python setup.py build

%install
python setup.py install --root=%buildroot
%__mkdir_p %buildroot%_bindir
cat >%buildroot%_bindir/%name <<EOF
#!/bin/sh
/usr/bin/env python %python_sitelibdir/%modulename/OOoPy.py
EOF

%files
%doc README*
%python_sitelibdir/%modulename
%_datadir/%name
%attr (0755, root, root) %_bindir/*

%changelog
* Fri Jan 25 2008 Grigory Batalov <bga@altlinux.ru> 0.2-alt1.1
- Rebuilt with python-2.5.

* Tue Nov 01 2005 Vitaly Lipatov <lav@altlinux.ru> 0.2-alt1
- first build for ALT Linux Sisyphus