commit a49b8f1c440b85eeacd05107f7fd91a5e252adb7
Author: Mateusz Korniak <[email protected]>
Date:   Fri Mar 1 22:23:29 2013 +0100

    Initial spec. Author Łukasz Gabrych.

 python-openpyxl.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
---
diff --git a/python-openpyxl.spec b/python-openpyxl.spec
new file mode 100644
index 0000000..3f26231
--- /dev/null
+++ b/python-openpyxl.spec
@@ -0,0 +1,69 @@
+# Conditional build:
+%bcond_without  tests   # do not perform "make test"
+
+%define        module  openpyxl
+Summary:       A Python library to read/write Excel 2007 xlsx/xlsm files
+Summary(pl.UTF-8):     Biblioteka umożliwiająca tworzenie plików w formacie 
xlsx/xlsm dla języka Python.
+Name:          python-%{module}
+Version:       1.6.1
+Release:       1
+License:       MIT/Expat
+Group:         Development/Languages/Python
+Source0:       
https://pypi.python.org/packages/source/o/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: d0d92b3b8128609be93a044ce3dac3f8
+URL:           http://bitbucket.org/ericgazoni/openpyxl/wiki/Home
+BuildRequires: python-distribute
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires:      python-modules
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Openpyxl is a pure python reader and writer of Excel OpenXML files. It
+is ported from the PHPExcel project
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__python} setup.py build
+
+#%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --skip-build \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%dir %{py_sitescriptdir}/%{module}/reader
+%{py_sitescriptdir}/%{module}/reader/*.py[co]
+%dir %{py_sitescriptdir}/%{module}/shared
+%{py_sitescriptdir}/%{module}/shared/*.py[co]
+%dir %{py_sitescriptdir}/%{module}/shared/compat
+%{py_sitescriptdir}/%{module}/shared/compat/*.py[co]
+%dir %{py_sitescriptdir}/%{module}/writer
+%{py_sitescriptdir}/%{module}/writer/*.py[co]
+
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-openpyxl.git/commitdiff/a49b8f1c440b85eeacd05107f7fd91a5e252adb7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to