Compare commits

..

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
cc5b1758d7
!12 [sync] PR-9: 修复 clang 构建错误
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-04-24 08:24:49 +00:00
jammyjellyfish
f8a5d6f05a Fix clang build error
(cherry picked from commit da5dffff33812a521176b425588639d265cf2aec)
2023-04-24 16:10:36 +08:00
openeuler-ci-bot
1d4fe4afbc
!11 [sync] PR-8: upgrade ypserv to 4.2
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-04-24 08:09:41 +00:00
xingwei
05978fd144 upgrade ypserv to 4.2
(cherry picked from commit cc4f8228ce24170adfda334cd8ecbb237c378f52)
2023-04-24 15:33:12 +08:00
openeuler-ci-bot
1166fb3ecf
!10 [sync] PR-7: ypserv delete -S git from %autosetup, and delete BuildRequires git
From: @openeuler-sync-bot 
Reviewed-by: @leeffo 
Signed-off-by: @leeffo
2023-04-24 07:32:49 +00:00
yangl777
4d9adf511a ypserv delete -S git from %autosetup,and delete Buildrequires git
(cherry picked from commit 46f3f46db5da0e0294c350c48d3a0cc366486c1d)
2023-04-24 15:20:03 +08:00
openeuler-ci-bot
5c528a1223 !4 update url
From: @haochenstar
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2020-12-16 14:25:59 +08:00
haochenstar
6013ac104d update url 2020-12-15 18:21:50 +08:00
openeuler-ci-bot
3087a36d70 !3 add yaml file
Merge pull request !3 from yixiangzhike/master
2020-07-06 09:31:04 +08:00
yixiangzhike
e9544af2e1 add yaml file 2020-06-13 14:37:27 +08:00
4 changed files with 34 additions and 5 deletions

Binary file not shown.

BIN
ypserv-4.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,9 +1,9 @@
Name: ypserv Name: ypserv
Version: 4.1 Version: 4.2
Release: 4 Release: 2
Summary: The NIS server Summary: The NIS server
License: GPLv2 License: GPLv2
URL: http://www.linux-nis.org/nis/ypserv/index.html URL: https://github.com/thkukuk/ypserv
Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: ypserv.service Source1: ypserv.service
Source2: yppasswdd.service Source2: yppasswdd.service
@ -22,7 +22,7 @@ Patch8: ypserv-2.31-netgrprecur.patch
Patch9: ypserv-4.0-headers.patch Patch9: ypserv-4.0-headers.patch
Patch10: ypserv-4.0-selinux-context.patch Patch10: ypserv-4.0-selinux-context.patch
BuildRequires: gcc git systemd libxslt autoconf automake BuildRequires: gcc systemd libxslt autoconf automake
BuildRequires: docbook-style-xsl tokyocabinet-devel libnsl2-devel BuildRequires: docbook-style-xsl tokyocabinet-devel libnsl2-devel
BuildRequires: libtirpc-devel systemd-devel libselinux-devel BuildRequires: libtirpc-devel systemd-devel libselinux-devel
Requires: tokyocabinet gawk make portmap bash >= 2.0 Requires: tokyocabinet gawk make portmap bash >= 2.0
@ -44,7 +44,7 @@ BuildArch: noarch
The help package contains doc files for ypserv. The help package contains doc files for ypserv.
%prep %prep
%autosetup -n %{name}-%{version} -p1 -S git %autosetup -n %{name}-%{version} -p1
rm -f etc/netgroup.5 etc/ypserv.conf.5 makedbm/makedbm.8 mknetid/mknetid.8 rm -f etc/netgroup.5 etc/ypserv.conf.5 makedbm/makedbm.8 mknetid/mknetid.8
autoreconf -i autoreconf -i
@ -52,6 +52,10 @@ autoreconf -i
cp etc/README etc/README.etc cp etc/README etc/README.etc
export CFLAGS="$RPM_OPT_FLAGS -fpic" export CFLAGS="$RPM_OPT_FLAGS -fpic"
%if "%toolchain" == "clang"
export CFLAGS="$CFLAGS -Wno-error=strict-prototypes"
%endif
%configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \ %configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \
--with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux --with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux
%make_build %make_build
@ -105,6 +109,27 @@ install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir}
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Thu Apr 20 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 4.2-2
- Type:requirement
- ID:NA
- SUG:NA
- DESC:Fix clang build error
* Tue Nov 15 2022 xingwei <xingwei14@h-partners.com> - 4.2-1
- Type:requirement
- ID:NA
- SUG:NA
- DESC:upgrade ypserv to 4.2
* Thu Aug 12 2021 yanglu <yanglu72@huawei.com> - 4.1-6
- DESC:delete -S git from %autosetup,and delete BuildRequires git
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 4.1-5
- Type:requirement
- ID:NA
- SUG:NA
- DESC:update url
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-4 * Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-4
- optimization the spec - optimization the spec

4
ypserv.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: thkukuk/ypserv
tag_prefix: ^v
seperator: .