/[pdpsoft]/trunk/nl.nikhef.pdp.wn-env/wlcg-wn-env.spec
ViewVC logotype

Contents of /trunk/nl.nikhef.pdp.wn-env/wlcg-wn-env.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2553 - (show annotations) (download)
Fri Jun 22 15:22:31 2012 UTC (10 years, 3 months ago) by janjust
File size: 3209 byte(s)
First version of WLCG Worker Node Environment scripts


1 # $Id: $
2
3 %define debug_package %{nil}
4 %define __arch_install_post %{nil}
5
6 %if "%{_vendor}" == "suse"
7 %define platform suse
8 %define _version %(sed -n 's/VERSION = \\([0-9]*\\)\..*/\\1/p' /etc/SuSE-release)
9 %define osversion suse%{_version}
10 %endif
11
12 %if "%{_vendor}" == "redhat"
13 %define platform redhat
14 %define _version %(sed -e 's/.* \\([0-9]\\).*/\\1/' /etc/redhat-release)
15 %if "%(cut -d' ' -f 1 /etc/redhat-release)" == "Fedora"
16 %define platform Fedora
17 %define osversion fc%{_version}
18 %else
19 %define osversion rhel%{_version}
20 %endif
21 %endif
22
23 # set the osversion of rhel3, rhel4, etc
24 %define _distr %{osversion}
25 %define dist .el%{_version}
26 %define _build_name_fmt %{_distr}/%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
27
28 Name: wlcg-wn-env
29 Summary: WLCG worker node environment scripts for PBS 2.3 clusters
30 Version: 0.1
31 Release: 2.%{osversion}
32 Vendor: Nikhef
33 License: ASL 2.0
34 Group: Applications/System
35 Source0: wlcg-wn-env-%{version}.tar.gz
36 URL: http://www.nikhef.nl/~janjust/wlcg-wn-env
37 Packager: Jan Just Keijser <janjust@nikhef.nl>
38 BuildArch: noarch
39 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
40
41 %description
42 A set of scripts to provide the WLCG worker node environment.
43
44 %package pbs
45 Summary: WLCG worker node environment scripts for PBS 2.3 clusters
46 Group: Applications/System
47 AutoReqProv: no
48 Provides: %{name} = %{version}-%{release}
49 Requires: pbs-client
50
51 %description pbs
52 A set of scripts to provide the WLCG worker node environment
53 on PBS 2.3 clusters:
54 - prologue.user : set up the $JOBFEATURES file
55 - epilogue.user : clean up the $JOBFEATURES file
56 - wlcg-wn-env.conf : configuration file
57 - wlcg-wn-env.sh : set the environment variable JOBFEATURES
58
59 %package torque
60 Summary: WLCG worker node environment scripts for Torque 2.5 clusters
61 Group: Applications/System
62 AutoReqProv: no
63 Provides: %{name} = %{version}-%{release}
64 Requires: torque >= 2.5
65
66 %description torque
67 A set of scripts to provide the WLCG worker node environment
68 on Torque 2.5+ clusters:
69 - prologue.user : set up the $JOBFEATURES file
70 - epilogue.user : clean up the $JOBFEATURES file
71 - wlcg-wn-env.conf : configuration file
72 - wlcg-wn-env.sh : set the environment variable JOBFEATURES
73
74
75 %prep
76 %setup -q
77
78 %build
79
80 %install
81 mkdir -p $RPM_BUILD_ROOT/etc/profile.d
82 mkdir -p $RPM_BUILD_ROOT/var/spool/pbs/mom_priv
83 mkdir -p $RPM_BUILD_ROOT/var/torque/mom_priv
84
85 # copy over the right files
86 cp -p prologue.user epilogue.user $RPM_BUILD_ROOT/var/spool/pbs/mom_priv
87 cp -p prologue.user epilogue.user $RPM_BUILD_ROOT/var/torque/mom_priv
88 cp -p wlcg-wn-env.conf $RPM_BUILD_ROOT/etc
89 cp -p wlcg-wn-env.sh $RPM_BUILD_ROOT/etc/profile.d
90
91 %clean
92 rm -rf $RPM_BUILD_ROOT
93
94 %files pbs
95 %defattr(-,root,root,-)
96 %config(noreplace) /etc/wlcg-wn-env.conf
97 %config(noreplace) /etc/profile.d/wlcg-wn-env.sh
98 /var/spool/pbs
99 %doc README LICENSE
100
101 %files torque
102 %defattr(-,root,root,-)
103 %config(noreplace) /etc/wlcg-wn-env.conf
104 %config(noreplace) /etc/profile.d/wlcg-wn-env.sh
105 /var/torque
106 %doc README LICENSE
107
108 %changelog
109 * Fri Jun 22 2012 Jan Just Keijser <janjust@nikhef.nl> - 0.1-2
110 - fix rpmlint warnings
111
112 * Thu Jun 21 2012 Jan Just Keijser <janjust@nikhef.nl> - 0.1-1
113 - Initial release.

grid.support@nikhef.nl
ViewVC Help
Powered by ViewVC 1.1.28