1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | |
---|
3 | Name: odfpy |
---|
4 | Version: 0.9.2 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: Python library for manipulating OpenDocument files |
---|
7 | |
---|
8 | Group: Development/Languages |
---|
9 | License: GPLv2+ |
---|
10 | URL: http://forge.osor.eu/projects/odfpy/ |
---|
11 | # This changes every time, most recent downloads are at http://forge.osor.eu/frs/?group_id=33 |
---|
12 | Source0: http://forge.osor.eu/frs/download.php/805/odfpy-0.9.2.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
14 | |
---|
15 | BuildArch: noarch |
---|
16 | BuildRequires: python-devel python-setuptools |
---|
17 | |
---|
18 | Provides: python-odf |
---|
19 | |
---|
20 | %description |
---|
21 | Odfpy aims to be a complete API for OpenDocument in Python. Unlike |
---|
22 | other more convenient APIs, this one is essentially an abstraction |
---|
23 | layer just above the XML format. The main focus has been to prevent |
---|
24 | the programmer from creating invalid documents. It has checks that |
---|
25 | raise an exception if the programmer adds an invalid element, adds an |
---|
26 | attribute unknown to the grammar, forgets to add a required attribute |
---|
27 | or adds text to an element that doesn't allow it. |
---|
28 | |
---|
29 | These checks and the API itself were generated from the RelaxNG |
---|
30 | schema, and then hand-edited. Therefore the API is complete and can |
---|
31 | handle all ODF constructions, but could be improved in its |
---|
32 | understanding of data types. |
---|
33 | |
---|
34 | #' |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | |
---|
39 | |
---|
40 | %build |
---|
41 | CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build |
---|
42 | |
---|
43 | |
---|
44 | %install |
---|
45 | %__rm -rf %{buildroot} |
---|
46 | %{__python} -c 'import setuptools; execfile("setup.py")' install --skip-build --root %{buildroot} |
---|
47 | %__sed -i '/#!\/usr\/bin\/python/d' %{buildroot}%{python_sitelib}/odf/*.py |
---|
48 | |
---|
49 | |
---|
50 | %clean |
---|
51 | %__rm -rf %{buildroot} |
---|
52 | |
---|
53 | |
---|
54 | %files |
---|
55 | %defattr(-,root,root,-) |
---|
56 | %docdir examples |
---|
57 | %docdir contrib |
---|
58 | %{_bindir}/* |
---|
59 | %{_mandir}/man1/* |
---|
60 | %{python_sitelib}/*egg-info |
---|
61 | %{python_sitelib}/odf |
---|
62 | |
---|
63 | |
---|
64 | %changelog |
---|
65 | * Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 0.9.2-1 |
---|
66 | - initial build based on Fedora development |
---|
67 | |
---|
68 | * Fri Jul 30 2010 Ian Weller <iweller@redhat.com> - 0.9.2-2 |
---|
69 | - Fixed previous changelog entry |
---|
70 | |
---|
71 | * Fri Jul 30 2010 Ian Weller <iweller@redhat.com> - 0.9.2-1 |
---|
72 | - Update to 0.9.2 |
---|
73 | |
---|
74 | * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-3 |
---|
75 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
76 | |
---|
77 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2 |
---|
78 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
79 | |
---|
80 | * Mon Apr 20 2009 Ian Weller <ianweller@gmail.com> - 0.9-1 |
---|
81 | - Update upstream |
---|
82 | |
---|
83 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3 |
---|
84 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
85 | |
---|
86 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8-2 |
---|
87 | - Rebuild for Python 2.6 |
---|
88 | |
---|
89 | * Fri Aug 22 2008 Ian Weller <ianweller@gmail.com> 0.8-1 |
---|
90 | - Update upstream |
---|
91 | |
---|
92 | * Tue Jul 15 2008 Ian Weller <ianweller@gmail.com> 0.7-2 |
---|
93 | - Change macros |
---|
94 | - Remove license file |
---|
95 | |
---|
96 | * Sun Jul 13 2008 Ian Weller <ianweller@gmail.com> 0.7-1 |
---|
97 | - Add COPYING file |
---|
98 | - Use setuptools instead |
---|
99 | - sed out shebangs from module files |
---|
100 | - Other minor fixes |
---|
101 | |
---|
102 | * Sun Jul 13 2008 Paul W. Frields <stickster@gmail.com> - 0.7-0.1 |
---|
103 | - Initial RPM package |
---|