diff --git a/scitas-motd-scripts.spec b/scitas-motd-scripts.spec new file mode 100644 index 0000000..480cb16 --- /dev/null +++ b/scitas-motd-scripts.spec @@ -0,0 +1,44 @@ +Name: scitas-motd-scripts +Version: 0.2 +Release: 1%{?dist} +Summary: Scripts to retrieve fragments, build and display a custom MOTD + +Group: System/Base +License: None +URL: https://c4science.ch/source/scitas-motd-scripts +Source0: %{name}-%{version}.tar.gz + +BuildArch: noarch + +Requires: curl + + +%description +The tools that are used to display a custom composable motd on login in SCITAS clusters. + +%prep + +%setup -q + +%build + + +%install +mkdir -p %{buildroot}%{_sysconfdir}/ +mkdir -p %{buildroot}%{_bindir}/ +install -m 644 etc/scitas-motd.conf %{buildroot}%{_sysconfdir}/ +install -m 755 bin/scitas-motd %{buildroot}%{_bindir}/ +install -m 755 bin/scitas-motd-update %{buildroot}%{_bindir}/ + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{_bindir}/scitas-motd +%{_bindir}/scitas-motd-update +%config(noreplace) %{_sysconfdir}/scitas-motd.conf + +%changelog