import repository from arizona
[raven.git] / rpm_builds / SPECS / stork-tppublish.spec.template
1 Summary: tpfile publisher
2 Name: stork-tppublish
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-tppublish-@VER@.tar.gz
9 Vendor: University of Arizona
10 BuildRoot: %{_tmppath}/%{name}-root
11 Provides: stork-tppublish
12 Requires: arizona-lib
13 %description
14 Tool for publishing stork tpfiles as html or yum repositories
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 storktptohtml.py %{buildroot}/usr/local/stork/bin
28 install tppublish.sh %{buildroot}/usr/local/stork/bin
29 install tppublish_tag.sh %{buildroot}/usr/local/stork/bin
30 install -d -o 0 -g 0 %{buildroot}/etc
31 install -d -o 0 -g 0 %{buildroot}/etc/cron.hourly
32 install tppublish.cron %{buildroot}/etc/cron.hourly
33
34 %clean
35 rm -rf %{buildroot}
36
37 %post
38
39 %preun
40
41 %files
42 %defattr(-,root,root)
43 /usr/local/stork/bin/storktptohtml.py
44 /usr/local/stork/bin/tppublish.sh
45 /usr/local/stork/bin/tppublish_tag.sh
46 /etc/cron.hourly/tppublish.cron
47