代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/ypbind 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Name: ypbind
Epoch: 3
Version: 2.7.2
Release: 1
Summary: NIS binding software
License: GPLv2
URL: http://www.linux-nis.org/nis/ypbind-mt/index.html
Source0: https://github.com/thkukuk/ypbind-mt/archive/v%{version}.tar.gz#/ypbind-mt-%{version}.tar.gz
Source1: nis.sh
Source2: ypbind.service
Source3: ypbind-pre-setdomain
Source4: ypbind-post-waitbind
Patch0: ypbind-1.11-gettextdomain.patch
Patch2: ypbind-2.4-gettext_version.patch
BuildRequires: git gcc systemd automake autoconf libxslt
BuildRequires: dbus-glib-devel systemd-devel docbook-style-xsl
BuildRequires: libtirpc-devel libnsl2-devel gettext-devel
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Requires: rpcbind nss_nis yp-tools >= 4.2.2-2
%description
This package helps create and maintain a binding to a YP server.
It can finds the server for a YP domain and stores the information
about it.
%package help
Summary: Doc files for ypbind
Buildarch: noarch
%description help
The help package contains doc files for ypbind.
%prep
%autosetup -n %{name}-mt-%{version} -p1 -S git
autoreconf -fiv
%build
export CFLAGS="$RPM_OPT_FLAGS -fpic"
export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro,-z,now"
%configure
%make_build
%install
%make_install
mkdir -p %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_sysconfdir}/dhcp/dhclient.d
mkdir -p %{buildroot}/%{_localstatedir}/yp/binding
install -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/dhcp/dhclient.d/nis.sh
install -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/ypbind.service
install -m 755 %{SOURCE3} %{buildroot}/%{_libexecdir}/ypbind-pre-setdomain
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/ypbind-post-waitbind
install -m 644 etc/yp.conf %{buildroot}/%{_sysconfdir}/yp.conf
%{find_lang} %{name}
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files -f %{name}.lang
%license COPYING
%config(noreplace) %{_sysconfdir}/yp.conf
%{_sysconfdir}/dhcp/dhclient.d/nis.sh
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%{_libexecdir}/%{name}*
%dir %{_localstatedir}/yp/binding
%{_datadir}/locale/*
%files help
%doc README NEWS
%{_mandir}/*/*
%changelog
* Tue Jul 28 2020 lunankun <lunankun@huawei.com> - 2.7.2-1
- Type:update
- ID:NA
- SUG:restart
- DESC:update to ypbind-2.7.2
* Tue Dec 31 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:optimization the spec
* Thu Nov 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.6-2
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the release
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - 2.6-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。