Commit 11573429 authored by Chauvet Nicolas's avatar Chauvet Nicolas

Split requires into respectives sub-packages

This allows to install only the portal or manager or handler
into a dedicated host.

Basically lemonldap-ng-conf is the "common package dependency"
Signed-off-by: Chauvet Nicolas's avatarNicolas Chauvet <kwizart@gmail.com>
parent f3e020e0
......@@ -97,17 +97,6 @@ BuildRequires: perl(XML::LibXSLT)
BuildRequires: perl(XML::Simple)
BuildRequires: systemd
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires: perl(Apache::Session)
Requires: perl(IO::String)
Requires: mod_perl
Requires: mod_fcgid
%else
Requires: cron
Requires: perl-Regexp-Assemble, perl-Cache-Cache, perl-Apache-Session, perl-XML-Simple, perl-Crypt-Rijndael, perl-IO-String
Requires: perl-ldap, perl-MIME-Base64, perl-DBI, perl-HTML-Template, perl-SOAP-Lite, perl-IPC-ShareLite, perl-Convert-ASN1, perl-Error, perl-Unicode-String
%endif
Requires: lemonldap-ng-conf = %{real_version}-%{release}
Requires: lemonldap-ng-doc = %{real_version}-%{release}
Requires: lemonldap-ng-handler = %{real_version}-%{release}
......@@ -115,17 +104,6 @@ Requires: lemonldap-ng-manager = %{real_version}-%{release}
Requires: lemonldap-ng-portal = %{real_version}-%{release}
Requires: lemonldap-ng-test = %{real_version}-%{release}
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires: perl(Lemonldap::NG::Common) >= %{cpan_common_version}
Requires: perl(Lemonldap::NG::Handler) >= %{cpan_handler_version}
Requires: perl(Lemonldap::NG::Manager) >= %{cpan_manager_version}
Requires: perl(Lemonldap::NG::Portal) >= %{cpan_portal_version}
%else
Requires: perl-Lemonldap-NG-Common >= %{cpan_common_version}
Requires: perl-Lemonldap-NG-Handler >= %{cpan_handler_version}
Requires: perl-Lemonldap-NG-Manager >= %{cpan_manager_version}
Requires: perl-Lemonldap-NG-Portal >= %{cpan_portal_version}
%endif
%description
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
......@@ -139,6 +117,15 @@ So you can have a full AAA protection for your web space as described below.
#==============================================================================
%package -n lemonldap-ng-conf
Summary: LemonLDAP-NG configuration
Requires: perl(Apache::Session)
Requires: perl(IO::String)
Requires: perl(Lemonldap::NG::Common) = %{cpan_common_version}
Requires: perl(mod_perl2)
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires(post): httpd
%else
Requires(post): apache2
%endif
%description -n lemonldap-ng-conf
This package contains the main storage configuration.
......@@ -148,6 +135,7 @@ This package contains the main storage configuration.
#==============================================================================
%package -n lemonldap-ng-doc
Summary: LemonLDAP-NG documentation
Requires: lemonldap-ng-conf = %{real_version}-%{release}
%description -n lemonldap-ng-doc
This package contains html documentation.
......@@ -157,6 +145,7 @@ This package contains html documentation.
#==============================================================================
%package -n lemonldap-ng-fr-doc
Summary: LemonLDAP-NG French documentation
Requires: lemonldap-ng-conf = %{real_version}-%{release}
%description -n lemonldap-ng-fr-doc
This package contains html documentation translated in French.
......@@ -165,6 +154,12 @@ This package contains html documentation translated in French.
# Handler
#==============================================================================
%package -n lemonldap-ng-handler
Summary: LemonLDAP-NG handler
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires: crontabs
%endif
Requires: lemonldap-ng-conf = %{real_version}-%{release}
Requires: perl(Lemonldap::NG::Handler) = %{cpan_handler_version}
%description -n lemonldap-ng-handler
This package deploys the Apache Handler.
......@@ -174,6 +169,8 @@ This package deploys the Apache Handler.
#==============================================================================
%package -n lemonldap-ng-manager
Summary: LemonLDAP-NG administration interface
Requires: lemonldap-ng-conf = %{real_version}-%{release}
Requires: perl(Lemonldap::NG::Manager) = %{cpan_manager_version}
%description -n lemonldap-ng-manager
This package deploys the adminsitration interface and sessions explorer.
......@@ -183,6 +180,11 @@ This package deploys the adminsitration interface and sessions explorer.
#==============================================================================
%package -n lemonldap-ng-portal
Summary: LemonLDAP-NG authentication portal
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires: crontabs
%endif
Requires: lemonldap-ng-conf = %{real_version}-%{release}
Requires: perl(Lemonldap::NG::Portal) = %{cpan_portal_version}
%description -n lemonldap-ng-portal
This package deploys the authentication portal.
......@@ -192,6 +194,7 @@ This package deploys the authentication portal.
#==============================================================================
%package -n lemonldap-ng-test
Summary: LemonLDAP-NG test applications
Requires: lemonldap-ng-conf = %{real_version}-%{release}
%description -n lemonldap-ng-test
This package deploys small test applications.
......@@ -201,7 +204,13 @@ This package deploys small test applications.
#==============================================================================
%package -n lemonldap-ng-fastcgi-server
Summary: LemonLDAP-NG FastCGI Server
Requires: perl-FCGI-ProcManager
Requires: lemonldap-ng-conf = %{real_version}-%{release}
%if 0%{?rhl}%{?rhel}%{?fedora}
Requires: mod_fcgid
%else
Requires: apache2-mod_fcgid
%endif
Requires: perl(FCGI::ProcManager)
%description -n lemonldap-ng-fastcgi-server
This package deploys files needed to start a FastCGI server.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment