yp-tools/yp-tools.spec

90 lines
2.3 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:20:39 -04:00
%global __filter_GLIBC_PRIVATE 1
Name: yp-tools
Version: 4.2.3
Release: 9
2019-09-30 11:20:39 -04:00
Summary: Network Information Service (YP) client utilities
2022-06-20 12:18:34 +08:00
License: GPL-2.0-or-later
2020-12-15 18:30:36 +08:00
URL: https://github.com/thkukuk/yp-tools
2019-09-30 11:20:39 -04:00
Source0: https://github.com/thkukuk/yp-tools/archive/v%{version}.tar.gz
Patch0: yp-tools-2.12-hash.patch
Patch1: yp-tools-2.12-crypt.patch
Patch2: yp-tools-2.12-adjunct.patch
Patch3: yp-tools-4.2.2-strict-prototypes.patch
Patch4: fix-to-replace-random-with-RAND_priv_bytes.patch
2019-09-30 11:20:39 -04:00
BuildRequires: autoconf automake libtool
2021-08-25 18:37:13 +08:00
BuildRequires: gettext-devel libtirpc-devel libnsl2-devel openssl-devel
Requires: ypbind >= 3:2.4-2 glibc openssl-libs haveged
2019-09-30 11:20:39 -04:00
%description
This package provides NIS client programs.NIS,Network Information
Service,provides passwords,groupinformation and other network information
to machines on a network.It is also known as Sun Yellow Pages.
You need to install ypbind on machine which runs NIS programs.
%package help
Summary: Doc files for yp-tools
Buildarch: noarch
%description help
The help package contains doc files for yp-tools.
%prep
%autosetup -n %{name}-%{version} -p1
2019-09-30 11:20:39 -04:00
autoreconf -ifv
%build
2021-08-25 18:37:13 +08:00
export CFLAGS="$CFLAGS %{optflags} -Wno-cast-function-type -lcrypto"
2019-09-30 11:20:39 -04:00
%configure --disable-domainname
%make_build
%install
%make_install
%find_lang %{name}
%files -f %{name}.lang
%doc COPYING AUTHORS THANKS etc/nsswitch.conf
%{_sbindir}/*
%{_bindir}/*
/var/yp/nicknames
%files help
%doc README NEWS ChangeLog
%{_mandir}/*/*
%changelog
* Sun Feb 04 2024 xingwei <xingwei14@h-partners.com> - 4.2.3-9
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:add haveged requires and optimize random number function replacement patch
2022-06-20 12:18:34 +08:00
* Mon Jun 20 2022 liukuo <liukuo@kylinos.cn> - 4.2.3-8
- License compliance rectification
2021-08-25 18:37:13 +08:00
* Wed Aug 25 2021 heyaohua<heyaohua1@huawei.com> - 4.2.3-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:replace random with RAND_priv_bytes
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.2.3-6
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2020-12-15 18:30:36 +08:00
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 4.2.3-5
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update url
2019-12-13 16:16:55 +08:00
* Thu Nov 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.2.3-4
- Type:enhancement
- Id:NA
- SUG:NA
- DESC:modify the release
2019-09-30 11:20:39 -04:00
* Fri Aug 30 2019 luhuaxin <luhuaxin@huawei.com> - 4.2.3-3
- Package init