Cleanup spec and tar ball for acceptance into core
This commit is contained in:
parent
f205944970
commit
6374afb0cd
@ -1 +1,2 @@
|
||||
mcstrans-0.1.1.tgz
|
||||
mcstrans-0.1.1-1.src.rpm
|
||||
|
@ -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 <dwalsh@redhat.com> 0.1.1-1
|
||||
|
Loading…
Reference in New Issue
Block a user