Ticket #17: pbs-python.spec

File pbs-python.spec, 1.5 KB (added by ramonb, 14 years ago)

new spec file

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