[packages/jitterentropy] new
atler
atler at pld-linux.org
Tue May 4 21:05:21 CEST 2021
commit f87ec48d0396ca0afc726cdc8171302442304c28
Author: Jan Palus <atler at pld-linux.org>
Date: Tue May 4 21:04:51 2021 +0200
new
jitterentropy.spec | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 75 insertions(+)
---
diff --git a/jitterentropy.spec b/jitterentropy.spec
new file mode 100644
index 0000000..acb6a2d
--- /dev/null
+++ b/jitterentropy.spec
@@ -0,0 +1,75 @@
+Summary: Library implementing the jitter entropy source
+Name: jitterentropy
+Version: 3.0.2
+Release: 1
+License: BSD or GPL v2+
+Group: Libraries
+Source0: http://www.chronox.de/jent/%{name}-library-%{version}.tar.xz
+# Source0-md5: f09160fa89953444bdb73a071abf8484
+URL: http://www.chronox.de/jent.html
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Jitter RNG provides a noise source using the CPU execution timing
+jitter. It does not depend on any system resource other than a
+high-resolution time stamp. It is a small-scale, yet fast entropy
+source that is viable in almost all environments and on a lot of CPU
+architectures.
+
+%package devel
+Summary: Header files for jitterentropy library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for jitterentropy library.
+
+%package static
+Summary: Static jitterentropy library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static jitterentropy library.
+
+%prep
+%setup -q -n %{name}-library-%{version}
+
+%build
+export LDFLAGS="%{rpmldflags} -lpthread"
+%{__make} \
+ CC="%{__cc}" \
+ CFLAGS="%{rpmcppflags} %{rpmcflags} -O0"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install install-static \
+ DESTDIR=$RPM_BUILD_ROOT \
+ PREFIX="%{_prefix}" \
+ LIB="%{_lib}"
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md COPYING COPYING.bsd COPYING.gplv2 README.md
+%attr(755,root,root) %{_libdir}/libjitterentropy.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libjitterentropy.so.3
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libjitterentropy.so
+%{_includedir}/jitterentropy.h
+%{_includedir}/jitterentropy-base-user.h
+%{_mandir}/man3/jitterentropy.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libjitterentropy.a
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/jitterentropy.git/commitdiff/f87ec48d0396ca0afc726cdc8171302442304c28
More information about the pld-cvs-commit
mailing list