rpms/ypbind/devel ypbind.spec, 1.51, 1.52 ypbind-1.19-debuginfo.patch, 1.1, NONE

Vitezslav Crhonek vcrhonek at fedoraproject.org
Tue Oct 21 13:05:06 UTC 2008


Author: vcrhonek

Update of /cvs/extras/rpms/ypbind/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5522

Modified Files:
	ypbind.spec 
Removed Files:
	ypbind-1.19-debuginfo.patch 
Log Message:
Merge Review


Index: ypbind.spec
===================================================================
RCS file: /cvs/extras/rpms/ypbind/devel/ypbind.spec,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- ypbind.spec	21 Oct 2008 10:49:17 -0000	1.51
+++ ypbind.spec	21 Oct 2008 13:04:36 -0000	1.52
@@ -1,7 +1,7 @@
-Summary: The NIS daemon which binds NIS clients to an NIS domain.
+Summary: The NIS daemon which binds NIS clients to an NIS domain
 Name: ypbind
 Version: 1.20.4
-Release: 8%{?dist}
+Release: 9%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2
@@ -11,11 +11,13 @@
 Patch2: ypbind-1.11-gettextdomain.patch
 Patch3: ypbind-mt-1.19-port-leak.patch
 Patch4: ypbind-mt-1.19-log-binds.patch
-Patch5: ypbind-1.19-debuginfo.patch
-Patch6: ypbind-mt-1.20.4-smartwrite.patch
+Patch5: ypbind-mt-1.20.4-smartwrite.patch
 
-Prereq: /sbin/chkconfig
-Requires: rpcbind, yp-tools, bash >= 2.0
+Requires(post): chkconfig
+Requires(preun): chkconfig
+# This is for /sbin/service
+Requires(preun): initscripts
+Requires: rpcbind, yp-tools
 Epoch: 3
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -41,12 +43,11 @@
 
 %prep
 %setup -q -n ypbind-mt-%{version}
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-#%patch5 -p1
-%patch6 -p1 -b .smartwrite
+%patch1 -p1 -b .broadcast
+%patch2 -p1 -b .gettextdomain
+%patch3 -p1 -b .port-leak
+%patch4 -p1 -b .log-binds
+%patch5 -p1 -b .smartwrite
 
 %build
 autoreconf
@@ -55,11 +56,11 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%makeinstall sbindir=$RPM_BUILD_ROOT/sbin
+make install DESTDIR=$RPM_BUILD_ROOT
 
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/var/yp/binding
+mkdir -p $RPM_BUILD_ROOT/%{_initrddir} $RPM_BUILD_ROOT/var/yp/binding
 install -m 644 etc/yp.conf $RPM_BUILD_ROOT/etc/yp.conf
-install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ypbind
+install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/ypbind
 
 %{find_lang} %{name}
 
@@ -70,29 +71,33 @@
 /sbin/chkconfig --add ypbind
 
 %preun
-if [ "$1" = 0 ] ; then
-    /sbin/service ypbind stop > /dev/null 2>&1
+if [ $1 = 0 ] ; then
+    /sbin/service ypbind stop >/dev/null 2>&1
     /sbin/chkconfig --del ypbind
 fi
-exit 0
 
 %postun
-if [ "$1" -ge 1 ]; then
-    /sbin/service ypbind condrestart > /dev/null 2>&1
+if [ "$1" -ge "1" ] ; then
+    /sbin/service ypbind condrestart >/dev/null 2>&1 || :
 fi
-exit 0
 
 %files -f %{name}.lang
 %defattr(-,root,root)
 /sbin/ypbind
 %{_mandir}/*/*
-%config /etc/rc.d/init.d/*
+%{_initrddir}/*
 %config(noreplace) /etc/yp.conf
-%dir /var/yp
 %dir /var/yp/binding
 %doc README NEWS
 
 %changelog
+* Tue Oct 21 2008 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.20.4-9
+- Merge Review - remove dot from end of the summary, convert all tags
+  in %%changelog to utf-8, escape %% character in changelog, fix
+  requires and scriptlets, remove %%makeinstall, do not mark init
+  script file as config, remove unused patches
+  Resolves: #226663
+
 * Tue Oct 21 2008 Vitezslav Crhonek <vcrhonek at redhat.com> - 1.20.4-8
 - Rewrite binding files only when they are changed
   Resolves: #454581
@@ -203,7 +208,7 @@
 - rebuilt
 
 * Wed May 21 2003 Bill Nottingham <notting at redhat.com> 1.12-1.10
-- make yp.conf %config(noreplace)
+- make yp.conf %%config(noreplace)
 
 * Thu Apr 24 2003 Steve Dickson <SteveD at RedHat.com>
 - Updated to 1.12 from upstream.
@@ -268,7 +273,7 @@
 * Sat Mar  3 2001 Preston Brown <pbrown at redhat.com>
 - much more sane ypbind init script for when networking is down.
 
-* Wed Feb  7 2001 Trond Eivind Glomsrød <teg at redhat.com>
+* Wed Feb  7 2001 Trond Eivind Glomsrød <teg at redhat.com>
 - fix "usage" string (use $0)
 
 * Wed Jan 24 2001 Florian La Roche <Florian.LaRoche at redhat.de>


--- ypbind-1.19-debuginfo.patch DELETED ---




More information about the scm-commits mailing list