6 %define name myplc-release
10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 Summary: PlanetLab Central (PLC) release file
17 Group: Applications/Systems
18 Source0: %{name}-%{version}.tar.gz
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
23 Packager: PlanetLab Central <support@planet-lab.org>
24 Distribution: PlanetLab %{plrelease}
25 URL: %(echo %{url} | cut -d ' ' -f 2)
27 %define debug_package %{nil}
30 This package contains in /etc/myplc-release the details of the
31 contents of that release. This is used by the GetPlcRelease API call.
37 rm -rf $RPM_BUILD_ROOT
39 # fetch the release stamp from the build if any
40 if [ -f ../../../myplc-release ] ; then
41 cp ../../../myplc-release myplc-release
43 echo "Cannot find release information." > myplc-release
45 echo "$HeadURL$" >> myplc-release
47 # install it in /etc/myplc-release
48 install -m 444 myplc-release ${RPM_BUILD_ROOT}/etc/myplc-release
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(-,root,root,-)