-
Notifications
You must be signed in to change notification settings - Fork 1
/
pbs_python.spec
executable file
·65 lines (52 loc) · 1.88 KB
/
pbs_python.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
### Abstract ###
Name: pbs_python
License: See LICENSE
Group: Development/Libraries
Summary: This package contains the PBS python module.
URL: https://oss.trac.surfsara.nl/pbs_python
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Source: ftp://ftp.sara.nl/pub/outgoing/pbs_python.tar.gz
### Dependencies ###
# None
### Build Dependencies ###
BuildRequires: torque-devel
BuildRequires: python-devel >= %{python_version}
%description
This package contains the pbs python module.
%prep
%setup -q -n pbs_python-%{version}
%build
%configure
#%{__python} setup.py build
%install
make install DESTDIR=$RPM_BUILD_DIR
#%{__python} ./setup.py install --prefix $RPM_BUILD_ROOT%{_prefix} ;
#%{__mkdir_p} $RPM_BUILD_ROOT%{_prefix}/bin
#%{__install} -m0655 examples/sara_nodes.py ${RPM_BUILD_ROOT}%{_prefix}/bin/sara_nodes
#%{__install} -m0655 examples/new_rack_pbsmon.py ${RPM_BUILD_ROOT}%{_prefix}/bin/pbsmon
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,0755)
%doc README TODO examples
%{python_sitearch}/pbs.pth
%{python_sitearch}/pbs/*
%{_prefix}/bin/*
%changelog
* Mon Aug 31 2015 Dennis Stam <[email protected]>
- Simplified the rpm build process, version is set by the Makefile
* Tue Mar 24 2010 Ramon Bastiaans <[email protected]>
- Updates for new version
* Tue Oct 06 2009 Ramon Bastiaans <[email protected]>
- Fixed tmppath, %setup sourcedir
* Tue Mar 24 2009 David Chin <[email protected]>
- Fedora-ize
* Sun Mar 9 2008 Michael Sternberg <[email protected]>
- libdir and python defines
* Wed Nov 23 2005 Ramon Bastiaans <[email protected]>
- Fixed missing prep setup and added configure
* Tue Nov 22 2005 Martin Pels <[email protected]>
- Changed default directory permissions
* Tue Nov 01 2005 Martin Pels <[email protected]>
- Initial version