[199] | 1 | %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} |
---|
| 2 | |
---|
| 3 | ### Abstract ### |
---|
| 4 | |
---|
[200] | 5 | Name: pbs_python |
---|
[295] | 6 | Version: 4.3.6 |
---|
[199] | 7 | Release: 1%{?dist} |
---|
[148] | 8 | License: See LICENSE |
---|
[88] | 9 | Group: Development/Libraries |
---|
[199] | 10 | Summary: This package contains the PBS python module. |
---|
[290] | 11 | URL: https://oss.trac.surfsara.nl/pbs_python |
---|
[199] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[88] | 13 | Source: ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz |
---|
| 14 | |
---|
[199] | 15 | ### Dependencies ### |
---|
| 16 | # None |
---|
[148] | 17 | |
---|
[199] | 18 | ### Build Dependencies ### |
---|
| 19 | |
---|
| 20 | BuildRequires: libtorque-devel >= %{libtorque_version} |
---|
| 21 | BuildRequires: python2-devel >= %{python_version} |
---|
| 22 | |
---|
[88] | 23 | %description |
---|
| 24 | This package contains the pbs python module. |
---|
| 25 | |
---|
[100] | 26 | %prep |
---|
[199] | 27 | %setup -q -n pbs_python-%{version} |
---|
[148] | 28 | |
---|
[88] | 29 | %build |
---|
[199] | 30 | %configure |
---|
| 31 | %{__python} setup.py build |
---|
[88] | 32 | |
---|
| 33 | %install |
---|
[199] | 34 | %{__python} ./setup.py install --prefix $RPM_BUILD_ROOT%{_prefix} ; |
---|
[88] | 35 | |
---|
| 36 | %clean |
---|
| 37 | rm -rf $RPM_BUILD_ROOT |
---|
| 38 | |
---|
| 39 | %files |
---|
[99] | 40 | %defattr(-,root,root,0755) |
---|
[88] | 41 | %doc README TODO examples |
---|
[199] | 42 | %{python_sitearch}/pbs.pth |
---|
| 43 | %{python_sitearch}/pbs/* |
---|
[88] | 44 | |
---|
| 45 | %changelog |
---|
[211] | 46 | * Tue Mar 24 2010 Ramon Bastiaans <ramon.bastiaans@sara.nl> |
---|
| 47 | - Updates for new version |
---|
[199] | 48 | * Tue Oct 06 2009 Ramon Bastiaans <ramon.bastiaans@sara.nl> |
---|
| 49 | - Fixed tmppath, %setup sourcedir |
---|
| 50 | * Tue Mar 24 2009 David Chin <chindw@wfu.edu> |
---|
| 51 | - Fedora-ize |
---|
[148] | 52 | * Sun Mar 9 2008 Michael Sternberg <sternberg@anl.gov> |
---|
| 53 | - libdir and python defines |
---|
[100] | 54 | * Wed Nov 23 2005 Ramon Bastiaans <bastiaans@sara.nl> |
---|
| 55 | - Fixed missing prep setup and added configure |
---|
[99] | 56 | * Tue Nov 22 2005 Martin Pels <pels@sara.nl> |
---|
| 57 | - Changed default directory permissions |
---|
[88] | 58 | * Tue Nov 01 2005 Martin Pels <pels@sara.nl> |
---|
| 59 | - Initial version |
---|
[99] | 60 | |
---|