import repository from arizona
[raven.git] / rpm_builds / SPECS / stork.spec.template
1 Summary: stork package
2 Name: stork
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/stork-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 requires: stork-config arizona-lib = @VER@-@REL@
12
13 %description
14 TODO: add description of this library
15
16 %prep
17 %setup -q
18
19 %build
20
21 %install
22 rm -rf %\{buildroot]
23 install -d -o 0 -g 0 %{buildroot}/usr
24 install -d -o 0 -g 0 %{buildroot}/usr/local
25 install -d -o 0 -g 0 %{buildroot}/usr/local/stork
26 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/bin
27 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/bin/transfer
28 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/bin/share
29 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/var/certificates
30
31 install stork.py %{buildroot}/usr/local/stork/bin
32 install storkquery.py %{buildroot}/usr/local/stork/bin
33 # install storkbtshare.py %{buildroot}/usr/local/stork/bin
34 # install vserver_share.py %{buildroot}/usr/local/stork/bin/share
35 install storkerror.py %{buildroot}/usr/local/stork/bin
36 install storkexception.py %{buildroot}/usr/local/stork/bin
37 install storkusername.py %{buildroot}/usr/local/stork/bin
38 install storkdependency.py %{buildroot}/usr/local/stork/bin
39 # install storkbtdownloadheadless.py %{buildroot}/usr/local/stork/bin
40 install __init__.py %{buildroot}/usr/local/stork/bin/share
41 install nr06.certificate %{buildroot}/usr/local/stork/var/certificates
42 install storkconfigsync.py %{buildroot}/usr/local/stork/bin
43 install storkmetapoll.py %{buildroot}/usr/local/stork/bin
44 install storkmutex.py %{buildroot}/usr/local/stork/bin
45 install storkoutputfuncs.py %{buildroot}/usr/local/stork/bin
46 install storkrepodl.py %{buildroot}/usr/local/stork/bin
47 install storkrepolist.py %{buildroot}/usr/local/stork/bin
48 install storkreposync.py %{buildroot}/usr/local/stork/bin
49 install storkstats.py %{buildroot}/usr/local/stork/bin
50 install storkpackagelist.py %{buildroot}/usr/local/stork/bin
51 install storkpackagesort.py %{buildroot}/usr/local/stork/bin
52 install storkpoison.py %{buildroot}/usr/local/stork/bin
53 install storkversion.py %{buildroot}/usr/local/stork/bin
54 install storktrustedpackagesparse.py %{buildroot}/usr/local/stork/bin
55 install storktpqualify.py %{buildroot}/usr/local/stork/bin
56 install storkstatuscodes.py %{buildroot}/usr/local/stork/bin
57 #install showshare.py %{buildroot}/usr/local/stork/bin
58 install storklog.py %{buildroot}/usr/local/stork/bin
59 #install storkwarning.py %{buildroot}/usr/local/stork/bin
60
61 # owl scripts
62 install -d -o 0 -g 0 %{buildroot}/etc/owl
63 install -d -o 0 -g 0 %{buildroot}/etc/owl/scripts.d
64 install -d -o 0 -g 0 %{buildroot}/etc/owl/conf.d
65 install stork_owl.conf %{buildroot}/etc/owl/conf.d/stork.conf
66 install stork_owl %{buildroot}/etc/owl/scripts.d/stork
67
68 %clean
69 rm -rf %{buildroot}
70
71 %post
72
73 ln -sf /usr/local/stork/bin/stork.py /usr/bin/stork
74 ln -sf /usr/local/stork/bin/storkquery.py /usr/bin/storkquery
75 ln -sf /usr/local/stork/bin/storkreposync.py /usr/bin/storkreposync
76 ln -sf /usr/local/stork/bin/storkconfigsync.py /usr/bin/storkconfigsync
77 ln -sf /usr/local/stork/bin/storkmetapoll.py /usr/bin/storkmetapoll
78
79 %preun
80 if [ $1 = 0 ]; then
81   rm -f /usr/bin/stork
82   rm -f /usr/bin/storkquery
83   rm -f /usr/bin/storkconfigsync
84   rm -f /usr/bin/storkreposync
85   rm -f /usr/bin/storkmetapoll
86 fi
87
88 %files
89 %defattr(-,root,root)
90
91 /usr/local/stork/bin/stork.py
92 /usr/local/stork/bin/storkquery.py
93 #/usr/local/stork/bin/storkbtshare.py
94 #/usr/local/stork/bin/share/vserver_share.py
95 /usr/local/stork/bin/storkerror.py
96 /usr/local/stork/bin/storkexception.py
97 /usr/local/stork/bin/storkusername.py
98 /usr/local/stork/bin/storkdependency.py
99 #/usr/local/stork/bin/storkbtdownloadheadless.py
100 /usr/local/stork/bin/share/__init__.py
101 /usr/local/stork/var/certificates/nr06.certificate
102 /usr/local/stork/bin/storkoutputfuncs.py
103 /usr/local/stork/bin/storkmetapoll.py
104 /usr/local/stork/bin/storkmutex.py
105 /usr/local/stork/bin/storkpackagelist.py
106 /usr/local/stork/bin/storkpackagesort.py
107 /usr/local/stork/bin/storkpoison.py
108 /usr/local/stork/bin/storkconfigsync.py
109 /usr/local/stork/bin/storkrepodl.py
110 /usr/local/stork/bin/storkrepolist.py
111 /usr/local/stork/bin/storkreposync.py
112 /usr/local/stork/bin/storkstats.py
113 /usr/local/stork/bin/storkversion.py
114 /usr/local/stork/bin/storktrustedpackagesparse.py
115 /usr/local/stork/bin/storktpqualify.py
116 /usr/local/stork/bin/storkstatuscodes.py
117 #/usr/local/stork/bin/showshare.py
118 /usr/local/stork/bin/storklog.py
119 #/usr/local/stork/bin/storkwarning.py
120 /etc/owl/scripts.d/stork
121 /etc/owl/conf.d/stork.conf
122