[perl-Apache-Session-NoSQL] Initial import (perl-Apache-Session-NoSQL-0.1-2)
by Paul Howarth
commit 4fd33d1a43ede1fece9906dffa89ed00ed87e59d
Author: Paul Howarth <paul(a)city-fan.org>
Date: Sun Feb 1 17:53:25 2015 +0000
Initial import (perl-Apache-Session-NoSQL-0.1-2)
NoSQL implementation of Apache::Session. Sessions are stored in NoSQL
bases, either Redis or Cassandra.
.gitignore | 1 +
perl-Apache-Session-NoSQL.spec | 128 ++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 130 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d7be0c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Apache-Session-NoSQL-[0-9.]*.tar.gz
diff --git a/perl-Apache-Session-NoSQL.spec b/perl-Apache-Session-NoSQL.spec
new file mode 100644
index 0000000..b40cf0e
--- /dev/null
+++ b/perl-Apache-Session-NoSQL.spec
@@ -0,0 +1,128 @@
+# Support drivers based on what's available
+%global have_cassandra 0
+%global have_redis ( "%{?rhel}" != "5" )
+
+Name: perl-Apache-Session-NoSQL
+Version: 0.1
+Release: 2%{?dist}
+Summary: NoSQL implementation of Apache::Session
+Group: Development/Libraries
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Apache-Session-NoSQL/
+Source0: http://search.cpan.org/CPAN/authors/id/G/GU/GUIMARD/Apache-Session-NoSQL-...
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
+BuildArch: noarch
+# Module Build
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::MakeMaker)
+# Module Runtime
+BuildRequires: perl(Apache::Session)
+BuildRequires: perl(Apache::Session::Generate::MD5)
+BuildRequires: perl(Apache::Session::Lock::Null)
+BuildRequires: perl(Apache::Session::Serialize::Base64)
+BuildRequires: perl(base)
+BuildRequires: perl(strict)
+BuildRequires: perl(vars)
+# Test Suite
+BuildRequires: perl(Test::More)
+# Runtime
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires: perl(Apache::Session::NoSQL)-Driver = %{version}-%{release}
+
+%description
+NoSQL implementation of Apache::Session. Sessions are stored in NoSQL
+bases, either Redis or Cassandra.
+
+%if %{have_cassandra}
+%package -n perl-Apache-Session-Cassandra
+Summary: Cassandra driver for Apache::Session::NoSQL
+Group: Development/Libraries
+BuildRequires: perl(Net::Cassandra)
+Requires: perl-Apache-Session-NoSQL = %{version}-%{release}
+Provides: perl(Apache::Session::NoSQL)-Driver = %{version}-%{release}
+
+%description -n perl-Apache-Session-Cassandra
+%{summary}.
+%endif
+
+%if %{have_redis}
+%package -n perl-Apache-Session-Redis
+Summary: Redis driver for Apache::Session::NoSQL
+Group: Development/Libraries
+BuildRequires: perl(Redis)
+Requires: perl-Apache-Session-NoSQL = %{version}-%{release}
+Provides: perl(Apache::Session::NoSQL)-Driver = %{version}-%{release}
+
+%description -n perl-Apache-Session-Redis
+%{summary}.
+%endif
+
+%prep
+%setup -q -n Apache-Session-NoSQL-%{version}
+
+%if ! %{have_cassandra} && ! %{have_redis}
+%{error:At least one of Cassandra or Redis must be available}
+exit 1
+%endif
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -name .packlist -exec rm -f {} \;
+%{_fixperms} %{buildroot}
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%doc Changes README examples/
+%dir %{perl_vendorlib}/Apache/
+%dir %{perl_vendorlib}/Apache/Session/
+%dir %{perl_vendorlib}/Apache/Session/Store/
+%dir %{perl_vendorlib}/Apache/Session/Store/NoSQL/
+%{perl_vendorlib}/Apache/Session/NoSQL.pm
+%{perl_vendorlib}/Apache/Session/Store/NoSQL.pm
+%{_mandir}/man3/Apache::Session::NoSQL.3*
+%{_mandir}/man3/Apache::Session::Store::NoSQL.3*
+
+%if %{have_cassandra}
+%files -n perl-Apache-Session-Cassandra
+%{perl_vendorlib}/Apache/Session/Cassandra.pm
+%{perl_vendorlib}/Apache/Session/Store/NoSQL/Cassandra.pm
+%{_mandir}/man3/Apache::Session::Cassandra.3*
+%{_mandir}/man3/Apache::Session::Store::NoSQL::Cassandra.3*
+%else
+%exclude %{perl_vendorlib}/Apache/Session/Cassandra.pm
+%exclude %{perl_vendorlib}/Apache/Session/Store/NoSQL/Cassandra.pm
+%exclude %{_mandir}/man3/Apache::Session::Cassandra.3*
+%exclude %{_mandir}/man3/Apache::Session::Store::NoSQL::Cassandra.3*
+%endif
+
+%if %{have_redis}
+%files -n perl-Apache-Session-Redis
+%{perl_vendorlib}/Apache/Session/Redis.pm
+%{perl_vendorlib}/Apache/Session/Store/NoSQL/Redis.pm
+%{_mandir}/man3/Apache::Session::Redis.3*
+%{_mandir}/man3/Apache::Session::Store::NoSQL::Redis.3*
+%else
+%exclude %{perl_vendorlib}/Apache/Session/Redis.pm
+%exclude %{perl_vendorlib}/Apache/Session/Store/NoSQL/Redis.pm
+%exclude %{_mandir}/man3/Apache::Session::Redis.3*
+%exclude %{_mandir}/man3/Apache::Session::Store::NoSQL::Redis.3*
+%endif
+
+%changelog
+* Thu Jan 29 2015 Paul Howarth <paul(a)city-fan.org> - 0.1-2
+- Incorporate review feedback (#1186725)
+ - Ship Changes, README and examples files
+ - BR: perl(base)
+
+* Wed Jan 28 2015 Paul Howarth <paul(a)city-fan.org> - 0.1-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..4db1ef0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+57b877dde5f96c6a7934fe785ec036d1 Apache-Session-NoSQL-0.1.tar.gz
9 years, 2 months
[perl-B-Hooks-EndOfScope] Update to 0.14
by Paul Howarth
commit 4969698ed389db8a63666ed2ec099e4df2acf415
Author: Paul Howarth <paul(a)city-fan.org>
Date: Sun Feb 1 13:41:47 2015 +0000
Update to 0.14
- New upstream release 0.14
- Line numbers in shipped code are now the same as the repository source, for
easier debugging
- More accurate dynamic prereq declarations
- Use %license
perl-B-Hooks-EndOfScope.spec | 56 ++++++++++++++++++++++++++++-------------
sources | 2 +-
2 files changed, 39 insertions(+), 19 deletions(-)
---
diff --git a/perl-B-Hooks-EndOfScope.spec b/perl-B-Hooks-EndOfScope.spec
index 7a0925e..d1322da 100644
--- a/perl-B-Hooks-EndOfScope.spec
+++ b/perl-B-Hooks-EndOfScope.spec
@@ -1,6 +1,6 @@
Name: perl-B-Hooks-EndOfScope
-Version: 0.13
-Release: 5%{?dist}
+Version: 0.14
+Release: 1%{?dist}
License: GPL+ or Artistic
Group: Development/Libraries
Summary: Execute code after scope compilation finishes
@@ -9,31 +9,45 @@ Source0: http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-%{
Patch0: B-Hooks-EndOfScope-0.13-shellbangs.patch
BuildArch: noarch
# Build
-BuildRequires: perl(ExtUtils::CBuilder)
+BuildRequires: perl
+BuildRequires: perl(ExtUtils::CBuilder) >= 0.26
BuildRequires: perl(ExtUtils::MakeMaker)
-# Module
-# note: Variable::Magic only needed (version ≥ 0.48) by XS version
-# base, constant, Hash::Util::FieldHash and Scalar::Util only needed by PP version
+# Common Module Requirements
+BuildRequires: perl(Module::Implementation) >= 0.05
+BuildRequires: perl(Module::Runtime) >= 0.012
+BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006
+BuildRequires: perl(strict)
+BuildRequires: perl(warnings)
+# PP Implementation Only
BuildRequires: perl(base)
+BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(Hash::Util::FieldHash)
-BuildRequires: perl(Module::Implementation) >= 0.05
-BuildRequires: perl(Module::Runtime) >= 0.012
BuildRequires: perl(Scalar::Util)
-BuildRequires: perl(Sub::Exporter::Progressive) >= 0.001006
+BuildRequires: perl(Tie::Hash)
+BuildRequires: perl(Tie::StdHash)
+# XS Implementation Only
BuildRequires: perl(Variable::Magic) >= 0.48
# Test suite
-BuildRequires: perl(CPAN::Meta)
-BuildRequires: perl(CPAN::Meta::Requirements)
+BuildRequires: perl(Config)
BuildRequires: perl(Devel::Hide) >= 0.0007
+BuildRequires: perl(File::Glob)
+BuildRequires: perl(File::Spec)
+BuildRequires: perl(IPC::Open2)
BuildRequires: perl(Test::More) >= 0.89
+# Optional Tests
+BuildRequires: perl(CPAN::Meta) >= 2.120900
+BuildRequires: perl(CPAN::Meta::Prereqs)
# Release tests
%if 0%{!?perl_bootstrap:1} && 0%{?rhel} < 7
+BuildRequires: perl(IO::Handle)
+BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Pod::Coverage::TrustPod)
+BuildRequires: perl(Pod::Wordlist)
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::EOL)
-BuildRequires: perl(Test::Kwalitee)
+BuildRequires: perl(Test::Kwalitee) >= 1.21
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::Mojibake)
BuildRequires: perl(Test::NoTabs)
@@ -42,8 +56,6 @@ BuildRequires: perl(Test::Pod::Coverage) >= 1.08
BuildRequires: perl(Test::Pod::No404s)
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Spelling), hunspell-en
-BuildRequires: perl(Test::Vars)
-BuildRequires: perl(Test::Version)
%endif
# Runtime
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -78,13 +90,21 @@ make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
%endif
%files
-%doc Changes CONTRIBUTING LICENSE README README.md t/
+%license LICENSE
+%doc Changes CONTRIBUTING README t/
%{perl_vendorlib}/B/
-%{_mandir}/man3/B::Hooks::EndOfScope.3pm*
-%{_mandir}/man3/B::Hooks::EndOfScope::PP.3pm*
-%{_mandir}/man3/B::Hooks::EndOfScope::XS.3pm*
+%{_mandir}/man3/B::Hooks::EndOfScope.3*
+%{_mandir}/man3/B::Hooks::EndOfScope::PP.3*
+%{_mandir}/man3/B::Hooks::EndOfScope::XS.3*
%changelog
+* Sun Feb 1 2015 Paul Howarth <paul(a)city-fan.org> - 0.14-1
+- Update to 0.14
+ - Line numbers in shipped code are now the same as the repository source, for
+ easier debugging
+ - More accurate dynamic prereq declarations
+- Use %%license
+
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik(a)redhat.com> - 0.13-5
- Perl 5.20 re-rebuild of bootstrapped packages
diff --git a/sources b/sources
index 003be91..0112f1c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6cdaaa88a39054cd13aacad7bd2171da B-Hooks-EndOfScope-0.13.tar.gz
+9380361535fdade817fa5544df579f31 B-Hooks-EndOfScope-0.14.tar.gz
9 years, 2 months