import repository from arizona
[raven.git] / rpm_builds / SPECS / raven.spec.template
1 Summary: Raven enduser tools
2 Name: raven
3 Version: @VER@
4 Release: @REL@
5 License: Public Domain
6 Group: stork at U of Arizona
7 URL: http://www.cs.arizona.edu/
8 Source RPM: ftp://quadrus.cs.arizona.edu/PlanetLab/V3/raven-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 requires: ravenlib >= 2.2.32, rpm-build
12
13 %description
14 This rpm provides the raven enduser tools.
15 %prep
16 %setup -q
17
18 %build
19
20 %install
21 rm -rf %\{buildroot]
22 install -d -o 0 -g 0 %{buildroot}/usr
23 install -d -o 0 -g 0 %{buildroot}/usr/local
24 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin
25 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/package
26 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/sfa
27 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/sfa/trust
28 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/sfa/util
29 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/ravenlib
30 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/ravenlib/client
31 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/bin/ravenlib/files
32 install -d -o 0 -g 0 %{buildroot}/usr/local/raven/etc
33 install -d -o 0 -g 0 %{buildroot}/usr/share/man/man8
34 install -d -o 0 -g 0 %{buildroot}/usr/share/sface
35 install -d -o 0 -g 0 %{buildroot}/usr/share/sface/screens
36
37 install builder.py %{buildroot}/usr/local/raven/bin
38 install container.py %{buildroot}/usr/local/raven/bin
39 install errorparser.py %{buildroot}/usr/local/raven/bin
40 install get_protogeni_cred.py %{buildroot}/usr/local/raven/bin
41 install kongclient.py %{buildroot}/usr/local/raven/bin
42 install konggui.py %{buildroot}/usr/local/raven/bin
43 install kongscreen.py %{buildroot}/usr/share/sface/screens
44 install raven.py %{buildroot}/usr/local/raven/bin
45 install ravengui.py %{buildroot}/usr/local/raven/bin
46 install ravengui_passphrase.py %{buildroot}/usr/local/raven/bin
47 install ravenscreen.py %{buildroot}/usr/share/sface/screens
48 install ravenbuilder.py %{buildroot}/usr/local/raven/bin
49 install ravenversion.py %{buildroot}/usr/local/raven/bin
50 install slicerun.py %{buildroot}/usr/local/raven/bin
51
52 # man page
53 install raven.man %{buildroot}/usr/share/man/man8/
54
55 # etc dir
56 install stork.conf.template %{buildroot}/usr/local/raven/etc
57 install default.publickey %{buildroot}/usr/local/raven/etc
58 install stork.publickey %{buildroot}/usr/local/raven/etc
59 install fedora8.publickey %{buildroot}/usr/local/raven/etc
60 install owl.packages.pacman %{buildroot}/usr/local/raven/etc
61 install stork.packages.pacman %{buildroot}/usr/local/raven/etc
62 install kong.packages.pacman %{buildroot}/usr/local/raven/etc
63 install complete %{buildroot}/usr/local/raven/etc
64 install start %{buildroot}/usr/local/raven/etc
65 install stop %{buildroot}/usr/local/raven/etc
66 install opt_out %{buildroot}/usr/local/raven/etc
67 install prepare %{buildroot}/usr/local/raven/etc
68 install prepared %{buildroot}/usr/local/raven/etc
69 install return_result %{buildroot}/usr/local/raven/etc
70 install abort %{buildroot}/usr/local/raven/etc
71 install kong-server.conf %{buildroot}/usr/local/raven/etc
72
73 # Geniwrapper stuff
74 install __init__.py %{buildroot}/usr/local/raven/bin/sfa
75 install __init__.py %{buildroot}/usr/local/raven/bin/sfa/trust
76 install certificate.py %{buildroot}/usr/local/raven/bin/sfa/trust
77 install credential.py %{buildroot}/usr/local/raven/bin/sfa/trust
78 install credential_legacy.py %{buildroot}/usr/local/raven/bin/sfa/trust
79 install gid.py %{buildroot}/usr/local/raven/bin/sfa/trust
80 install rights.py %{buildroot}/usr/local/raven/bin/sfa/trust
81 install trustedroot.py %{buildroot}/usr/local/raven/bin/sfa/trust
82
83 install __init__.py %{buildroot}/usr/local/raven/bin/sfa/util
84 install faults.py %{buildroot}/usr/local/raven/bin/sfa/util
85 #install misc.py %{buildroot}/usr/local/raven/bin/sfa/util
86 #install namespace.py %{buildroot}/usr/local/raven/bin/sfa/util
87 install parameter.py %{buildroot}/usr/local/raven/bin/sfa/util
88 install record.py %{buildroot}/usr/local/raven/bin/sfa/util
89 #install report.py %{buildroot}/usr/local/raven/bin/sfa/util
90 install rspec.py %{buildroot}/usr/local/raven/bin/sfa/util
91 install sfalogging.py %{buildroot}/usr/local/raven/bin/sfa/util
92 install sfaticket.py %{buildroot}/usr/local/raven/bin/sfa/util
93 install xmlrpcprotocol.py %{buildroot}/usr/local/raven/bin/sfa/util
94 install xrn.py %{buildroot}/usr/local/raven/bin/sfa/util
95
96 %clean
97 rm -rf %{buildroot}
98
99 %post
100 # if [ $1 = 1 ]; then
101   ln -sf /usr/local/raven/bin/raven.py /usr/bin/raven
102   ln -sf /usr/local/raven/bin/ravenbuilder.py /usr/bin/ravenbuilder
103   ln -sf /usr/local/raven/bin/ravengui.py /usr/bin/ravengui
104   ln -sf /usr/local/raven/bin/konggui.py /usr/bin/konggui
105 # fi
106 # because previous versions littered an empty directory behind
107 rm -rf /usr/local/raven/bin/ravenlib
108 # some pyc files are causing problems...
109 rm -rf /usr/local/raven/bin/*.pyc
110
111
112 %preun
113 if [ $1 = 0 ]; then
114   rm -f /usr/bin/raven
115   rm -f /usr/bin/ravenbuilder
116   rm -f /usr/bin/ravengui
117 fi
118
119
120 %files
121 %defattr(-,root,root)
122 /usr/local/raven/bin/builder.py
123 /usr/local/raven/bin/container.py
124 /usr/local/raven/bin/errorparser.py
125 /usr/local/raven/bin/get_protogeni_cred.py
126 /usr/local/raven/bin/kongclient.py
127 /usr/local/raven/bin/konggui.py
128 /usr/local/raven/bin/raven.py
129 /usr/local/raven/bin/ravengui.py
130 /usr/local/raven/bin/ravengui_passphrase.py
131 /usr/local/raven/bin/ravenbuilder.py
132 /usr/local/raven/bin/ravenversion.py
133 /usr/local/raven/bin/slicerun.py
134
135 /usr/share/man/man8/raven.man
136
137 /usr/share/sface/screens/kongscreen.py
138 /usr/share/sface/screens/ravenscreen.py
139
140 #etc dir
141 /usr/local/raven/etc/stork.conf.template
142 /usr/local/raven/etc/default.publickey
143 /usr/local/raven/etc/stork.publickey
144 /usr/local/raven/etc/fedora8.publickey
145 /usr/local/raven/etc/stork.packages.pacman
146 /usr/local/raven/etc/owl.packages.pacman
147 /usr/local/raven/etc/kong.packages.pacman
148 /usr/local/raven/etc/complete
149 /usr/local/raven/etc/start
150 /usr/local/raven/etc/stop
151 /usr/local/raven/etc/opt_out
152 /usr/local/raven/etc/prepare
153 /usr/local/raven/etc/prepared
154 /usr/local/raven/etc/return_result
155 /usr/local/raven/etc/abort
156 /usr/local/raven/etc/kong-server.conf
157
158 # geniwrapper stuff
159 /usr/local/raven/bin/sfa/__init__.py
160 /usr/local/raven/bin/sfa/trust/__init__.py
161 /usr/local/raven/bin/sfa/trust/certificate.py
162 /usr/local/raven/bin/sfa/trust/credential.py
163 /usr/local/raven/bin/sfa/trust/credential_legacy.py
164 /usr/local/raven/bin/sfa/trust/gid.py
165 /usr/local/raven/bin/sfa/trust/rights.py
166 /usr/local/raven/bin/sfa/trust/trustedroot.py
167
168 /usr/local/raven/bin/sfa/util/__init__.py
169 /usr/local/raven/bin/sfa/util/faults.py
170 #/usr/local/raven/bin/sfa/util/misc.py
171 #/usr/local/raven/bin/sfa/util/namespace.py
172 /usr/local/raven/bin/sfa/util/parameter.py
173 /usr/local/raven/bin/sfa/util/record.py
174 #/usr/local/raven/bin/sfa/util/report.py
175 /usr/local/raven/bin/sfa/util/rspec.py
176 /usr/local/raven/bin/sfa/util/sfalogging.py
177 /usr/local/raven/bin/sfa/util/sfaticket.py
178 /usr/local/raven/bin/sfa/util/xmlrpcprotocol.py
179 /usr/local/raven/bin/sfa/util/xrn.py
180
181
182