- 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
This commit is contained in:
Sascha Peilicke 2011-03-03 09:05:09 +00:00 committed by Git OBS Bridge
parent 7ff70e1047
commit b4a3d55c41
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
@ -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.

View File

@ -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 <cfarrell1980@googlemail.com>
%{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