# define python_sitelib %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pyscript Version: 0.6.1 Release: 6%{?dist} Summary: PyScript - Postscript graphics with Python Group: Applications/Publishing License: GPLv2+ URL: http://pyscript.sourceforge.net Source0: http://dl.sourceforge.net/sourceforge/pyscript/%{name}-%{version}.tar.gz Patch0: pyscript_groups_as.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel Requires: tetex-latex %description PyScript is a Python module for producing high quality postscript graphics. Rather than use a GUI to draw a picture, the picture is programmed using Python and the PyScript objects. %prep %setup -q %patch0 -p0 %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README LICENSE BUGS CHANGES TODO doc/manual/pyscript.pdf %{_bindir}/pyscript %{python_sitelib}/pyscript %{python_sitelib}/*.egg-info %changelog * Tue Jun 1 2010 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.6.1-6 - Add patch to fix syntax error associated with using protected keyword as a variable name * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.1-3 - Rebuild for Python 2.6 * Fri Jan 04 2008 Jef Spaleta <jspaleta@gmail.com> 0.6.1-2 - Fix for egg-info file creation * Fri Aug 03 2007 Jef Spaleta <jspaleta@gmail.com> 0.6.1-1 - Update to 0.6.1 and adjust licensing tag for updated guidelines * Mon Dec 11 2006 Jef Spaleta <jspaleta@gmail.com> 0.6-6 - BuildRequires and Requires changes to address review comments. * Sun Dec 10 2006 Jef Spaleta <jspaleta@gmail.com> 0.6-5 - Spec changes to bring things in line with current Extras packaging policy for python. * Mon May 15 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-4 - Removed python from Requires list as this will be taken care of automatically. - Added version numbers to the changelog headers. * Mon May 15 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-3 - On further advice from <tjikkun@xs4all.nl>; Bugzilla ref: #191218 And from the python packaging guidelines the following changes have been made: - %%{python_sitelib} variable introduced. - %%{ghost}ing of optimised python files so that they are uninstalled were someone to create them at some later stage. - Simplification of prep, build and install sections. - Use of wildcards where possible (not possible for library files as wish to exclude some from the distribution). - Use of the %%{__python} macro, and an improved version of the install command. * Fri May 12 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-2 - On advice from: <tjikkun@xs4all.nl>; Bugzilla ref: #191218 - Removed Prefix, and made non-relocatable - Corrected BuildRoot - Corrected spec file filename - Cleaning BuildRoot at beginning of install - Corrected defattr and Source0 values from fedora-newrpmspec - Changed ordering of attribute values to agree with the standard spec file format from fedora-newrpmspec - Increased release number - Added %%{_libdir} and %%{_bindir} macros in relevant locations * Mon Apr 24 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-1 - Updated for PyScript version 0.6 - Removed patch commands as not required for version 0.6 * Fri Apr 7 2006 Paul Cochrane <paultcochrane@gmail.com> - Corrected Group tag, added dist to the Release tag, and changed the Copyright tag to License as it now is (and corrected the tag value). * Fri Mar 30 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-1 - Finally got building to work properly * Fri Mar 3 2006 Paul Cochrane <paultcochrane@gmail.com> 0.6-1 - New spec file made for pyscript-0.5