From 6374afb0cdf60517c8f7eaa9ffce4a34237b58cc Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 10 May 2006 20:08:34 +0000 Subject: [PATCH] Cleanup spec and tar ball for acceptance into core --- .cvsignore | 1 + mcstrans.spec | 12 +++++++----- sources | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.cvsignore b/.cvsignore index f27100c..c6aac48 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ mcstrans-0.1.1.tgz +mcstrans-0.1.1-1.src.rpm diff --git a/mcstrans.spec b/mcstrans.spec index 0a6fbf7..de97112 100644 --- a/mcstrans.spec +++ b/mcstrans.spec @@ -5,10 +5,12 @@ Release: 1 License: GPL Group: System Environment/Daemons Source: http://fedora.redhat.com/projects/%{name}-%{version}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libselinux-devel >= 1.30.3-1 -Prereq: /sbin/chkconfig /sbin/service +Requires(pre): /sbin/chkconfig /sbin/service +Requires(post):/sbin/chkconfig /sbin/service Provides: setransd +Provides: libsetrans Obsoletes: libsetrans %description @@ -48,20 +50,20 @@ chkconfig --add mcstransd %preun if [ $1 -eq 0 ]; then - service mcstransd stop > /dev/null 2>&1 + service mcstrans stop > /dev/null 2>&1 chkconfig --del mcstransd fi %postun if [ $1 -ge 1 ]; then - service mcstransd condrestart > /dev/null 2>&1 || : + service mcstrans condrestart > /dev/null 2>&1 || : fi %files %defattr(-,root,root,0755) %{_mandir}/man8/mcs.8.gz /sbin/mcstransd -%{_sysconfdir}/init.d/mcstransd +%{_sysconfdir}/init.d/mcstrans %changelog * Mon Mar 13 2006 Dan Walsh 0.1.1-1 diff --git a/sources b/sources index e68617a..a32a75a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6e018378345c7f103f9835d9f963fdb0 mcstrans-0.1.1.tgz +ed5545190a2e14cfbd2c45390caadae7 mcstrans-0.1.1.tgz