Code Monkey home page Code Monkey logo

apache-session-nosql's People

Contributors

coudot avatar guimard avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

vazaha-nl lbjw

apache-session-nosql's Issues

RPM package

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.