spec file cleanup
This commit is contained in:
parent
cfb613cffc
commit
ca9af9713c
18
psmisc.spec
18
psmisc.spec
@ -1,8 +1,3 @@
|
|||||||
%if %{?WITH_SELINUX:0}%{!?WITH_SELINUX:1}
|
|
||||||
%define WITH_SELINUX 1
|
|
||||||
%endif
|
|
||||||
%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.8
|
Version: 21.8
|
||||||
@ -13,9 +8,7 @@ Source: ftp://ftp.sf.net/pub/sourceforge/psmisc/psmisc-%{version}.tar.gz
|
|||||||
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
|
||||||
%if %{WITH_SELINUX}
|
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
%endif
|
|
||||||
|
|
||||||
Patch0: psmisc-21.7-fuser-pid.patch
|
Patch0: psmisc-21.7-fuser-pid.patch
|
||||||
Patch1: psmisc-21.7-killall-scanf.patch
|
Patch1: psmisc-21.7-killall-scanf.patch
|
||||||
@ -35,12 +28,7 @@ of processes that are using specified files or filesystems.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
|
||||||
./autogen.sh
|
|
||||||
%if %{WITH_SELINUX}
|
|
||||||
%configure --prefix=/usr --enable-selinux
|
%configure --prefix=/usr --enable-selinux
|
||||||
%else
|
|
||||||
%configure --prefix=/usr
|
|
||||||
%endif
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -53,9 +41,7 @@ mv $RPM_BUILD_ROOT%{_bindir}/oldfuser $RPM_BUILD_ROOT%{_bindir}/fuser
|
|||||||
|
|
||||||
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}
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/pidof.1*
|
rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/pidof.1*
|
||||||
%endif
|
|
||||||
|
|
||||||
%find_lang %name
|
%find_lang %name
|
||||||
|
|
||||||
@ -71,13 +57,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/fuser.1*
|
%{_mandir}/man1/fuser.1*
|
||||||
%{_mandir}/man1/killall.1*
|
%{_mandir}/man1/killall.1*
|
||||||
%{_mandir}/man1/pstree.1*
|
%{_mandir}/man1/pstree.1*
|
||||||
%if %{with_pidof}
|
|
||||||
%{_mandir}/man1/pidof.1*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Nov 30 2005 Karel Zak <kzak@redhat.com> 21.8-1
|
* Wed Nov 30 2005 Karel Zak <kzak@redhat.com> 21.8-1
|
||||||
- fix #174585 - killall crashes on long variable name
|
- fix #174585 - killall crashes on long variable name
|
||||||
|
- spec file cleanup
|
||||||
|
|
||||||
* Wed Oct 5 2005 Karel Zak <kzak@redhat.com> 21.7-1.cvs20051005
|
* Wed Oct 5 2005 Karel Zak <kzak@redhat.com> 21.7-1.cvs20051005
|
||||||
- sync with upstream CVS
|
- sync with upstream CVS
|
||||||
|
Loading…
Reference in New Issue
Block a user