Removed Prereq and RPM_SOURCE_DIR from spec file
This commit is contained in:
parent
59c87bbc0a
commit
f832938f1e
22
ypserv.spec
22
ypserv.spec
|
@ -4,15 +4,21 @@ Summary: The NIS (Network Information Service) server
|
|||
Url: http://www.linux-nis.org/nis/ypserv/index.html
|
||||
Name: ypserv
|
||||
Version: 2.19
|
||||
Release: 14%{?dist}
|
||||
Release: 15%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Daemons
|
||||
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
|
||||
Source1: ypserv-ypserv.init
|
||||
Source2: ypserv-yppasswdd.init
|
||||
Source3: ypserv-ypxfrd.init
|
||||
|
||||
Requires: gawk, make, portmap, bash >= 2.0
|
||||
Prereq: /sbin/chkconfig /sbin/service
|
||||
Requires(post): chkconfig
|
||||
Requires(preun): chkconfig
|
||||
# This is for /sbin/service
|
||||
Requires(preun): initscripts
|
||||
Requires(postun): initscripts
|
||||
|
||||
Patch0: ypserv-2.5-redhat.patch
|
||||
Patch1: ypserv-2.11-path.patch
|
||||
Patch2: ypserv-2.5-nfsnobody2.patch
|
||||
|
@ -27,7 +33,7 @@ Patch11: ypserv-2.19-debuginfo.patch
|
|||
Patch12: ypserv-2.19-slp-warning.patch
|
||||
Obsoletes: yppasswd
|
||||
BuildRequires: gdbm-devel
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
%description
|
||||
The Network Information Service (NIS) is a system that provides
|
||||
|
@ -77,9 +83,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/yp INSTALL_PROGRAM=install
|
||||
mkdir -p $RPM_BUILD_ROOT%{initdir}
|
||||
install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
||||
install -m755 $RPM_SOURCE_DIR/ypserv-ypserv.init $RPM_BUILD_ROOT%{initdir}/ypserv
|
||||
install -m755 $RPM_SOURCE_DIR/ypserv-yppasswdd.init $RPM_BUILD_ROOT%{initdir}/yppasswdd
|
||||
install -m755 $RPM_SOURCE_DIR/ypserv-ypxfrd.init $RPM_BUILD_ROOT%{initdir}/ypxfrd
|
||||
install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{initdir}/ypserv
|
||||
install -m755 %{SOURCE2} $RPM_BUILD_ROOT%{initdir}/yppasswdd
|
||||
install -m755 %{SOURCE3} $RPM_BUILD_ROOT%{initdir}/ypxfrd
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
|
||||
cat >$RPM_BUILD_ROOT/etc/sysconfig/yppasswdd <<EOF
|
||||
|
@ -144,6 +150,10 @@ exit 0
|
|||
%{_includedir}/*/*
|
||||
|
||||
%changelog
|
||||
* Thu Jan 7 2010 Karel Klic <kklic@redhat.com> - 2.19-15
|
||||
- Removed Prereq use in the spec file
|
||||
- Removed usage of RPM_SOURCE_DIR from the spec file
|
||||
|
||||
* Tue Jan 5 2009 Karel Klic <kklic@redhat.com> - 2.19-14
|
||||
- Removed --enable-yppasswd from configure, as this option is
|
||||
ignored.
|
||||
|
|
Loading…
Reference in New Issue