From 0ed2083ecbd865572bcc9bdf607f82d59d71613b018212d0b08ee42e3543177c Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 26 Nov 2010 13:57:18 +0000 Subject: [PATCH] Accepting request 54009 from home:thomas-schraitle:calibre New package OBS-URL: https://build.opensuse.org/request/show/54009 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + odfpy-0.9.2.tar.bz2 | 3 ++ python-odfpy.changes | 23 +++++++++++++ python-odfpy.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 130 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 odfpy-0.9.2.tar.bz2 create mode 100644 python-odfpy.changes create mode 100644 python-odfpy.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/odfpy-0.9.2.tar.bz2 b/odfpy-0.9.2.tar.bz2 new file mode 100644 index 0000000..a004f8e --- /dev/null +++ b/odfpy-0.9.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cebe9208f625fcd9782fdcafcce22dc7a523ecf78b20c0716d8ada87a10ce8a +size 381113 diff --git a/python-odfpy.changes b/python-odfpy.changes new file mode 100644 index 0000000..c2031e3 --- /dev/null +++ b/python-odfpy.changes @@ -0,0 +1,23 @@ +------------------------------------------------------------------- +Fri Aug 27 07:33:21 UTC 2010 - toms@suse.de + +- Added .changes file + +------------------------------------------------------------------- +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 new file mode 100644 index 0000000..30f4dd2 --- /dev/null +++ b/python-odfpy.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-odfpy +# +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# 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 + + +%define real_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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl python python-setuptools +%if 0%{?suse_version} >= 1120 +BuildArch: noarch +%endif +Url: http://opendocumentfellowship.com/projects/odfpy +# Packager: Ciaran Farrell +%{py_requires} + + +%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. + +%prep +%setup -n %{real_name}-%{version} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +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 + + + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f INSTALLED_FILES +%defattr(-,root,root) + + + +%changelog +* Wed Feb 17 2010 - cfarrell1980@gmail.com +- Update to 0.9.2 + +* Tue Nov 03 2009 - cfarrell1980@gmail.com +- Update to 0.9.1 + +* Tue Aug 12 2008 - cfarrell +- Initial import and build. +- darix suggested to use perl to gather the man files. +