Hello community,

here is the log from the commit of package ypbind for openSUSE:Factory checked 
in at 2017-02-22 13:46:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ypbind (Old)
 and      /work/SRC/openSUSE:Factory/.ypbind.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ypbind"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ypbind/ypbind.changes    2017-02-11 
01:32:29.358622136 +0100
+++ /work/SRC/openSUSE:Factory/.ypbind.new/ypbind.changes       2017-02-22 
13:46:28.676586965 +0100
@@ -1,0 +2,9 @@
+Mon Feb 20 20:18:09 UTC 2017 - [email protected]
+
+- Some packaging cleanup:
+  * Use macro for configure and make install
+  * Build in parallel
+  * Drop no longer needed buildroot
+  * Run spec-cleaner
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ypbind.spec ++++++
--- /var/tmp/diff_new_pack.MPYFVH/_old  2017-02-22 13:46:29.184514635 +0100
+++ /var/tmp/diff_new_pack.MPYFVH/_new  2017-02-22 13:46:29.188514065 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ypbind
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,31 +17,30 @@
 
 
 Name:           ypbind
-PreReq:         %fillup_prereq
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Version:        2.4
 Release:        0
-Url:            http://www.linux-nis.org/nis/ypbind-mt
 Summary:        NIS client daemon
 License:        GPL-2.0
 Group:          Productivity/Networking/NIS
+Url:            http://www.linux-nis.org/nis/ypbind-mt
+Source:         
http://www.linux-nis.org/download/%{name}-mt/%{name}-mt-%{version}.tar.bz2
+Source1:        SuSEfirewall.ypbind
+Source2:        ypbind.service
+Source3:        ypbind-systemd-pre
+Source4:        ypbind-systemd-post
+Source5:        ypbind-systemd-exec
 BuildRequires:  pkgconfig
-%if %{suse_version} >= 1310
+Requires:       rpcbind
+Requires:       yp-tools
+Requires(pre):  %fillup_prereq
+%if 0%{?suse_version} >= 1310
+BuildRequires:  pkgconfig(libnsl) >= 1.0.1
 BuildRequires:  pkgconfig(libsystemd)
 BuildRequires:  pkgconfig(libtirpc) >= 1.0.1
-BuildRequires:  pkgconfig(libnsl) >= 1.0.1
 %else
+BuildRequires:  libnsl-devel >= 1.0.1
 BuildRequires:  libtirpc-devel >= 1.0.1
-BuildRequires:  libnsl-devel => 1.0.1
 %endif
-Requires:       rpcbind
-Requires:       yp-tools
-Source:         
http://www.linux-nis.org/download/%name-mt/%name-mt-%version.tar.bz2
-Source1:        SuSEfirewall.ypbind
-Source2:        ypbind.service
-Source3:        ypbind-systemd-pre
-Source4:        ypbind-systemd-post
-Source5:        ypbind-systemd-exec
 
 %description
 This package provides the ypbind daemon. The ypbind daemon binds NIS
@@ -55,31 +54,30 @@
 %setup -q -n ypbind-mt-%{version}
 
 %build
-export CFLAGS=$RPM_OPT_FLAGS
-./configure --mandir=%{_mandir} --prefix=%{_prefix} --disable-dbus-nm
-make
+%configure --disable-dbus-nm
+make  %{?_smp_mflags}
 
 %install
-mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services
-mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
-mkdir -p $RPM_BUILD_ROOT/var/yp/binding
-make install DESTDIR=$RPM_BUILD_ROOT
+mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
+mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates
+mkdir -p %{buildroot}%{_localstatedir}/yp/binding
+%make_install
 # Install SuSEfirewall2 service file
-install -m 644 %SOURCE1 
$RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/ypbind
+install -m 644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypbind
 # Install rc.config add-on
-install -m 644 etc/sysconfig.ypbind $RPM_BUILD_ROOT/var/adm/fillup-templates/
+install -m 644 etc/sysconfig.ypbind 
%{buildroot}%{_localstatedir}/adm/fillup-templates/
 # Create dummy yp.conf
-touch $RPM_BUILD_ROOT/etc/yp.conf
+touch %{buildroot}%{_sysconfdir}/yp.conf
 # Create filelist with translatins
-%{find_lang} ypbind-mt
+%find_lang ypbind-mt
 # Install systemd stuff
-install -D -m 644 %SOURCE2 %{buildroot}%{_unitdir}/ypbind.service
-mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/ypbind
-install -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_libexecdir}/ypbind/ypbind-systemd-pre
-install -m 755 %SOURCE4 
$RPM_BUILD_ROOT%{_libexecdir}/ypbind/ypbind-systemd-post
-install -m 755 %SOURCE5 
$RPM_BUILD_ROOT%{_libexecdir}/ypbind/ypbind-systemd-exec
+install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/ypbind.service
+mkdir -p %{buildroot}%{_libexecdir}/ypbind
+install -m 755 %{SOURCE3} %{buildroot}%{_libexecdir}/ypbind/ypbind-systemd-pre
+install -m 755 %{SOURCE4} %{buildroot}%{_libexecdir}/ypbind/ypbind-systemd-post
+install -m 755 %{SOURCE5} %{buildroot}%{_libexecdir}/ypbind/ypbind-systemd-exec
 # create symlink for rcypbind
-ln -s /sbin/service $RPM_BUILD_ROOT/usr/sbin/rcypbind
+ln -s /sbin/service %{buildroot}%{_sbindir}/rcypbind
 
 %pre
 %service_add_pre ypbind.service
@@ -91,31 +89,30 @@
 %preun
 %service_del_preun ypbind.service
 if [ "$1" = "0" ]; then
-   test -d /var/yp/binding && rm -f /var/yp/binding/*
+   test -d %{_localstatedir}/yp/binding && rm -f %{_localstatedir}/yp/binding/*
 fi
 
 %postun
 %service_del_postun ypbind.service
 
-
 %files -f ypbind-mt.lang
 %defattr(-,root,root)
 %doc AUTHORS NEWS README THANKS
-%ghost %config(noreplace) /etc/yp.conf
-%config /etc/sysconfig/SuSEfirewall2.d/services/ypbind
-/var/adm/fillup-templates/sysconfig.ypbind
-%doc %{_mandir}/man5/yp.conf.5.gz
-%doc %{_mandir}/man8/ypbind.8.gz
-/usr/sbin/ypbind
-/usr/sbin/rcypbind
-%dir /var/yp
-%dir /var/yp/binding
-%if %{suse_version} >= 1310
+%ghost %config(noreplace) %{_sysconfdir}/yp.conf
+%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypbind
+%{_localstatedir}/adm/fillup-templates/sysconfig.ypbind
+%{_mandir}/man5/yp.conf.5%{ext_man}
+%{_mandir}/man8/ypbind.8%{ext_man}
+%{_sbindir}/ypbind
+%{_sbindir}/rcypbind
+%dir %{_localstatedir}/yp
+%dir %{_localstatedir}/yp/binding
+%if 0%{?suse_version} >= 1310
 %{_unitdir}/ypbind.service
 %dir %{_libexecdir}/ypbind
 %{_libexecdir}/ypbind/*
 %else
-%config /etc/init.d/ypbind
+%config %{_initddir}/ypbind
 %endif
 
 %changelog


Reply via email to