diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a999b8a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/UUID-URandom-0.001.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 4b5da46..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# perl-UUID-URandom - -This Perl module provides a portable, secure generator of RFC-4122 version 4 -random UUIDs. \ No newline at end of file diff --git a/perl-UUID-URandom.spec b/perl-UUID-URandom.spec new file mode 100644 index 0000000..e5cacfb --- /dev/null +++ b/perl-UUID-URandom.spec @@ -0,0 +1,53 @@ +Name: perl-UUID-URandom +Version: 0.001 +Release: 1%{?dist} +Summary: UUIDs based on /dev/urandom +License: ASL 2.0 +URL: https://metacpan.org/release/UUID-URandom +Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/UUID-URandom-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.8 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Run-time: +BuildRequires: perl(Crypt::URandom) >= 0.36 +BuildRequires: perl(Exporter) >= 5.57 +# Tests: +BuildRequires: perl(File::Spec) +BuildRequires: perl(Test::More) >= 0.96 +# Optional tests: +# CPAN::Meta not helpful +# CPAN::Meta::Prereqs not helpful +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +This Perl module provides a portable, secure generator of RFC-4122 version 4 +random UUIDs. + +%prep +%setup -q -n UUID-URandom-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%license LICENSE +%doc Changes CONTRIBUTING.mkdn README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jun 27 2018 Petr Pisar 0.001-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..8929476 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (UUID-URandom-0.001.tar.gz) = ef7876eb0f7e1b794f81b18ce7d2d3c14f17e73fd5e5ab7d8cd7d5e8ea5f00aeee7f2d7bcb943554d7c1f4e695392d28260c91d7d5a750aa60a0b4a7730b2c16