Browse Source

ypserv-4.1-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12100 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 3 years ago
parent
commit
9acbcc3d0d
1 changed files with 42 additions and 27 deletions
  1. 42 27
      y/ypserv/ypserv-vl.spec

+ 42 - 27
y/ypserv/ypserv-vl.spec

@@ -3,30 +3,32 @@
 Summary: The NIS (Network Information Service) server.
 Summary(ja): NIS (Network Information Service) サーバ
 Name: ypserv
-Version: 2.19
-Release: 5%{_dist_release}
+Version: 4.1
+Release: 1%{_dist_release}
 License: GPLv2
 Group: System Environment/Daemons
-URL: http://www.linux-nis.org/
-Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
+URL: https://github.com/thkukuk/ypserv
+Source0: https://github.com/thkukuk/ypserv/releases/download/v%{version}/ypserv-%{version}.tar.xz
 Source1: ypserv-ypserv.init
 Source2: ypserv-yppasswdd.init
 Source3: ypserv-ypxfrd.init
+
 Patch0: ypserv-2.5-redhat.patch
-Patch1: ypserv-2.11-path.patch
 Patch2: ypserv-2.5-nfsnobody2.patch
-Patch3: ypserv-2.11-nomap.patch
-Patch4: ypserv-2.11-iface-binding3.patch
-Patch6: ypserv-2.13-yplib-memleak.patch
-Patch7: ypserv-2.13-ypxfr-zeroresp.patch
-Patch8: ypserv-2.19-inval-ports.patch
-Patch9: ypserv-2.13-nonedomain.patch
-Patch10: ypserv-2.19-quieter.patch
-Patch11: ypserv-2.19-debuginfo.patch
-Patch12: ypserv-2.19-slp-warning.patch
+Patch3: ypserv-2.13-ypxfr-zeroresp.patch
+Patch4: ypserv-2.13-nonedomain.patch
+Patch5: ypserv-2.19-slp-warning.patch
+Patch6: ypserv-4.0-manfix.patch
+Patch7: ypserv-2.24-aliases.patch
+Patch8: ypserv-2.27-confpost.patch
+Patch10: ypserv-2.31-netgrprecur.patch
+Patch12: ypserv-4.0-headers.patch
 
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: gdbm-devel
+BuildRequires: libxcrypt-devel
+BuildRequires: libnsl2-devel
+BuildRequires: libtirpc-devel
 Requires: gawk portmap tcp_wrappers bash gdbm
 Requires(post): /sbin/chkconfig
 Requires(preun): /sbin/chkconfig /sbin/service
@@ -73,28 +75,35 @@ ypbind パッケージをインストールする必要があります.
 %prep
 %setup -q
 %patch0 -p1 -b .redhat
-%patch1 -p1 -b .path
 %patch2 -p1 -b .nfsnobody
-%patch3 -p1 -b .nomap
-%patch4 -p1 -b .iface
-%patch6 -p1 -b .memleak
-%patch7 -p1 -b .respzero
-%patch8 -p1 -b .ports
-%patch9 -p1 -b .nonedomain
-%patch10 -p1 -b .quieter
-%patch11 -p1 -b .debuginfo
-%patch12 -p1 -b .slp-warning
+%patch3 -p1 -b .respzero
+%patch4 -p1 -b .nonedomain
+%patch5 -p1 -b .slp-warning
+%patch6 -p1 -b .manfix
+%patch7 -p1 -b .aliases
+%patch8 -p1 -b .confpost
+%patch10 -p1 -b .netgrprecur
+%patch12  -b .headers
+
+autoreconf -vif
 
 %build
 cp etc/README etc/README.etc
-%configure --enable-checkroot --enable-fqdn --enable-yppasswd --libexecdir=%{_libdir}/yp
+export CFLAGS="$RPM_OPT_FLAGS -fpic"
+%configure \
+	--enable-checkroot \
+	--enable-fqdn \
+	--enable-yppasswd \
+	--libexecdir=%{_libdir}/yp \
+    --localstatedir=%{_localstatedir}
+
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-#make install ROOT=$RPM_BUILD_ROOT 
-%makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/yp INSTALL_PROGRAM=install
+make install DESTDIR=%{buildroot}
+
 mkdir -p $RPM_BUILD_ROOT%{_initdir}
 install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypserv
@@ -154,6 +163,7 @@ exit 0
  
 %files
 %defattr(-,root,root)
+%license COPYING
 %doc AUTHORS README INSTALL ChangeLog TODO NEWS
 %doc etc/ypserv.conf etc/securenets etc/README.etc
 %doc etc/netgroup etc/locale etc/netmasks etc/timezone
@@ -168,6 +178,11 @@ exit 0
 %{_includedir}/*/*
 
 %changelog
+* Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.1-1
+- new upstream release.
+- dropped all patches.
+- imported patches from rawhide.
+
 * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.19-5
 - rebuild with VineSeed environment