* Tue Dec 15 2015 Gavin Carr <gavin@openfusion.com.au> 1.01-1

- Specfile autogenerated by cpanspec 1.79.
This commit is contained in:
Jean-Philippe Pialasse 2025-01-20 23:57:22 -05:00
parent f93fc2f58e
commit ec044c79b6
2 changed files with 65 additions and 51 deletions

BIN
Test-MockRandom-1.01.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,19 +1,33 @@
%define name perl-Test-MockRandom Name: perl-Test-MockRandom
%define version 1.0 Version: 1.01
%define release 1 Release: 1%{?org_tag}%{?dist}
Summary: This is what perl-Test-MockRandom does. Summary: Replaces random number generation with non-random number generation
Name: %{name} License: Apache Software License
Version: %{version} Group: Development/Libraries
Release: %{release}%{?dist} URL: http://search.cpan.org/dist/Test-MockRandom/
Source: %{name}-%{version}.tar.gz Source0: http://localhost/cpan/authors/id/D/DA/DAGOLDEN/Test-MockRandom-%{version}.tar.gz
License: GNU GPL version 2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Group: SMEserver/addon BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot BuildRequires: perl-interpreter
Prefix: %{_prefix} BuildRequires: perl-devel
BuildArchitectures: noarch BuildRequires: perl-generators
BuildRequires: smeserver-devtools BuildRequires: perl >= 0:5.006
Requires: smeserver-release >= 11.0 BuildRequires: perl(Carp)
AutoReqProv: no BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Pod::Man)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
Requires: perl(Carp)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Autoreq: no
%if %{rhel} >= 8
Provides: perl(Test::MockRandom) = %{version}
%endif
%description %description
This perhaps ridiculous-seeming module was created to test routines that This perhaps ridiculous-seeming module was created to test routines that
@ -26,38 +40,35 @@ In order to facilitate generating and testing a nearly-one number, this
module exports the function oneish, which returns a number just module exports the function oneish, which returns a number just
fractionally less than one. fractionally less than one.
%changelog
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
- Initial code - create RPM [SME:99999]
%prep %prep
%setup -q -n Test-MockRandom-%{version}
%setup -q
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf %{buildroot}
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
rm -f %{name}-%{version}-filelist make pure_install PERL_INSTALL_ROOT=%{buildroot}
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist find %{buildroot} -type f -name .packlist -exec rm -f {} \;
#echo "%doc COPYING" >> %{name}-%{version}-filelist find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \ %{_fixperms} %{buildroot}/*
%check
make test
%clean %clean
cd .. rm -rf %{buildroot}
rm -rf %{name}-%{version}
%pre %files
%defattr(-,root,root,-)
%doc Changes CONTRIBUTING cpanfile dist.ini LICENSE META.json perlcritic.rc README tidyall.ini
%{perl_vendorlib}/*
%{_mandir}/man3/*
%preun %changelog
* Tue Dec 15 2015 Gavin Carr <gavin@openfusion.com.au> 1.01-1
%post - Specfile autogenerated by cpanspec 1.79.
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)