From 43764cf008e649728e207d0dda4d4a0fa77fc03d Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 10:52:17 +0000 Subject: [PATCH] auto-import changelog data from psmisc-21.3-7.src.rpm Mon Jan 26 2004 Dan Walsh 21.3-7 - fix is_selinux_enabled call Fri Sep 05 2003 Dan Walsh 21.3-6.sel - turn on selinux - Hack to fix build problem on Fedora core Fri Sep 05 2003 Dan Walsh 21.3-6 - turn off selinux Thu Aug 28 2003 Dan Walsh 21.3-5.sel - change flags to -Z and build for selinux Mon Jul 28 2003 Dan Walsh 21.3-4 - Remove -lsecure check from configure. Mon Jul 28 2003 Dan Walsh 21.3-2 - Added SELinux patches --- psmisc.spec | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/psmisc.spec b/psmisc.spec index afd6f7c..80180c5 100644 --- a/psmisc.spec +++ b/psmisc.spec @@ -1,14 +1,18 @@ +%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1} +%define WITH_SELINUX 1 +%endif %define with_pidof 0 Summary: Utilities for managing processes on your system. Name: psmisc Version: 21.3 -Release: 2.RHEL.0 +Release: 7 License: BSD/GPL Group: Applications/System Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz Patch0: psmisc-20.2-56186.patch Patch1: psmisc-21.2-gcc33.patch +Patch2: psmisc-selinux.patch URL: http://psmisc.sourceforge.net Buildroot: %{_tmppath}/%{name}-%{version}-root BuildRequires: libtermcap-devel @@ -24,6 +28,10 @@ of processes that are using specified files or filesystems. %prep %setup -q %patch0 -p1 -b .56186 +%if %{WITH_SELINUX} +#SELinux +%patch2 -p1 -b .selinux +%endif #%patch1 -p1 -b .gcc33 %build @@ -31,13 +39,17 @@ of processes that are using specified files or filesystems. perl -pi -e "s,^CFLAGS =,CFLAGS = $RPM_OPT_FLAGS -D_GNU_SOURCE,g" */Makefile.* # Is --prefix actually necessary here? I think it's redundant... test later... -%configure --prefix=/usr +%if %{WITH_SELINUX} +%configure --prefix=/usr --enable-selinux +%else +%configure --prefix=/usr +%endif make %install rm -rf $RPM_BUILD_ROOT -make install DESTDIR="$RPM_BUILD_ROOT" +make install DESTDIR="$RPM_BUILD_ROOT" MKINSTALLDIRS=./mkinstalldirs mkdir -p $RPM_BUILD_ROOT/sbin mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT/sbin %if ! %{with_pidof} @@ -62,6 +74,25 @@ rm -rf $RPM_BUILD_ROOT %endif %changelog +* Mon Jan 26 2004 Dan Walsh 21.3-7 +- fix is_selinux_enabled call + +* Fri Sep 5 2003 Dan Walsh 21.3-6.sel +- turn on selinux +- Hack to fix build problem on Fedora core + +* Fri Sep 5 2003 Dan Walsh 21.3-6 +- turn off selinux + +* Thu Aug 28 2003 Dan Walsh 21.3-5.sel +- change flags to -Z and build for selinux + +* Tue Jul 28 2003 Dan Walsh 21.3-4 +- Remove -lsecure check from configure. + +* Tue Jul 28 2003 Dan Walsh 21.3-2 +- Added SELinux patches + * Wed Jun 04 2003 Elliot Lee - rebuilt