]>
Commit | Line | Data |
---|---|---|
de0162df MK |
1 | %define module pyexcelerator |
2 | Summary: Excel 97+ files Python generator | |
3 | Summary(pl.UTF-8): Pythonowy generator plików Excela 97+ | |
4 | Name: python-%{module} | |
5 | Version: 0.6.4.1 | |
d9a2dd8a | 6 | Release: 5 |
de0162df MK |
7 | License: BSD |
8 | Group: Development/Languages/Python | |
9 | Source0: http://dl.sourceforge.net/%{module}/%{module}-%{version}.tar.bz2 | |
10 | # Source0-md5: 8750d7242c2b2c0d496f9a2aaa083097 | |
11 | URL: http://sourceforge.net/projects/pyexcelerator/ | |
12 | BuildRequires: python-devel | |
13 | BuildRequires: rpm-pythonprov | |
14 | # if py_postclean is used | |
81363e2a | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
de0162df MK |
16 | Requires: python-libs >= 2.4 |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Generating Excel 97+ files with Python 2.4+ (need decorators), | |
22 | importing Excel 95+ files, support for UNICODE in Excel files, using | |
23 | variety of formatting features and printing options, Excel files and | |
24 | OLE2 compound files dumper. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | Generator plików Excel 97+ wymagajacy Python 2.4 (wymaga | |
28 | dekoratorów). Importuje pliki Excel 95+, wsparcie dla Unicode w | |
29 | plikach Excel, używa sporej ilości formatowań i opcji drukowania. | |
30 | Zrzuty plików Excela oraz plików komponentów OLE2. | |
31 | ||
32 | %prep | |
33 | %setup -q -n %{module}-%{version} | |
34 | ||
35 | %build | |
2af84ce2 | 36 | %py_build |
de0162df MK |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
2af84ce2 | 40 | %py_install |
de0162df MK |
41 | |
42 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
43 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
44 | %py_postclean | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | # %doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
52 | %dir %{py_sitescriptdir}/pyExcelerator | |
53 | %{py_sitescriptdir}/pyExcelerator/*.py[co] | |
e6343fb6 MK |
54 | %if "%{py_ver}" > "2.4" |
55 | %{py_sitescriptdir}/pyExcelerator-*.egg-info | |
56 | %endif |