--- rpms/bash-insulter/contribs9/bash-insulter.spec 2017/11/20 22:23:43 1.1 +++ rpms/bash-insulter/contribs9/bash-insulter.spec 2017/11/20 22:49:05 1.2 @@ -6,22 +6,25 @@ Summary: Randomly insults the use Group: System Environment/Shells License: GPL+ URL: https://github.com/hkbakke/bash-insulter -Source0: bash-insulter-0.1.20171120.800dd7a.tgz +Source0: https://github.com/hkbakke/bash-insulter/tree/master/src/bash.command-not-found BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: e-smith-devtools >= 1.13.1-03 %description Randomly insults the user when typing wrong command. Change insults as needed :) %prep -%setup -q %build - %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/etc/profile.d +install %{SOURCE0} $RPM_BUILD_ROOT/etc/profile.d/bash-command-not-found.sh +/bin/rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT @@ -32,7 +35,8 @@ rm -rf $RPM_BUILD_ROOT %preun -%files +%files -f %{name}-%{version}-filelist +%defattr(-,root,root,-) %changelog * Mon Nov 20 2017 Jean-Philipe Pialasse 0.1.20171120-1.sme