From 974969817b9ffb97fd2747d184cf0eaf2a566d37 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova Date: Thu, 26 Feb 2015 09:46:06 +0100 Subject: [PATCH] Initial import --- .gitignore | 1 + perl-DBIx-Class-Schema-Config.spec | 69 ++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 perl-DBIx-Class-Schema-Config.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd3620b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/DBIx-Class-Schema-Config-0.001011.tar.gz diff --git a/perl-DBIx-Class-Schema-Config.spec b/perl-DBIx-Class-Schema-Config.spec new file mode 100644 index 0000000..65565bf --- /dev/null +++ b/perl-DBIx-Class-Schema-Config.spec @@ -0,0 +1,69 @@ +Name: perl-DBIx-Class-Schema-Config +Version: 0.001011 +Release: 1%{?dist} +Summary: Credential Management for DBIx::Class +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/DBIx-Class-Schema-Config/ +Source0: http://www.cpan.org/authors/id/S/SY/SYMKAT/DBIx-Class-Schema-Config-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(inc::Module::Install) +BuildRequires: perl(Module::Install::Metadata) +BuildRequires: perl(Module::Install::WriteAll) +# Run-time +BuildRequires: perl(base) +BuildRequires: perl(Config::Any) >= 0.23 +BuildRequires: perl(DBIx::Class::Schema) +BuildRequires: perl(File::HomeDir) +BuildRequires: perl(Hash::Merge) +BuildRequires: perl(namespace::clean) +BuildRequires: perl(Storable) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(DBD::SQLite) +BuildRequires: perl(DBI) +BuildRequires: perl(DBIx::Class) >= 0.08100 +BuildRequires: perl(lib) +BuildRequires: perl(Test::More) +Requires: perl(Config::Any) >= 0.23 +Requires: perl(DBIx::Class) >= 0.08100 +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Config::Any\\)\s*$ + +%description +DBIx::Class::Schema::Config is a subclass of DBIx::Class::Schema that +allows the loading of credentials & configuration from a file. The actual +code itself would only need to know about the name used in the +configuration file. This aims to make it simpler for operations teams to +manage database credentials. + +%prep +%setup -q -n DBIx-Class-Schema-Config-%{version} +rm -r inc +sed -i -e '/^inc\// d' MANIFEST +find -type f -exec chmod -x {} + + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Feb 25 2015 Jitka Plesnikova - 0.001011-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources new file mode 100644 index 0000000..4ea75d9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +9f1d81ad60d1a426fa02c17516ec36c5 DBIx-Class-Schema-Config-0.001011.tar.gz