LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File rng-tools.spec of Package rng-tools (Project DISCONTINUED:openSUSE:11.1)

#
# spec file for package rng-tools (Version 2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           rng-tools
License:        GPL v2 or later
Group:          System/Kernel
AutoReqProv:    on
Summary:        Support daemon for hardware random device
Version:        2
Release:        78
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://sourceforge.net/projects/gkernel/
Source:         %name-%version.tar.bz2
Source1:        %name.init
PreReq:         %fillup_prereq

%description
This  daemon  feeds data from a random number generator to the kernel's
 random  number  entropy  pool,  after	first checking the data to
ensure that it is properly random.



Authors:
--------
    Philipp Rumpf <prumpf@mandrakesoft.com>
    Jeff Garzik <jgarzik@mandrakesoft.com>
    Matt Sottek

%prep
%setup -q

%build
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" \
./configure --prefix=/usr --exec-prefix=/ --mandir=%{_mandir}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/init.d
install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT/etc/init.d/%name

%post
%{fillup_and_insserv -n rng-tools rng-tools}

%preun
echo "Stopping rng-tools ..."
%stop_on_removal rng-tools
true   # ignore errors

%postun
%restart_on_update rng-tools
%insserv_cleanup

%clean
test -z "$RPM_BUILD_ROOT" || rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/bin/rngtest
/sbin/rngd
%{_mandir}/man1/*.1.gz
%{_mandir}/man8/*.8.gz
/etc/init.d/%name
%changelog
* Fri Nov 09 2007 - bwalle@suse.de
- added PreReq for %%fillup_prereq
* Sun Apr 01 2007 - bwalle@suse.de
- added init script that also probes hardware if the module
  cannot be probed by PCI IDs
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Aug 25 2004 - ro@suse.de
- update to version 2
* Thu Jul 29 2004 - ro@suse.de
- update to version 1.1
* Thu Aug 21 2003 - ro@suse.de
- created package version 1.0