This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: demoproject | |
Version: 0.1 | |
Release: 1%{?dist} | |
Summary: Demo script for doing something cool | |
Group: DemoGroup | |
License: GPL | |
Source0: demoproject-0.1.tar.gz | |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) | |
%description | |
Demo project that does something interesting | |
%prep | |
%setup -q | |
%build | |
%install | |
install --directory $RPM_BUILD_ROOT/usr/sbin | |
install --directory $RPM_BUILD_ROOT/etc | |
install --directory $RPM_BUILD_ROOT/etc/cron.d/ | |
install -m 0755 demoscript $RPM_BUILD_ROOT/usr/sbin | |
install -m 0744 demoscript.conf $RPM_BUILD_ROOT/etc | |
install -m 0744 cron/democronscript $RPM_BUILD_ROOT/etc/cron.d/ | |
%clean | |
rm -rf $RPM_BUILD_ROOT | |
%files | |
/usr/sbin/demoscript | |
/etc/demoscript.conf | |
/etc/cron.d/democronscript | |
%changelog |
No comments:
Post a Comment