From 47476f1cbaf93dc613b27757ac6dbb5c09d3b485 Mon Sep 17 00:00:00 2001 From: Gabriel L. Somlo Date: Jan 12 2009 17:53:57 +0000 Subject: initial commit --- diff --git a/.cvsignore b/.cvsignore index e69de29..1bcc10b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Catalyst-Authentication-Store-DBIx-Class-0.1082.tar.gz diff --git a/FedoraLicense.txt b/FedoraLicense.txt new file mode 100644 index 0000000..6e29a1c --- /dev/null +++ b/FedoraLicense.txt @@ -0,0 +1,35 @@ +Date: Wed, 7 Jan 2009 21:40:28 -0700 +From: "Jason Kuri" +To: "L. Gabriel Somlo" +Subject: Re: license question re. Catalyst-Authentication-Store-DBIx-Class + +Hi Gabriel, + +Yes, it is under the same license. It was just an oversight that it +doesn't have the same information in the file. I will endeavor to add +it for an upcoming release + +Jay + +On Wed, Jan 7, 2009 at 8:28 PM, L. Gabriel Somlo wrote: +> Jason, +> +> I've created an RPM package of Catalyst-Authentication-Store-DBIx-Class +> and submitted it for inclusion in Fedora. +> +> I've been asked to clarify the licensing of SimpleDB.pm before the +> package can be included in the official Fedora repository. Both +> User.pm and Class.pm contain information about licensing directly +> within the respective files, but SimpleDB.pm does not. +> +> Can you quickly confirm that SimpleDB.pm is subject to the same +> licensing terms as the other two modules ? +> +> Also, would you consider adding a licensing blurb directly within +> SimpleDB.pm to avoid any similar questions in the future ? :) +> +> Thanks much, +> +> --Gabriel +> + diff --git a/import.log b/import.log new file mode 100644 index 0000000..bbd1ccc --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Catalyst-Authentication-Store-DBIx-Class-0_1082-2_fc10:F-9:perl-Catalyst-Authentication-Store-DBIx-Class-0.1082-2.fc10.src.rpm:1231782810 diff --git a/perl-Catalyst-Authentication-Store-DBIx-Class.spec b/perl-Catalyst-Authentication-Store-DBIx-Class.spec new file mode 100644 index 0000000..e27c96a --- /dev/null +++ b/perl-Catalyst-Authentication-Store-DBIx-Class.spec @@ -0,0 +1,88 @@ +Name: perl-Catalyst-Authentication-Store-DBIx-Class +Version: 0.1082 +Release: 2%{?dist} +Summary: A storage class for Catalyst Authentication using DBIx::Class +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Catalyst-Authentication-Store-DBIx-Class/ +Source0: http://search.cpan.org/CPAN/authors/id/J/JA/JAYK/Catalyst-Authentication-Store-DBIx-Class-%{version}.tar.gz +Source1: FedoraLicense.txt +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +BuildRequires: perl(DBIx::Class) +BuildRequires: perl(Catalyst::Runtime) +BuildRequires: perl(Catalyst::Plugin::Authentication) +BuildRequires: perl(Catalyst::Model::DBIC::Schema) +# required for tests +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +BuildRequires: perl(Test::WWW::Mechanize::Catalyst) +BuildRequires: perl(DBD::SQLite) +BuildRequires: perl(Catalyst::Plugin::Session::State::Cookie) +BuildRequires: perl(Catalyst::Plugin::Authorization::Roles) + +%description +The Catalyst::Authentication::Store::DBIx::Class class provides access +to authentication information stored in a database via DBIx::Class. + +%prep +%setup -q -n Catalyst-Authentication-Store-DBIx-Class-%{version} +# fix up .t files to shut up rpmlint +%{__sed} -i 's|#!perl|#!/usr/bin/perl|' t/*.t +# clarification on SimpleDB.pm licensing +%{__install} -m 0644 %{SOURCE1} . + +# make sure doc/tests don't generate provides +# note we first filter out the bits in _docdir... +cat << \EOF > %{name}-prov +#!/bin/sh +%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_provides %{_builddir}/Catalyst-Authentication-Store-DBIx-Class-%{version}/%{name}-prov +chmod +x %{__perl_provides} + +cat << \EOF > %{name}-req +#!/bin/sh +%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` +EOF + +%define __perl_requires %{_builddir}/Catalyst-Authentication-Store-DBIx-Class-%{version}/%{name}-req +chmod +x %{__perl_requires} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +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 +TEST_POD=1 make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc FedoraLicense.txt Changes README t/ +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Mon Jan 5 2009 Gabriel Somlo 0.1082-2 +- added FedoraLicense.txt, clarifying licensing on SimpleDB.pm module + +* Mon Jan 5 2009 Gabriel Somlo 0.1082-1 +- initial specfile based on cpan2rpm and other catalyst examples by Chris Weyl diff --git a/sources b/sources index e69de29..84d5133 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c057bed16d46cd5ac73fdbd0d22b1643 Catalyst-Authentication-Store-DBIx-Class-0.1082.tar.gz