auto-import changelog data from psmisc-21.3-7.src.rpm

Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 21.3-7
- fix is_selinux_enabled call
Fri Sep 05 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6.sel
- turn on selinux
- Hack to fix build problem on Fedora core
Fri Sep 05 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6
- turn off selinux
Thu Aug 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-5.sel
- change flags to -Z and build for selinux
Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-4
- Remove -lsecure check from configure.
Mon Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-2
- Added SELinux patches
This commit is contained in:
cvsdist 2004-09-09 10:52:17 +00:00
parent 5ef0a09bbb
commit 43764cf008

View File

@ -1,14 +1,18 @@
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
%define WITH_SELINUX 1
%endif
%define with_pidof 0 %define with_pidof 0
Summary: Utilities for managing processes on your system. Summary: Utilities for managing processes on your system.
Name: psmisc Name: psmisc
Version: 21.3 Version: 21.3
Release: 2.RHEL.0 Release: 7
License: BSD/GPL License: BSD/GPL
Group: Applications/System Group: Applications/System
Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz
Patch0: psmisc-20.2-56186.patch Patch0: psmisc-20.2-56186.patch
Patch1: psmisc-21.2-gcc33.patch Patch1: psmisc-21.2-gcc33.patch
Patch2: psmisc-selinux.patch
URL: http://psmisc.sourceforge.net URL: http://psmisc.sourceforge.net
Buildroot: %{_tmppath}/%{name}-%{version}-root Buildroot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libtermcap-devel BuildRequires: libtermcap-devel
@ -24,6 +28,10 @@ of processes that are using specified files or filesystems.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .56186 %patch0 -p1 -b .56186
%if %{WITH_SELINUX}
#SELinux
%patch2 -p1 -b .selinux
%endif
#%patch1 -p1 -b .gcc33 #%patch1 -p1 -b .gcc33
%build %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.* 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... # 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 make
%install %install
rm -rf $RPM_BUILD_ROOT 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 mkdir -p $RPM_BUILD_ROOT/sbin
mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT/sbin mv $RPM_BUILD_ROOT%{_bindir}/fuser $RPM_BUILD_ROOT/sbin
%if ! %{with_pidof} %if ! %{with_pidof}
@ -62,6 +74,25 @@ rm -rf $RPM_BUILD_ROOT
%endif %endif
%changelog %changelog
* Mon Jan 26 2004 Dan Walsh <dwalsh@redhat.com> 21.3-7
- fix is_selinux_enabled call
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6.sel
- turn on selinux
- Hack to fix build problem on Fedora core
* Fri Sep 5 2003 Dan Walsh <dwalsh@redhat.com> 21.3-6
- turn off selinux
* Thu Aug 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-5.sel
- change flags to -Z and build for selinux
* Tue Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-4
- Remove -lsecure check from configure.
* Tue Jul 28 2003 Dan Walsh <dwalsh@redhat.com> 21.3-2
- Added SELinux patches
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com> * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
- rebuilt - rebuilt