Accepting request 63278 from devel:languages:python

Accepted submit request 63278 from user saschpe

OBS-URL: https://build.opensuse.org/request/show/63278
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-odfpy?expand=0&rev=4
This commit is contained in:
Berthold Gunreben 2011-03-08 09:58:28 +00:00 committed by Git OBS Bridge
commit c2c82827e0
4 changed files with 65 additions and 36 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0cebe9208f625fcd9782fdcafcce22dc7a523ecf78b20c0716d8ada87a10ce8a
size 381113

3
odfpy-0.9.3.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e8548e1e4c9a37552b561875f4de0638136079e8ddc2cfc345801aa02eab60e6
size 437625

View File

@ -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 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 - Update to 0.9.2
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 03 00:00:00 UTC 2009 - cfarrell1980@gmail.com Tue Nov 03 00:00:00 UTC 2009 - cfarrell1980@gmail.com
- Update to 0.9.1 - Update to 0.9.1
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Aug 12 00:00:00 UTC 2008 - cfarrell1980@gmail.com Tue Aug 12 00:00:00 UTC 2008 - cfarrell1980@gmail.com
- Initial import and build. - Initial import and build.
- darix suggested to use perl to gather the man files. - darix suggested to use perl to gather the man files.

View File

@ -11,56 +11,79 @@
# case the license is the MIT License). An "Open Source License" is a # case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild # 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} Name: python-%{mod_name}
Group: Development/Libraries/Python Version: 0.9.3
Version: 0.9.2 Release: 0
Release: 1 Url: http://opendocumentfellowship.com/development/projects/odfpy
License: dual license(GPLv2+ | ASLv2.0) Summary: Python API and tools to manipulate OpenDocument files
Summary: Tools and Python API for manipulating OASIS ODF documents License: GPLv2+, ASLv2
AutoReqProv: on Group: Development/Languages/Python
Source: %{real_name}-%{version}.tar.bz2 Source: %{mod_name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl python python-setuptools BuildRequires: python-devel
%if 0%{?suse_version} >= 1120 BuildRequires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
BuildArch: noarch BuildArch: noarch
%endif %endif
Url: http://opendocumentfellowship.com/projects/odfpy %endif
# Packager: Ciaran Farrell <cfarrell1980@googlemail.com>
%{py_requires}
%description %description
odfpy aims to be a complete API for OpenDocument in Python. Unlike other more Odfpy is a library to read and write OpenDocument v. 1.1 files.
convenient APIs, this one is essentially an abstraction layer just above the The main focus has been to prevent the programmer from creating invalid
XML format. The main focus has been to prevent the programmer from creating documents. It has checks that raise an exception if the programmer adds
invalid documents. It has checks that raise an exception if the programmer an invalid element, adds an attribute unknown to the grammar, forgets to
adds an invalid element, adds an attribute unknown to the grammar, forgets add a required attribute or adds text to an element that doesn't allow it.
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 %prep
%setup -n %{real_name}-%{version} %setup -q -n %{mod_name}-%{version}
%build %build
export CFLAGS="$RPM_OPT_FLAGS" export CFLAGS="%{optflags}"
python setup.py build python setup.py build
%install %install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES python setup.py install --prefix=%{_prefix} --root=%{buildroot}
perl -p -i -e 's|(.*/man/.*)|${1}*|g' INSTALLED_FILES
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
%files -f INSTALLED_FILES %files
%defattr(-,root,root) %defattr(-,root,root,-)
%{_bindir}/*
%{_mandir}/man1/*
%python_sitelib/odf*
%python_sitelib/*.egg-info
%changelog %changelog