import repository from arizona
[raven.git] / rpm_builds / SPECS / ravenlib.spec.template
1 Summary: raven library package
2 Name: ravenlib
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/ravenlib-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 Requires: python >= 2.5, python-devel
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/bin
25 install -d -o 0 -g 0 %{buildroot}/usr/local
26 install -d -o 0 -g 0 %{buildroot}/usr/local/stork
27 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install
28 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib
29 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/acl
30 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/client
31 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/files
32 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/modpythonapi
33 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/package
34 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/platform
35 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/pubsub
36 install -d -o 0 -g 0 %{buildroot}/usr/local/stork/install/ravenlib/xmlrpc
37 install setup.py %{buildroot}/usr/local/stork/install/ravenlib
38 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib
39 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/acl
40 install baseacl.py %{buildroot}/usr/local/stork/install/ravenlib/acl
41 install mysqlacl.py %{buildroot}/usr/local/stork/install/ravenlib/acl
42 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/client
43 install digdugapi.py %{buildroot}/usr/local/stork/install/ravenlib/client
44 install repoclient.py %{buildroot}/usr/local/stork/install/ravenlib/client
45 install crypto.py %{buildroot}/usr/local/stork/install/ravenlib
46 install daemon.py %{buildroot}/usr/local/stork/install/ravenlib
47 install dirchecker.py %{buildroot}/usr/local/stork/install/ravenlib
48 install hash.py %{buildroot}/usr/local/stork/install/ravenlib
49 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/files
50 install asn1.py %{buildroot}/usr/local/stork/install/ravenlib/files
51 install pacpackages.py %{buildroot}/usr/local/stork/install/ravenlib/files
52 install pacgroups.py %{buildroot}/usr/local/stork/install/ravenlib/files
53 install tpfile.py %{buildroot}/usr/local/stork/install/ravenlib/files
54 install tpparse.py %{buildroot}/usr/local/stork/install/ravenlib/files
55 install sshkey.py %{buildroot}/usr/local/stork/install/ravenlib/files
56 install listutil.py %{buildroot}/usr/local/stork/install/ravenlib
57 install ravenconfigparser.py %{buildroot}/usr/local/stork/install/ravenlib
58 install ravenlog.py %{buildroot}/usr/local/stork/install/ravenlib
59 install report.py %{buildroot}/usr/local/stork/install/ravenlib
60 install stats.py %{buildroot}/usr/local/stork/install/ravenlib
61 install tableformat.py %{buildroot}/usr/local/stork/install/ravenlib
62 install tableprint.py %{buildroot}/usr/local/stork/install/ravenlib
63 install typecheck.py %{buildroot}/usr/local/stork/install/ravenlib
64 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/modpythonapi
65 install BaseClient.py %{buildroot}/usr/local/stork/install/ravenlib/modpythonapi
66 install AuthenticatedClient.py %{buildroot}/usr/local/stork/install/ravenlib/modpythonapi
67 install ApiExceptionCodes.py %{buildroot}/usr/local/stork/install/ravenlib/modpythonapi
68 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/package
69 install exception.py %{buildroot}/usr/local/stork/install/ravenlib/package
70 install storkpackage.py %{buildroot}/usr/local/stork/install/ravenlib/package
71 install tar.py %{buildroot}/usr/local/stork/install/ravenlib/package
72 install transaction.py %{buildroot}/usr/local/stork/install/ravenlib/package
73 install rpm.py %{buildroot}/usr/local/stork/install/ravenlib/package
74 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/platform
75 install all.py %{buildroot}/usr/local/stork/install/ravenlib/platform
76 install platform_sfa.py %{buildroot}/usr/local/stork/install/ravenlib/platform
77 install platform_unix.py %{buildroot}/usr/local/stork/install/ravenlib/platform
78 install platform_planetlab.py %{buildroot}/usr/local/stork/install/ravenlib/platform
79 install platform_protogeni.py %{buildroot}/usr/local/stork/install/ravenlib/platform
80 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/pubsub
81 install sender.py %{buildroot}/usr/local/stork/install/ravenlib/pubsub
82 install receiver.py %{buildroot}/usr/local/stork/install/ravenlib/pubsub
83 install __init__.py %{buildroot}/usr/local/stork/install/ravenlib/xmlrpc
84 install server.py %{buildroot}/usr/local/stork/install/ravenlib/xmlrpc
85 install client.py %{buildroot}/usr/local/stork/install/ravenlib/xmlrpc
86 install ravenstats %{buildroot}/usr/bin
87
88 %clean
89 rm -rf %{buildroot}
90
91 %post
92 cd /usr/local/stork/install/ravenlib
93 python setup.py install
94
95 %preun
96
97 # this doesn't work --> %files -f ARIZONALIB_INSTALLED_FILES
98
99 %files
100 %defattr(-,root,root)
101
102 /usr/local/stork/install/ravenlib/setup.py
103 /usr/local/stork/install/ravenlib/__init__.py
104 /usr/local/stork/install/ravenlib/acl/__init__.py
105 /usr/local/stork/install/ravenlib/acl/baseacl.py
106 /usr/local/stork/install/ravenlib/acl/mysqlacl.py
107 /usr/local/stork/install/ravenlib/client/__init__.py
108 /usr/local/stork/install/ravenlib/client/digdugapi.py
109 /usr/local/stork/install/ravenlib/client/repoclient.py
110 /usr/local/stork/install/ravenlib/crypto.py
111 /usr/local/stork/install/ravenlib/daemon.py
112 /usr/local/stork/install/ravenlib/dirchecker.py
113 /usr/local/stork/install/ravenlib/files/__init__.py
114 /usr/local/stork/install/ravenlib/files/asn1.py
115 /usr/local/stork/install/ravenlib/files/pacpackages.py
116 /usr/local/stork/install/ravenlib/files/pacgroups.py
117 /usr/local/stork/install/ravenlib/files/tpfile.py
118 /usr/local/stork/install/ravenlib/files/tpparse.py
119 /usr/local/stork/install/ravenlib/files/sshkey.py
120 /usr/local/stork/install/ravenlib/hash.py
121 /usr/local/stork/install/ravenlib/listutil.py
122 /usr/local/stork/install/ravenlib/modpythonapi/__init__.py
123 /usr/local/stork/install/ravenlib/modpythonapi/BaseClient.py
124 /usr/local/stork/install/ravenlib/modpythonapi/AuthenticatedClient.py
125 /usr/local/stork/install/ravenlib/modpythonapi/ApiExceptionCodes.py
126 /usr/local/stork/install/ravenlib/package/__init__.py
127 /usr/local/stork/install/ravenlib/package/exception.py
128 /usr/local/stork/install/ravenlib/package/storkpackage.py
129 /usr/local/stork/install/ravenlib/package/tar.py
130 /usr/local/stork/install/ravenlib/package/transaction.py
131 /usr/local/stork/install/ravenlib/package/rpm.py
132 /usr/local/stork/install/ravenlib/platform/__init__.py
133 /usr/local/stork/install/ravenlib/platform/all.py
134 /usr/local/stork/install/ravenlib/platform/platform_sfa.py
135 /usr/local/stork/install/ravenlib/platform/platform_unix.py
136 /usr/local/stork/install/ravenlib/platform/platform_planetlab.py
137 /usr/local/stork/install/ravenlib/platform/platform_protogeni.py
138 /usr/local/stork/install/ravenlib/pubsub/__init__.py
139 /usr/local/stork/install/ravenlib/pubsub/sender.py
140 /usr/local/stork/install/ravenlib/pubsub/receiver.py
141 /usr/local/stork/install/ravenlib/ravenconfigparser.py
142 /usr/local/stork/install/ravenlib/ravenlog.py
143 /usr/local/stork/install/ravenlib/report.py
144 /usr/local/stork/install/ravenlib/stats.py
145 /usr/local/stork/install/ravenlib/tableformat.py
146 /usr/local/stork/install/ravenlib/tableprint.py
147 /usr/local/stork/install/ravenlib/typecheck.py
148 /usr/local/stork/install/ravenlib/xmlrpc/__init__.py
149 /usr/local/stork/install/ravenlib/xmlrpc/server.py
150 /usr/local/stork/install/ravenlib/xmlrpc/client.py
151 /usr/bin/ravenstats
152
153