generated from smedev/Template-for-SMEServer-Core-Perl
64 lines
1.6 KiB
RPMSpec
64 lines
1.6 KiB
RPMSpec
![]() |
%define name perl-Test-MockRandom
|
||
|
%define version 1.0
|
||
|
%define release 1
|
||
|
Summary: This is what perl-Test-MockRandom does.
|
||
|
Name: %{name}
|
||
|
Version: %{version}
|
||
|
Release: %{release}%{?dist}
|
||
|
Source: %{name}-%{version}.tar.gz
|
||
|
License: GNU GPL version 2
|
||
|
Group: SMEserver/addon
|
||
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||
|
Prefix: %{_prefix}
|
||
|
BuildArchitectures: noarch
|
||
|
BuildRequires: smeserver-devtools
|
||
|
Requires: smeserver-release >= 11.0
|
||
|
AutoReqProv: no
|
||
|
|
||
|
%description
|
||
|
This perhaps ridiculous-seeming module was created to test routines that
|
||
|
manipulate random numbers by providing a known output from rand. Given a
|
||
|
list of seeds with srand, it will return each in turn. After seeded
|
||
|
random numbers are exhausted, it will always return 0. Seed numbers must
|
||
|
be of a form that meets the expected output from rand as called with no
|
||
|
arguments -- i.e. they must be between 0 (inclusive) and 1 (exclusive).
|
||
|
In order to facilitate generating and testing a nearly-one number, this
|
||
|
module exports the function oneish, which returns a number just
|
||
|
fractionally less than one.
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
||
|
- Initial code - create RPM [SME:99999]
|
||
|
|
||
|
%prep
|
||
|
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
|
||
|
%install
|
||
|
rm -rf $RPM_BUILD_ROOT
|
||
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||
|
rm -f %{name}-%{version}-filelist
|
||
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||
|
> %{name}-%{version}-filelist
|
||
|
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
||
|
#--dir <dir> 'attr(755,user,grp)' \
|
||
|
#--file <file> 'attr(755,root,root)' \
|
||
|
|
||
|
%clean
|
||
|
cd ..
|
||
|
rm -rf %{name}-%{version}
|
||
|
|
||
|
%pre
|
||
|
|
||
|
%preun
|
||
|
|
||
|
%post
|
||
|
|
||
|
%postun
|
||
|
#uninstall
|
||
|
%files -f %{name}-%{version}-filelist
|
||
|
%defattr(-,root,root)
|