Name: dextrose-updater Version: 1 Release: 5%{?dist} Summary: A yum based updater for sugar-dextrose. Updates the sugar-dextrose related packages automatically and emits dbus messages (for the sugar notification system, if installed) Group: Applications/Updating License: GPLv3 URL: http://wiki.sugarlabs.org/go/Dextrose/Updater Source0: http://people.sugarlabs.org/~anish/dextrose-updater.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch #BuildRequires: #Requires: Packager: Anish Mangal %description A yum based updater for sugar-dextrose. Updates the sugar-dextrose related packages automatically and emits dbus messages (for the sugar notification system, if installed) %prep %setup -q %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/{etc/default,etc/cron.daily,usr/sbin} install -m755 $RPM_BUILD_DIR/%{name}-%{version}/sbin/dextrose-update \ $RPM_BUILD_ROOT/usr/sbin install -m755 $RPM_BUILD_DIR/%{name}-%{version}/default/dextrose-update \ $RPM_BUILD_ROOT/etc/default ln -s /usr/sbin/dextrose-update \ $RPM_BUILD_ROOT/etc/cron.daily/dextrose-update %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/%{name}-%{version} %files %defattr(-,root,root,-) %doc /usr/sbin/dextrose-update /etc/default/dextrose-update /etc/cron.daily/dextrose-update %changelog * Mon Jan 03 2011 Anish Mangal 1-5 - Add dextrose-py to the list of repos to update from. * Wed Dec 22 2010 Anish Mangal 1-4 - Remove post, postun sections and handle symlink in install and file sections. * Wed Dec 22 2010 Anish Mangal 1-3 - Remove cron job after removing * Wed Dec 22 2010 Anish Mangal 1-2 - Add cron job * Wed Dec 22 2010 Anish Mangal 1-1 - Initial rpm version