summaryrefslogtreecommitdiffstats
path: root/abrt.spec.in
diff options
context:
space:
mode:
authorMiroslav Lichvar <mlichvar@redhat.com>2011-06-10 14:08:44 +0200
committerMiroslav Lichvar <mlichvar@redhat.com>2011-06-10 14:10:55 +0200
commit611effbaaf4ea10260084dfec5e652e5a9496726 (patch)
treedec12b9ff602403481bbb0f52ef879c1f15d1f41 /abrt.spec.in
parent1a396978d78cb66f3c228d2ef7909cb8f3ecd9e6 (diff)
downloadabrt-611effbaaf4ea10260084dfec5e652e5a9496726.zip
abrt-611effbaaf4ea10260084dfec5e652e5a9496726.tar.gz
abrt-611effbaaf4ea10260084dfec5e652e5a9496726.tar.xz
spec: avoid installing SysV init scripts instead of excluding them
Diffstat (limited to 'abrt.spec.in')
-rw-r--r--abrt.spec.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/abrt.spec.in b/abrt.spec.in
index 75fcc9c..2340a1e 100644
--- a/abrt.spec.in
+++ b/abrt.spec.in
@@ -224,9 +224,11 @@ make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
# remove all .la and .a files
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
mkdir -p ${RPM_BUILD_ROOT}/%{_initrddir}
+%if ! %{?with_systemd}
install -m 755 %SOURCE1 ${RPM_BUILD_ROOT}/%{_initrddir}/abrtd
install -m 755 %SOURCE2 ${RPM_BUILD_ROOT}/%{_initrddir}/abrt-ccpp
install -m 755 %SOURCE3 ${RPM_BUILD_ROOT}/%{_initrddir}/abrt-oops
+%endif
mkdir -p $RPM_BUILD_ROOT/var/cache/abrt-di
mkdir -p $RPM_BUILD_ROOT/var/run/abrt
mkdir -p $RPM_BUILD_ROOT/var/spool/abrt
@@ -365,7 +367,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%doc README COPYING
%if %{?with_systemd}
/lib/systemd/system/abrtd.service
-%exclude %{_initrddir}/abrtd
%else
%{_initrddir}/abrtd
%endif
@@ -432,7 +433,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di
%if %{?with_systemd}
/lib/systemd/system/abrt-ccpp.service
-%exclude %{_initrddir}/abrt-ccpp
%else
%{_initrddir}/abrt-ccpp
%endif
@@ -462,7 +462,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%config(noreplace) %{_sysconfdir}/%{name}/events.d/koops_events.conf
%if %{?with_systemd}
/lib/systemd/system/abrt-oops.service
-%exclude %{_initrddir}/abrt-oops
%else
%{_initrddir}/abrt-oops
%endif