rng-tools/rng-tools.spec

118 lines
3.3 KiB
RPMSpec
Raw Normal View History

2020-02-20 13:44:58 +08:00
Name: rng-tools
2023-01-28 17:23:47 +08:00
Version: 6.16
Release: 4
2020-02-20 13:44:58 +08:00
Summary: Random number generator daemon
License: GPLv2+
URL: https://github.com/nhorman/rng-tools
Source0: https://github.com/nhorman/rng-tools/archive/v%{version}.tar.gz
Source1: rngd.service
2023-04-24 11:34:16 +08:00
Source2: rngd.sysconfig
2020-02-20 13:44:58 +08:00
#Dependency
BuildRequires: gcc make gettext systemd autoconf automake
2021-12-29 14:42:01 +08:00
BuildRequires: libgcrypt-devel libcurl-devel libxml2-devel openssl-devel
2023-01-28 17:23:47 +08:00
BuildRequires: libp11-devel jitterentropy-library-devel jansson-devel libcap-devel
2023-04-21 15:08:43 +08:00
#Provide the command: killall used by test cases.
BuildRequires: psmisc
BuildRequires: opensc
2023-04-21 15:08:43 +08:00
2021-12-29 14:42:01 +08:00
Requires: libgcrypt libsysfs openssl libxml2 libcurl jitterentropy-library openssl-pkcs11
2022-01-18 17:32:30 +08:00
Requires: opensc
2020-02-20 13:44:58 +08:00
%{?systemd_requires}
%description
Rng-tools is a random number generator daemon.It monitors a set of entropy sources,
and supplies entropy from them to the system kernel's /dev/random machinery.
%package_help
%prep
2021-12-29 14:42:01 +08:00
%autosetup -n %{name}-%{version} -p1
2020-02-20 13:44:58 +08:00
%build
./autogen.sh
2021-12-29 14:42:01 +08:00
%configure --without-rtlsdr
2020-02-20 13:44:58 +08:00
%make_build
%install
%make_install
install -D -t $RPM_BUILD_ROOT%{_unitdir} -m 0644 %{SOURCE1}
2023-04-24 11:34:16 +08:00
# install sysconfig file
install -D %{SOURCE2} -m0644 %{buildroot}%{_sysconfdir}/sysconfig/rngd
2020-02-20 13:44:58 +08:00
2023-04-21 15:08:43 +08:00
%check
export RNGD_JITTER_TIMEOUT=10 #Enseur that the AES can be generated.
%make_build check
2020-02-20 13:44:58 +08:00
%pre
%post
%systemd_post rngd.service
%preun
%systemd_preun rngd.service
%postun
%systemd_postun_with_restart rngd.service
%files
%defattr(-,root,root)
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/rngtest
2021-12-29 14:42:01 +08:00
%{_bindir}/randstat
2020-02-20 13:44:58 +08:00
%{_sbindir}/rngd
2023-04-24 11:34:16 +08:00
%attr(0644,root,root) %{_unitdir}/rngd.service
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/rngd
2020-02-20 13:44:58 +08:00
%files help
%{_mandir}/man1/rngtest.1.*
%{_mandir}/man8/rngd.8.*
%changelog
* Mon Jun 3 2024 yangxiaodong <yangxiaodong@kylinos.cn> - 6.16-4
- add buildrequires opensc to fix check error
2023-04-24 11:34:16 +08:00
* Mon Apr 24 2023 zhangruifang <zhangruifang1@h-partners.com> - 6.16-3
- Update the rngd.service file
- Add the config file for rngd service
2023-04-21 15:08:43 +08:00
* Fri Apr 21 2023 zhangruifang <zhangruifang1@h-partners.com> - 6.16-2
- enable make check
2023-01-28 17:23:47 +08:00
* Sat Jan 28 2023 fuanan <fuanan3@h-partners.com> - 6.16-1
- update version to 6.16
* Fri Sep 2 2022 panxiaohe <panxh.life@foxmail.com> - 6.14-4
- fix changelog to make it in descending chronological order
2022-07-28 14:40:59 +08:00
* Thu Jul 28 2022 zhangruifang <zhangruifang1@h-partners.com> - 6.14-3
- update release
2022-01-18 17:32:30 +08:00
* Tue Jan 18 2022 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 6.14-2
- Add requires:opensc,prevent service startup failure logs
2021-12-29 14:42:01 +08:00
* Wed Dec 29 2021 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 6.14-1
- update version to 6.14
2020-12-19 17:03:49 +08:00
* Sat Dec 19 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 6.5-3
- fix rngd.service coredump
2020-12-10 19:04:22 +08:00
* Thu Dec 10 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 6.5-2
- fix rngd.service coredump
* Wed Sep 2 2020 yangzhuangzhuang <yangzhuangzhuang1@huawei.com> - 6.5-1
- since 6.6, jitterentropy-library is independed from rng-tools,
no any entropy source will lead to rng-tools service fail.
2020-07-30 11:57:53 +08:00
* Thu Jul 30 2020 zhangxingliang <zhangxingliang3@huawei.com> - 6.10-1
- update to 6.10
* Sat Feb 29 2020 openEuler Buildteam <buildteam@openeuler.org> - 6.3.1-4
2020-02-29 16:44:48 +08:00
- add jitterentropy support
2020-02-20 13:44:58 +08:00
* Wed Feb 19 2020 wanjiankang <wanjiankang@huawei.com> - 6.3.1-3
- Package init