]> git.pld-linux.org Git - packages/jitterentropy.git/commitdiff
new
authorJan Palus <atler@pld-linux.org>
Tue, 4 May 2021 19:04:51 +0000 (21:04 +0200)
committerJan Palus <atler@pld-linux.org>
Tue, 4 May 2021 19:04:51 +0000 (21:04 +0200)
jitterentropy.spec [new file with mode: 0644]

diff --git a/jitterentropy.spec b/jitterentropy.spec
new file mode 100644 (file)
index 0000000..acb6a2d
--- /dev/null
@@ -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
This page took 0.115035 seconds and 4 git commands to generate.