From b4a3d55c41cb5133979aef6931ade7d95550c52e04d7af99aea40091154b506b Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Thu, 3 Mar 2011 09:05:09 +0000 Subject: [PATCH] - Update to 0.9.3: * No changelog - Spec file cleanup: * Removed empty lines, fixed indentation and license header * No Perl build dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=2 --- odfpy-0.9.2.tar.bz2 | 3 -- odfpy-0.9.3.tar.bz2 | 3 ++ python-odfpy.changes | 12 +++++-- python-odfpy.spec | 83 ++++++++++++++++++++++++++++---------------- 4 files changed, 65 insertions(+), 36 deletions(-) delete mode 100644 odfpy-0.9.2.tar.bz2 create mode 100644 odfpy-0.9.3.tar.bz2 diff --git a/odfpy-0.9.2.tar.bz2 b/odfpy-0.9.2.tar.bz2 deleted file mode 100644 index a004f8e..0000000 --- a/odfpy-0.9.2.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0cebe9208f625fcd9782fdcafcce22dc7a523ecf78b20c0716d8ada87a10ce8a -size 381113 diff --git a/odfpy-0.9.3.tar.bz2 b/odfpy-0.9.3.tar.bz2 new file mode 100644 index 0000000..60fead7 --- /dev/null +++ b/odfpy-0.9.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8548e1e4c9a37552b561875f4de0638136079e8ddc2cfc345801aa02eab60e6 +size 437625 diff --git a/python-odfpy.changes b/python-odfpy.changes index c2031e3..563e054 100644 --- a/python-odfpy.changes +++ b/python-odfpy.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Mar 3 08:56:50 UTC 2011 - saschpe@suse.de + +- Update to 0.9.3: + * No changelog +- Spec file cleanup: + * Removed empty lines, fixed indentation and license header + * No Perl build dependency + ------------------------------------------------------------------- Fri Aug 27 07:33:21 UTC 2010 - toms@suse.de @@ -8,16 +17,13 @@ Wed Feb 17 00:00:00 UTC 2010 - cfarrell1980@gmail.com - Update to 0.9.2 - ------------------------------------------------------------------- Tue Nov 03 00:00:00 UTC 2009 - cfarrell1980@gmail.com - Update to 0.9.1 - ------------------------------------------------------------------- Tue Aug 12 00:00:00 UTC 2008 - cfarrell1980@gmail.com - Initial import and build. - darix suggested to use perl to gather the man files. - diff --git a/python-odfpy.spec b/python-odfpy.spec index e5e228d..e76fb9a 100644 --- a/python-odfpy.spec +++ b/python-odfpy.spec @@ -11,56 +11,79 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. - +# # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%define real_name odfpy -# -# +%define mod_name odfpy -Name: python-%{real_name} -Group: Development/Libraries/Python -Version: 0.9.2 -Release: 1 -License: dual license(GPLv2+ | ASLv2.0) -Summary: Tools and Python API for manipulating OASIS ODF documents -AutoReqProv: on -Source: %{real_name}-%{version}.tar.bz2 +Name: python-%{mod_name} +Version: 0.9.3 +Release: 0 +Url: http://opendocumentfellowship.com/development/projects/odfpy +Summary: Python API and tools to manipulate OpenDocument files +License: GPLv2+, ASLv2 +Group: Development/Languages/Python +Source: %{mod_name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: perl python python-setuptools -%if 0%{?suse_version} >= 1120 +BuildRequires: python-devel +BuildRequires: python-setuptools +%if 0%{?suse_version} +%py_requires +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif -Url: http://opendocumentfellowship.com/projects/odfpy -# Packager: Ciaran Farrell -%{py_requires} +%endif %description -odfpy aims to be a complete API for OpenDocument in Python. Unlike other more -convenient APIs, this one is essentially an abstraction layer just above the -XML format. The main focus has been to prevent the programmer from creating -invalid documents. It has checks that raise an exception if the programmer -adds an invalid element, adds an attribute unknown to the grammar, forgets -to add a required attribute or adds text to an element that doesn't allow it. +Odfpy is a library to read and write OpenDocument v. 1.1 files. +The main focus has been to prevent the programmer from creating invalid +documents. It has checks that raise an exception if the programmer adds +an invalid element, adds an attribute unknown to the grammar, forgets to +add a required attribute or adds text to an element that doesn't allow it. + +These checks and the API itself were generated from the RelaxNG +schema, and then hand-edited. Therefore the API is complete and can +handle all ODF constructions. + +In addition to the API, there are a few scripts: + +- csv2odf - Create OpenDocument spreadsheet from comma separated values +- mailodf - Email ODF file as HTML archive +- odf2xhtml - Convert ODF to (X)HTML +- odf2mht - Convert ODF to HTML archive +- odf2xml - Create OpenDocument XML file from OD? package +- odfimgimport - Import external images +- odflint - Check ODF file for problems +- odfmeta - List or change the metadata of an ODF file +- odfoutline - Show outline of OpenDocument +- odfuserfield - List or change the user-field declarations in an ODF file +- xml2odf - Create OD? package from OpenDocument in XML form + +Visit http://odfpy.forge.osor.eu/ for documentation and examples. %prep -%setup -n %{real_name}-%{version} +%setup -q -n %{mod_name}-%{version} %build -export CFLAGS="$RPM_OPT_FLAGS" +export CFLAGS="%{optflags}" python setup.py build %install -python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES -perl -p -i -e 's|(.*/man/.*)|${1}*|g' INSTALLED_FILES +python setup.py install --prefix=%{_prefix} --root=%{buildroot} %clean -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -%files -f INSTALLED_FILES -%defattr(-,root,root) +%files +%defattr(-,root,root,-) +%{_bindir}/* +%{_mandir}/man1/* +%python_sitelib/odf* +%python_sitelib/*.egg-info %changelog