diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be4edac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/URI-db-0.19.tar.gz diff --git a/perl-URI-db.spec b/perl-URI-db.spec new file mode 100644 index 0000000..bded3cd --- /dev/null +++ b/perl-URI-db.spec @@ -0,0 +1,55 @@ +Name: perl-URI-db +Version: 0.19 +Release: 1%{?dist} +Summary: Perl support for database URIs +License: GPL+ or Artistic + +URL: https://metacpan.org/release/URI-db/ +Source0: https://cpan.metacpan.org/authors/id/D/DW/DWHEELER/URI-db-%{version}.tar.gz + +BuildArch: noarch +# build deps +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Module::Build) +BuildRequires: perl(warnings) +# run deps +BuildRequires: perl(base) +BuildRequires: perl(strict) +BuildRequires: perl(URI::Nested) >= 0.10 +# test deps +BuildRequires: perl(Test::More) >= 0.88 +BuildRequires: perl(URI) >= 1.40 +BuildRequires: perl(URI::QueryParam) +BuildRequires: perl(utf8) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +This class provides support for database URIs. They're inspired by +JDBC URIs and PostgreSQL URIs, though they're a bit more formal. +The specification for their format is documented in README.md. + +%prep +%setup -q -n URI-db-%{version} + +%build +%{__perl} Build.PL --installdirs=vendor +./Build + +%install +./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes README README.md +%{perl_vendorlib}/URI* +%{_mandir}/man3/URI* + +%changelog +* Fri Nov 16 2018 Emmanuel Seyman 0.19-1 +- Initial specfile, based on the one autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..edf137c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (URI-db-0.19.tar.gz) = 4263bc58acadfc61eb4269392e5924fa349138c6a14584ee754b12669787c22c6228a66034c191bd934126bc3120f10188f50daf5a5a81605efa89442093e146