SPECS: python-xlrd.spec (NEW) - new
qwiat
qwiat at pld-linux.org
Thu Nov 13 12:19:46 CET 2008
Author: qwiat Date: Thu Nov 13 11:19:46 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
python-xlrd.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/python-xlrd.spec
diff -u /dev/null SPECS/python-xlrd.spec:1.1
--- /dev/null Thu Nov 13 12:19:46 2008
+++ SPECS/python-xlrd.spec Thu Nov 13 12:19:41 2008
@@ -0,0 +1,67 @@
+# $Revision$, $Date$
+%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
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+$Log$
+Revision 1.1 2008/11/13 11:19:41 qwiat
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list