Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25cfdb7ea1 | ||
|
|
67e5c58cc6 |
1 changed files with 11 additions and 17 deletions
28
and.spec
28
and.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: and
|
||||
Version: 1.2.2
|
||||
Release: 16%{?dist}
|
||||
Release: 18%{?dist}
|
||||
Summary: Auto nice daemon
|
||||
|
||||
License: GPLv2
|
||||
|
|
@ -12,8 +12,6 @@ Source1: and.sysconf
|
|||
Source2: and.service
|
||||
Patch1: and-1.2.2-makefile.patch
|
||||
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
|
||||
|
||||
Obsoletes: and-sysvinit < %{version}-%{release}
|
||||
Provides: and-sysvinit = %{version}-%{release}
|
||||
|
||||
|
|
@ -54,7 +52,6 @@ make %{?_smp_mflags} \
|
|||
INSTALL_MAN=%{_mandir}
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
mkdir -p %{buildroot}%{_sysconfdir}
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mkdir -p %{buildroot}%{_mandir}/man8
|
||||
|
|
@ -70,24 +67,14 @@ install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/and
|
|||
mkdir -p %{buildroot}%{_unitdir}
|
||||
install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post and.service
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 1 ]; then
|
||||
/bin/systemctl --no-reload disable and.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl stop and.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun and.service
|
||||
|
||||
%postun
|
||||
if [ $0 -en 0 ]; then
|
||||
/bin/systemctl try-restart and.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_postun_with_restart and.service
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
|
@ -100,6 +87,13 @@ fi
|
|||
%{_unitdir}/and.service
|
||||
|
||||
%changelog
|
||||
* Fri Oct 5 2012 Jochen Schmitt <Jochen herr-schmitt de> - 1.2.2-18
|
||||
- Introduction of rpm systemd macros
|
||||
- Clean up of the SPEC file
|
||||
|
||||
* Tue Aug 28 2012 Jochen Schmitt <Jochen herr-schmitt de> 1.2.2-17
|
||||
- Fix misprint operator in %%post stanza (#852419)
|
||||
|
||||
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Reference in a new issue