159 lines
4.9 KiB
RPMSpec
159 lines
4.9 KiB
RPMSpec
%bcond_without enable_check
|
|
%bcond_with use_valgrind
|
|
|
|
%global servicename gssproxy
|
|
%global pubconfpath %{_sysconfdir}/gssproxy
|
|
%global gpstatedir %{_localstatedir}/lib/gssproxy
|
|
|
|
Name: gssproxy
|
|
Version: 0.9.2
|
|
Release: 3
|
|
Summary: GSSAPI Proxy
|
|
License: MIT
|
|
URL: https://github.com/gssapi/gssproxy
|
|
Source0: https://github.com/gssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
Patch1: backport-Remove-from-the-correct-list.patch
|
|
|
|
Requires: krb5 keyutils libverto-module-base libini_config
|
|
%{?systemd_requires}
|
|
|
|
Conflicts: selinux-policy < 3.13.1-283.5
|
|
|
|
BuildRequires: autoconf automake libtool m4 libxslt libxml2 docbook-style-xsl doxygen findutils systemd-units git popt-devel
|
|
BuildRequires: gettext-devel pkgconfig krb5-devel >= 1.12.0 libselinux-devel keyutils-libs-devel libini_config-devel >= 1.2.0 libverto-devel
|
|
# for gssuserproxy.service --idle-timeout
|
|
BuildRequires: systemd-devel
|
|
|
|
%if %{with enable_check}
|
|
# for make check
|
|
BuildRequires: krb5-client krb5-server openldap-clients openldap-servers pkgconfig(socket_wrapper) nss_wrapper
|
|
%if %{with use_valgrind}
|
|
BuildRequires: valgrind glibc-debuginfo glibc
|
|
%endif
|
|
%endif
|
|
|
|
%description
|
|
This is a proxy for GSSAPI which deals with credential handling
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
autoreconf -f -i
|
|
%configure \
|
|
--with-pubconf-path=%{pubconfpath} \
|
|
--with-initscript=systemd \
|
|
--disable-static \
|
|
--disable-rpath \
|
|
--with-gpp-default-behavior=REMOTE_FIRST
|
|
|
|
%make_build
|
|
make test_proxymech
|
|
|
|
%install
|
|
%make_install
|
|
rm -f %{buildroot}%{_libdir}/gssproxy/proxymech.la
|
|
install -d -m755 %{buildroot}%{_sysconfdir}/gssproxy
|
|
install -m644 examples/gssproxy.conf %{buildroot}%{_sysconfdir}/gssproxy/gssproxy.conf
|
|
install -m644 examples/99-network-fs-clients.conf %{buildroot}%{_sysconfdir}/gssproxy/99-network-fs-clients.conf
|
|
install -D -m644 examples/proxymech.conf %{buildroot}%{_sysconfdir}/gss/mech.d/proxymech.conf
|
|
install -m644 examples/24-nfs-server.conf %{buildroot}%{_sysconfdir}/gssproxy/24-nfs-server.conf
|
|
mkdir -p %{buildroot}%{gpstatedir}/rcache
|
|
|
|
%check
|
|
%if %{with enable_check}
|
|
# set timeout 60s
|
|
# enough time to execute
|
|
%if %{with use_valgrind}
|
|
%make_build check CHECKARGS=' --timeout=60'
|
|
%else
|
|
%make_build check CHECKARGS=' --timeout=60 --valgrind-cmd="" '
|
|
%endif
|
|
%endif
|
|
|
|
%post
|
|
%systemd_post gssproxy.service
|
|
|
|
%preun
|
|
%systemd_preun gssproxy.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart gssproxy.service
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_unitdir}/gssproxy.service
|
|
%{_userunitdir}/gssuserproxy.service
|
|
%{_userunitdir}/gssuserproxy.socket
|
|
%{_sbindir}/gssproxy
|
|
%attr(755,root,root) %dir %{pubconfpath}
|
|
%attr(755,root,root) %dir %{gpstatedir}
|
|
%attr(700,root,root) %dir %{gpstatedir}/clients
|
|
%attr(700,root,root) %dir %{gpstatedir}/rcache
|
|
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/gssproxy.conf
|
|
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/99-network-fs-clients.conf
|
|
%attr(0644,root,root) %config(noreplace) /%{_sysconfdir}/gss/mech.d/proxymech.conf
|
|
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/24-nfs-server.conf
|
|
%dir %{_libdir}/gssproxy
|
|
%{_libdir}/gssproxy/proxymech.so
|
|
|
|
%files help
|
|
%{_mandir}/man5/gssproxy.conf.5*
|
|
%{_mandir}/man8/gssproxy.8*
|
|
%{_mandir}/man8/gssproxy-mech.8*
|
|
|
|
%changelog
|
|
* Sat Jan 25 2025 Funda Wang <fundawang@yeah.net> - 0.9.2-3
|
|
- deal with socket_wrapper splitting
|
|
|
|
* Tue Mar 12 2024 yixiangzhike <yixiangzhike007@163.com> - 0.9.2-2
|
|
- backport upstream patch to remove node from the correct list
|
|
|
|
* Fri Dec 22 2023 yixiangzhike <yixiangzhike007@163.com> - 0.9.2-1
|
|
- update to 0.9.2
|
|
|
|
* Fri Sep 8 2023 laokz <zhangkai@iscas.ac.cn> - 0.9.1-4
|
|
- backport upstream patch to fix userproxytest bug
|
|
|
|
* Fri Jul 7 2023 yixiangzhike <yixiangzhike007@163.com> - 0.9.1-3
|
|
- enable make check
|
|
|
|
* Mon Apr 10 2023 yixiangzhike <yixiangzhike007@163.com> - 0.9.1-2
|
|
- add BuildRequires:systemd-devel for option idle-timeout
|
|
|
|
* Mon Oct 24 2022 yixiangzhike <yixiangzhike007@163.com> - 0.9.1-1
|
|
- update to 0.9.1
|
|
|
|
* Tue Oct 18 2022 yixiangzhike <yixiangzhike007@163.com> - 0.8.4-2
|
|
- typo doc fix
|
|
|
|
* Fri Dec 24 2021 yixiangzhike <yixiangzhike007@163.com> - 0.8.4-1
|
|
- update to 0.8.4
|
|
|
|
* Sat Jul 25 2020 zhangxingliang <zhangxingliang3@huawei.com> - 0.8.3-1
|
|
- Type:update
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:update to 0.8.3
|
|
|
|
* Fri Mar 27 2020 steven <steven_ygui@163.com> - 0.8.0-12
|
|
- Unlock cond_mutex before pthread exit in gp_worker_main()
|
|
|
|
* Sun Jan 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.8.0-11
|
|
- revise the bogus date in changelog and instll the 24-nfs-server.conf file
|
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.8.0-10
|
|
- add the 24-nfs-server.conf file for nfs-server
|
|
|
|
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.0-9
|
|
- Modify requires
|
|
|
|
* Thu Sep 27 2018 openEuler Buildteam <buildteam@openeuler.org> 0.8.0-8
|
|
- Package init
|
|
|
|
* Mon Sep 10 2018 openEuler Buildteam <buildteam@openeuler.org> 0.8.0-7
|
|
- Package init
|