lemonldapng / apache-session-nosql Goto Github PK
View Code? Open in Web Editor NEWApache::Session::NoSQL Perl module
Home Page: http://search.cpan.org/dist/Apache-Session-NoSQL/
License: Other
Apache::Session::NoSQL Perl module
Home Page: http://search.cpan.org/dist/Apache-Session-NoSQL/
License: Other
Proposed spec file:
#==============================================================================
# Specification file for Apache::Session::LDAP
#==============================================================================
%define real_name Apache-Session-NoSQL
%define real_version 0.1
#==============================================================================
# Main package
#==============================================================================
Name: perl-%{real_name}
Version: %{real_version}
Release: 1%{?dist}
Summary: NoSQL implementation of Apache::Session
Group: Applications/System
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Apache-Session-NoSQL/
Source0: http://search.cpan.org/CPAN/authors/id/G/GU/GUIMARD/%{real_name}-%{real_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(Apache::Session)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(Apache::Session)
%description
NoSQL implementation of Apache::Session. Sessions are stored in NoSQL
bases, like Redis or Cassandra.
%prep
%setup -n %{real_name}-%{real_version} -q
# Redis or Cassandra not mandatory
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(Redis)/d' |\
sed -e '/perl(Net::Cassandra)/d'
EOF
%define __perl_requires %{_builddir}/%{real_name}-%{real_version}/%{name}-req
chmod +x %{__perl_requires}
%if 0%{?rhel} >= 7
%{?perl_default_filter}
%global __requires_exclude perl\\(Redis|perl\\(Net::Cassandra
%endif
%build
perl Makefile.PL INSTALLDIRS="vendor"
%{__make} %{?_smp_mflags}
%install
rm -rf %{buildroot}
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} install DESTDIR=%{buildroot}
# Remove some unwanted files
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
%check
%{__make} %{?_smp_mflags} test
%files
%defattr(-,root,root,-)
%doc %{_mandir}/man3/Apache::Session::*.3pm.gz
%{perl_vendorlib}/Apache/Session/*
%changelog
* Mon Jan 12 2015 Clement Oudot <[email protected]> - 0.1-1
- First package for 0.1
See also https://bugzilla.redhat.com/show_bug.cgi?id=1181654
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.