rpms/python-xlrd/EL-5 python-xlrd.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ján ONDREJ (ondrejj) fedora-extras-commits at redhat.com
Sat Jan 5 19:49:36 UTC 2008


Author: ondrejj

Update of /cvs/pkgs/rpms/python-xlrd/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8769/EL-5

Modified Files:
	.cvsignore sources 
Added Files:
	python-xlrd.spec 
Log Message:
python-xlrd added


--- NEW FILE python-xlrd.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-xlrd
Version:        0.6.1
Release:        5%{?dist}
Summary:        Library to extract data from Microsoft Excel (tm) spreadsheet files

Group:          Development/Languages
License:        BSD
URL:            http://www.lexicon.net/sjmachin/xlrd.htm
Source0:        http://www.lexicon.net/sjmachin/xlrd-%{version}.zip
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel, dos2unix

%description
Extract data from new and old Excel spreadsheets on any platform.  Pure
Python (2.1 or later).  Strong support for Excel dates.  Unicode-aware.

%prep
%setup -q -n xlrd-%{version}

%build
# fix CRLF to LF
for i in */*.py *.html xlrd/doc/* xlrd/examples/*; do
  dos2unix $i
done
for i in xlrd/doc/* xlrd/examples/xlrdnameAPIdemo.py; do
  iconv -f iso8859-1 -t UTF-8 $i > $i.tmp
  mv -f $i.tmp $i
done
%{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
# add shebang and remove .py file
(
  echo '#!%{__python}'
  cat $RPM_BUILD_ROOT%{_bindir}/runxlrd.py
) >> $RPM_BUILD_ROOT%{_bindir}/runxlrd
rm -rf $RPM_BUILD_ROOT%{_bindir}/runxlrd.py* \
  $RPM_BUILD_ROOT/%{python_sitelib}/xlrd/doc \
  $RPM_BUILD_ROOT/%{python_sitelib}/xlrd/examples

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc xlrd/doc/* xlrd/examples
%attr(755,root,root) %dir %{python_sitelib}/xlrd
%{python_sitelib}/xlrd/*
%if "%{fedora}" > "8"
%{python_sitelib}/*egg-info
%endif
%attr(755,root,root) %{_bindir}/*

%changelog
* Thu Jan 3 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-5
- updated /usr/bin/ by bindir macro

* Tue Jan 1 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-4
- added eggs for Fedora >= 9

* Fri Sep 14 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> 0.6.1-3
- doc files converted to UTF-8
- removed HISTORY.html README.html because they are also in xlrd/doc/

* Fri Sep 7 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-2
- namewithoutprefix removed, too complicated and not required
- added directory xlrd
- permissions for python scripts set to 644
- files converted from DOS line-feeds to UNIX format
- "#!/usr/bin/env python" added to beginning runxlrd script
- removed doc and examples from site-packages/xlrd directory

* Tue Jun 12 2007 Sean Reifschneider <jafo at tummy.com> - 0.6.1-1
- Initial RPM spec file.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-xlrd/EL-5/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	5 Jan 2008 18:18:45 -0000	1.1
+++ .cvsignore	5 Jan 2008 19:48:55 -0000	1.2
@@ -0,0 +1 @@
+xlrd-0.6.1.zip


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-xlrd/EL-5/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	5 Jan 2008 18:18:45 -0000	1.1
+++ sources	5 Jan 2008 19:48:55 -0000	1.2
@@ -0,0 +1 @@
+e3da69ffa47dff466f181c2e149a2c02  xlrd-0.6.1.zip




More information about the fedora-extras-commits mailing list