]> git.pld-linux.org Git - packages/python-xlrd.git/commitdiff
- new
authorqwiat <qwiat@pld-linux.org>
Thu, 13 Nov 2008 11:19:41 +0000 (11:19 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-xlrd.spec -> 1.1

python-xlrd.spec [new file with mode: 0644]

diff --git a/python-xlrd.spec b/python-xlrd.spec
new file mode 100644 (file)
index 0000000..0aa9a24
--- /dev/null
@@ -0,0 +1,57 @@
+%define         module  xlrd
+Summary:       Python interface to extracting data from Excel datasheets
+Summary(pl.UTF-8):     Pythonowy interfejs do odczytywania danych z arkuszy Excela
+Name:          python-%{module}
+Version:       0.6.1
+Release:       0.1
+License:       BSD-style
+Group:         Development/Languages/Python
+Source0:       http://www.lexicon.net/sjmachin/%{module}-%{version}.zip
+URL:           http://www.lexicon.net/sjmachin/xlrd.htm
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python interface to extracting data from Excel datasheets
+
+%description -l pl.UTF-8
+Pythonowy interfejs do odczytywania danych z arkuszy Excela
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install xlrd/examples/namesdemo.xls $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install xlrd/examples/xlrdnameAPIdemo.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+install scripts/runxlrd.py  $RPM_BUILD_ROOT%{_bindir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_ocomp $RPM_BUILD_ROOT%{_bindir}
+%py_comp $RPM_BUILD_ROOT%{_bindir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc xlrd/doc/compdoc.html xlrd/doc/HISTORY.html xlrd/doc/README.html xlrd/doc/xlrd.html
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{_examplesdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/runxlrd.py[oc]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
This page took 0.109901 seconds and 4 git commands to generate.