2020-10-15 17:21:24 +00:00
|
|
|
Name: tang
|
2021-05-05 12:06:32 +00:00
|
|
|
Version: 10
|
2021-05-20 19:32:45 +00:00
|
|
|
Release: 2%{?dist}
|
2020-10-15 17:21:24 +00:00
|
|
|
Summary: Network Presence Binding Daemon
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://github.com/latchset/%{name}
|
2021-02-08 11:47:02 +00:00
|
|
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
2020-12-01 19:47:14 +00:00
|
|
|
|
2021-05-20 19:32:45 +00:00
|
|
|
Patch0001: 0001-Fix-issues-reported-by-shellcheck.patch
|
|
|
|
Patch0002: 0002-Fix-possible-NULL-pointer-dereference-in-find_by_thp.patch
|
|
|
|
|
2020-10-15 17:21:24 +00:00
|
|
|
BuildRequires: gcc
|
2020-12-01 19:47:14 +00:00
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: git-core
|
2020-10-15 17:21:24 +00:00
|
|
|
BuildRequires: jose >= 8
|
|
|
|
BuildRequires: libjose-devel >= 8
|
|
|
|
BuildRequires: libjose-zlib-devel >= 8
|
|
|
|
BuildRequires: libjose-openssl-devel >= 8
|
|
|
|
|
|
|
|
BuildRequires: http-parser-devel >= 2.7.1-3
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
BuildRequires: systemd
|
|
|
|
BuildRequires: curl
|
|
|
|
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: grep
|
2021-05-05 12:06:32 +00:00
|
|
|
BuildRequires: socat
|
2020-10-15 17:21:24 +00:00
|
|
|
BuildRequires: sed
|
|
|
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: jose >= 8
|
|
|
|
Requires: grep
|
|
|
|
Requires: sed
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tang is a small daemon for binding data to the presence of a third party.
|
|
|
|
|
|
|
|
%prep
|
2020-12-01 19:47:14 +00:00
|
|
|
%autosetup -S git
|
2020-10-15 17:21:24 +00:00
|
|
|
|
|
|
|
%build
|
2020-12-01 19:47:14 +00:00
|
|
|
%meson
|
|
|
|
%meson_build
|
2020-10-15 17:21:24 +00:00
|
|
|
|
|
|
|
%install
|
2020-12-01 19:47:14 +00:00
|
|
|
%meson_install
|
2020-10-15 17:21:24 +00:00
|
|
|
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
|
|
|
|
|
|
|
%check
|
2020-12-01 19:47:14 +00:00
|
|
|
%meson_test
|
2020-10-15 17:21:24 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
getent group %{name} >/dev/null || groupadd -r %{name}
|
|
|
|
getent passwd %{name} >/dev/null || \
|
|
|
|
useradd -r -g %{name} -d %{_localstatedir}/cache/%{name} -s /sbin/nologin \
|
|
|
|
-c "Tang Network Presence Daemon user" %{name}
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post %{name}d.socket
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{name}d.socket
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart %{name}d.socket
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
2020-12-01 19:47:14 +00:00
|
|
|
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
2020-10-15 17:21:24 +00:00
|
|
|
%{_unitdir}/%{name}d@.service
|
|
|
|
%{_unitdir}/%{name}d.socket
|
|
|
|
%{_libexecdir}/%{name}d-keygen
|
2021-05-05 12:06:32 +00:00
|
|
|
%{_libexecdir}/%{name}d-rotate-keys
|
2020-10-15 17:21:24 +00:00
|
|
|
%{_libexecdir}/%{name}d
|
|
|
|
%{_mandir}/man8/tang.8*
|
|
|
|
%{_bindir}/%{name}-show-keys
|
|
|
|
%{_mandir}/man1/tang-show-keys.1*
|
|
|
|
|
|
|
|
%changelog
|
2021-05-20 19:32:45 +00:00
|
|
|
* Thu May 20 2021 Sergio Correia <scorreia@redhat.com> - 10-2
|
|
|
|
- Fix issues reported by static analyzer checks
|
|
|
|
Resolves: rhbz#1956765
|
|
|
|
|
2021-05-05 12:06:32 +00:00
|
|
|
* Wed May 05 2021 Sergio Correia <scorreia@redhat.com> - 10-1
|
|
|
|
- New upstream release - v10.
|
|
|
|
Resolves: rhbz#1956765
|
|
|
|
|
2021-04-16 05:49:51 +00:00
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 8-3
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
2021-02-09 19:57:19 +00:00
|
|
|
* Tue Feb 09 2021 Sergio Correia <scorreia@redhat.com> - 8-2
|
|
|
|
- Remove extra patches as they are already included in v8 release
|
|
|
|
|
2021-02-08 11:47:02 +00:00
|
|
|
* Mon Feb 08 2021 Sergio Correia <scorreia@redhat.com> - 8-1
|
|
|
|
- New upstream release - v8.
|
|
|
|
|
2021-02-03 05:22:01 +00:00
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 7-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-12-01 19:47:14 +00:00
|
|
|
* Tue Dec 1 2020 Sergio Correia <scorreia@redhat.com> - 7.8
|
|
|
|
- Move build system to meson
|
|
|
|
Upstream commits (fed9020, 590de27)
|
|
|
|
- Move key handling to tang itself
|
|
|
|
Upstream commits (6090505, c71df1d, 7119454)
|
|
|
|
|
2020-10-15 17:21:24 +00:00
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Apr 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 7-6
|
|
|
|
- Rebuild for http-parser 2.9.4
|
|
|
|
|
|
|
|
* Tue Feb 25 2020 Sergio Correia <scorreia@redhat.com> - 7-5
|
|
|
|
- Rebuilt after http-parser update
|
|
|
|
|
|
|
|
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Aug 10 2018 Nathaniel McCallum <npmccallum@redhat.com> - 7-1
|
|
|
|
- New upstream release
|
|
|
|
- Retire tang-nagios package (now separate upstream)
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-2
|
|
|
|
- Fix incorrect dependencies
|
|
|
|
|
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-2
|
|
|
|
- Fix a race condition in one of the tests
|
|
|
|
|
|
|
|
* Thu Nov 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
|
|
|
|
- New upstream release
|
|
|
|
- Add nagios subpackage
|
|
|
|
|
|
|
|
* Wed Oct 26 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Wed Oct 19 2016 Nathaniel McCallum <npmccallum@redhat.com> - 2-1
|
|
|
|
- New upstream release
|
|
|
|
|
|
|
|
* Tue Aug 23 2016 Nathaniel McCallum <npmccallum@redhat.com> - 1-1
|
|
|
|
- First release
|