File rng-tools.spec of Package rng-tools
#
# spec file for package rng-tools (Version 2)
#
# Copyright (c) 2009 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: rng-tools
License: GPL v2 or later
Group: System/Kernel
AutoReqProv: on
ExclusiveArch: %ix86 ia64 x86_64
Summary: Support daemon for hardware random device
Version: 2
Release: 133
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 Jan 09 2009 olh@suse.de
- use ExclusiveArch as in /SRC/arch/
* 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
* Tue Aug 24 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