Accepting request 149339 from home:oertel:branches:security

- spit off devel package (all new files not present before)
- spit off library package to follow shared library policy
- update to 1.7
  * Add havege_status_dump() as basis for haveged diagnositics
  * Provide sample spec to build haveged and haveged-devel
  * Add contrib/build to provide build support
  * Modify build to use libtool
  * Retname base types to alias stdint.h types to allow 'fixes' if necessary
  * Rename all public functions to follow havege_* naming convention
  * Sanitize havege.h to be include file for devel package
  * Add destroy() to havege for library use.
  * Move all remaining static vars to allocated memory.
  * Rework include file structure to eliminate include sequence errors.
  * Fix (rare) segfault in test0 caused by 1.6 alignment fix
  
- update to  v1.6a
  * Fix typo in configure.ac

OBS-URL: https://build.opensuse.org/request/show/149339
OBS-URL: https://build.opensuse.org/package/show/security/haveged?expand=0&rev=70
This commit is contained in:
2013-01-21 10:31:12 +00:00
committed by Git OBS Bridge
parent 5c27a07514
commit ad55c3efc7
4 changed files with 68 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d47db0cf9a58f7ec9877eec543a062f01309916f569639c27a8b0dd004b24541
size 244301

3
haveged-1.7.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9ec85438386a46d5c3fe7b5b121cafd89c34bae68cbbfb4cecb1ff5622111013
size 454416

View File

@@ -1,3 +1,25 @@
-------------------------------------------------------------------
Mon Jan 21 01:18:16 CET 2013 - ro@suse.de
- spit off devel package (all new files not present before)
- spit off library package to follow shared library policy
- update to 1.7
* Add havege_status_dump() as basis for haveged diagnositics
* Provide sample spec to build haveged and haveged-devel
* Add contrib/build to provide build support
* Modify build to use libtool
* Retname base types to alias stdint.h types to allow 'fixes' if necessary
* Rename all public functions to follow havege_* naming convention
* Sanitize havege.h to be include file for devel package
* Add destroy() to havege for library use.
* Move all remaining static vars to allocated memory.
* Rework include file structure to eliminate include sequence errors.
* Fix (rare) segfault in test0 caused by 1.6 alignment fix
- update to v1.6a
* Fix typo in configure.ac
-------------------------------------------------------------------
Fri Dec 21 11:53:16 UTC 2012 - dvaleev@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package haveged
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: haveged
Version: 1.6
Version: 1.7
Release: 0
Summary: Feed entropy into random pool
License: GPL-3.0
@@ -48,19 +48,42 @@ numbers generated from hidden processor state.
For more informations see http://www.issihosts.com/haveged/
%package devel
Summary: haveged development files
Group: Development/Libraries
%description devel
Headers and for the haveged library
This package contains the haveged implementation of the HAVEGE
algorithm and supporting features.
%package -n libhavege1
Summary: haveged interface library
Group: Development/Libraries
%description -n libhavege1
Shared object for the haveged library
This package contains the haveged implementation of the HAVEGE
algorithm and supporting features.
%prep
%setup -q
%patch0 -p1
%build
%if 0%{?suse_version} < 1220
autoreconf -fiv
%endif
export CFLAGS="%optflags -fpie"
export LDFLAGS="-Wl,-z,relro,-z,now -pie"
%configure \
--enable-nistest=yes \
--enable-daemon=yes \
--enable-clock_gettime=yes
make %{?_smp_mflags}
# no multiple jobs for now, broken makefile dependencies
#make %{?_smp_mflags}
make
%check
#XXX: nist test is killed by SIGKILL with static int random_pool1[_32MB] on
@@ -81,6 +104,7 @@ make %{?_smp_mflags} check
%if 0%{?have_systemd}
%{__install} -D -m0644 %{S:2} %{buildroot}%{_unitdir}/%{name}.service
%endif
%{__rm} -f %{buildroot}%{_libdir}/libhavege.*a
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
@@ -110,6 +134,10 @@ make %{?_smp_mflags} check
%service_del_preun %{name}.service
%endif
%post -n libhavege1 -p /sbin/ldconfig
%postun -n libhavege1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_sbindir}/rc%{name}
@@ -120,4 +148,16 @@ make %{?_smp_mflags} check
%{_unitdir}/%{name}.service
%endif
%files devel
%defattr(-,root,root)
%{_mandir}/man3/libhavege.3*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/havege.h
%doc contrib/build/havege_sample.c
%{_libdir}/*.so
%files -n libhavege1
%defattr(-,root,root)
%{_libdir}/*.so.*
%changelog