%define name pyexcelerator %define version 0.6.3a %define release 1%{?dist} Summary: Generation Excel 97+ and OpenOffice Calc compatible spreadsheets Name: %{name} Version: %{version} Release: %{release} Source0: %{name}-%{version}.zip License: BSD-like Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildArch: noarch Vendor: Roman V. Kiseliov Url: http://www.kiseliov.ru Requires: python >= 2.4 %description pyExcelerator is a library for generating Excel 97/2000/XP/2003 and OpenOffice Calc compatible spreadsheets. pyExcelerator has full-blown support for UNICODE in Excel and Calc spreadsheets, allows using variety of formatting features, provides interface to printing options of Excel and OpenOffice Calc. pyExcelerator contains also Excel BIFF8 dumper and MS compound documents dumper. Main advantage is possibility of generating Excel spreadsheets without COM servers. The only requirement -- Python 2.4b2 or higher. %prep %setup -n pyExcelerator-%{version} -q %build rm -rf CVS */CVS python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES \ -O1 -O2 mkdir -p $RPM_BUILD_ROOT/usr/bin for file in `ls -1 tools/xls2*.py | sed 's/^tools\/\(.*\)\.py$/\1/g'`; do cp -a tools/$file.py $RPM_BUILD_ROOT/usr/bin/$file chmod +x $RPM_BUILD_ROOT/usr/bin/$file done %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc CHANGES.txt LICENSE.txt README.txt THANKS.txt TODO.txt %doc examples museum tools /usr/bin/* %changelog * Sun Aug 26 2007 Jan ONDREJ (SAL) - initial release