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.
38 # fetch the release stamp from the build if any
39 if [ -f ../../myplc-release ] ; then
40 cp ../../myplc-release myplc-release
42 echo "Cannot find release information." > myplc-release
44 echo "$HeadURL$" >> myplc-release
48 rm -rf $RPM_BUILD_ROOT
49 # install it in /etc/myplc-release
50 install -D -m 444 myplc-release ${RPM_BUILD_ROOT}/etc/myplc-release
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(-,root,root,-)