2016-10-28 18:09:08 +00:00
|
|
|
Name: tang
|
2017-06-14 12:25:25 +00:00
|
|
|
Version: 6
|
2017-08-03 09:09:04 +00:00
|
|
|
Release: 3%{?dist}
|
2016-10-28 18:09:08 +00:00
|
|
|
Summary: Network Presence Binding Daemon
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://github.com/latchset/%{name}
|
|
|
|
Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
|
2017-06-14 05:45:28 +00:00
|
|
|
BuildRequires: jose >= 8
|
|
|
|
BuildRequires: libjose-devel >= 8
|
|
|
|
BuildRequires: libjose-zlib-devel >= 8
|
|
|
|
BuildRequires: libjose-openssl-devel >= 8
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
BuildRequires: http-parser-devel >= 2.7.1-3
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
BuildRequires: systemd
|
2017-06-14 05:45:28 +00:00
|
|
|
BuildRequires: curl
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
BuildRequires: coreutils
|
|
|
|
BuildRequires: grep
|
|
|
|
BuildRequires: sed
|
|
|
|
|
2016-11-10 21:54:39 +00:00
|
|
|
BuildRequires: nagios-common
|
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
%{?systemd_requires}
|
|
|
|
Requires: coreutils
|
2017-06-14 05:45:28 +00:00
|
|
|
Requires: jose >= 8
|
2016-10-28 18:09:08 +00:00
|
|
|
Requires: grep
|
|
|
|
Requires: sed
|
|
|
|
|
|
|
|
Requires(pre): shadow-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tang is a small daemon for binding data to the presence of a third party.
|
|
|
|
|
2016-11-10 21:54:39 +00:00
|
|
|
%package nagios
|
|
|
|
Summary: Nagios plugin for testing Tang Daemon
|
|
|
|
Requires: nagios-common
|
|
|
|
|
|
|
|
%description nagios
|
|
|
|
This package provides a Nagios plugin used to test the Tang Network Presence Binding Daemon.
|
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%make_install
|
|
|
|
%{__sed} -i 's|DirectoryMode=0700||' $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.path
|
|
|
|
%{__sed} -i 's|MakeDirectory=true||' $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.path
|
|
|
|
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d-update.service
|
|
|
|
echo "User=%{name}" >> $RPM_BUILD_ROOT/%{_unitdir}/%{name}d@.service
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/cache/%{name}
|
|
|
|
%{__mkdir_p} $RPM_BUILD_ROOT/%{_localstatedir}/db/%{name}
|
|
|
|
|
|
|
|
%check
|
|
|
|
if ! make %{?_smp_mflags} check; then
|
|
|
|
cat test-suite.log
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
|
|
|
%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
|
|
|
|
%systemd_post %{name}d-update.path
|
2017-06-14 05:37:40 +00:00
|
|
|
%systemd_post %{name}d-update.service
|
|
|
|
%systemd_post %{name}d-keygen.service
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{name}d.socket
|
|
|
|
%systemd_preun %{name}d-update.path
|
2017-06-14 05:37:40 +00:00
|
|
|
%systemd_preun %{name}d-update.service
|
|
|
|
%systemd_preun %{name}d-keygen.service
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart %{name}d.socket
|
|
|
|
%systemd_postun_with_restart %{name}d-update.path
|
2017-06-14 05:37:40 +00:00
|
|
|
%systemd_postun_with_restart %{name}d-update.service
|
|
|
|
%systemd_postun_with_restart %{name}d-keygen.service
|
2016-10-28 18:09:08 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%attr(0750, %{name}, %{name}) %{_localstatedir}/cache/%{name}
|
|
|
|
%attr(2570, %{name}, %{name}) %{_localstatedir}/db/%{name}
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_unitdir}/%{name}d-keygen.service
|
2016-10-28 18:09:08 +00:00
|
|
|
%{_unitdir}/%{name}d-update.service
|
|
|
|
%{_unitdir}/%{name}d-update.path
|
|
|
|
%{_unitdir}/%{name}d@.service
|
|
|
|
%{_unitdir}/%{name}d.socket
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_libexecdir}/%{name}d-keygen
|
2016-10-28 18:09:08 +00:00
|
|
|
%{_libexecdir}/%{name}d-update
|
|
|
|
%{_libexecdir}/%{name}d
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_mandir}/man8/tang.8*
|
2016-10-28 18:09:08 +00:00
|
|
|
|
2016-11-10 21:54:39 +00:00
|
|
|
%files nagios
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/nagios/plugins/%{name}
|
2017-06-14 05:37:40 +00:00
|
|
|
%{_mandir}/man1/tang-nagios.1*
|
2016-11-10 21:54:39 +00:00
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
%changelog
|
2017-08-03 09:09:04 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 19:56:51 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-06-14 12:25:25 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-06-14 05:45:28 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-2
|
|
|
|
- Fix incorrect dependencies
|
|
|
|
|
2017-06-14 05:37:40 +00:00
|
|
|
* Wed Jun 14 2017 Nathaniel McCallum <npmccallum@redhat.com> - 5-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-02-11 15:33:52 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-11-14 18:34:32 +00:00
|
|
|
* Mon Nov 14 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-2
|
|
|
|
- Fix a race condition in one of the tests
|
|
|
|
|
2016-11-10 21:54:39 +00:00
|
|
|
* Thu Nov 10 2016 Nathaniel McCallum <npmccallum@redhat.com> - 4-1
|
|
|
|
- New upstream release
|
|
|
|
- Add nagios subpackage
|
|
|
|
|
2016-10-28 18:09:08 +00:00
|
|
|
* 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
|