generated from smedev/Template-for-SMEServer-Core-Perl
* Tue Dec 15 2015 Gavin Carr <gavin@openfusion.com.au> 1.01-1
- Specfile autogenerated by cpanspec 1.79.
This commit is contained in:
parent
f93fc2f58e
commit
ec044c79b6
BIN
Test-MockRandom-1.01.tar.gz
(Stored with Git LFS)
Normal file
BIN
Test-MockRandom-1.01.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,19 +1,33 @@
|
||||
%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
|
||||
Name: perl-Test-MockRandom
|
||||
Version: 1.01
|
||||
Release: 1%{?org_tag}%{?dist}
|
||||
Summary: Replaces random number generation with non-random number generation
|
||||
License: Apache Software License
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Test-MockRandom/
|
||||
Source0: http://localhost/cpan/authors/id/D/DA/DAGOLDEN/Test-MockRandom-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl >= 0:5.006
|
||||
BuildRequires: perl(Carp)
|
||||
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
|
||||
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
|
||||
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
|
||||
%setup -q -n Test-MockRandom-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%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)' \
|
||||
rm -rf %{buildroot}
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||
|
||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
cd ..
|
||||
rm -rf %{name}-%{version}
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%pre
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes CONTRIBUTING cpanfile dist.ini LICENSE META.json perlcritic.rc README tidyall.ini
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%preun
|
||||
|
||||
%post
|
||||
|
||||
%postun
|
||||
#uninstall
|
||||
%files -f %{name}-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
%changelog
|
||||
* Tue Dec 15 2015 Gavin Carr <gavin@openfusion.com.au> 1.01-1
|
||||
- Specfile autogenerated by cpanspec 1.79.
|
||||
|
Loading…
x
Reference in New Issue
Block a user