lemonldap-ng.spec 27 KB
Newer Older
1 2 3 4
#==============================================================================
# Specification file for LemonLDAP::NG
#
# Install LemonLDAP::NG modules, htdocs and scripts
5 6
# Authority: dries
# Upstream: Xavier Guimard <x,guimard$free,fr>
7 8 9 10 11
#==============================================================================

#==============================================================================
# Variables
#==============================================================================
12 13 14 15 16 17 18
%global real_version 2.0.0
%global cpan_version 2.0.0
%global cpan_common_version  %{cpan_version}
%global cpan_handler_version %{cpan_version}
%global cpan_manager_version %{cpan_version}
%global cpan_portal_version  %{cpan_version}

19
%global lm_prefix %{_prefix}
20 21 22 23 24
%global lm_sharedir %{_datadir}/lemonldap-ng
%global lm_examplesdir %{lm_sharedir}/examples
%global lm_vardir %{_localstatedir}/lib/lemonldap-ng
%global lm_confdir %{_sysconfdir}/lemonldap-ng
%global lm_storagefile %{lm_confdir}/lemonldap-ng.ini
25

26
# Apache configuration directory
27
%if 0%{?rhel}%{?fedora}
28
%global apache_confdir %{_sysconfdir}/httpd/conf.d
29
%else
30
%global apache_confdir %{_sysconfdir}/apache2/conf.d
31
%endif
32 33

# Apache User and Group
34
%if 0%{?rhel}%{?fedora}
35 36
%global lm_apacheuser apache
%global lm_apachegroup apache
37
%else
38 39
%global lm_apacheuser wwwrun
%global lm_apachegroup www
40
%endif
41

Clément OUDOT's avatar
Clément OUDOT committed
42 43
# Apache version
%if 0%{?rhel} >= 7
44
%global apache_version 2.4
Clément OUDOT's avatar
Clément OUDOT committed
45
%else
46
%global apache_version 2
Clément OUDOT's avatar
Clément OUDOT committed
47 48
%endif

49
%global lm_dnsdomain example.com
50 51 52 53

#==============================================================================
# Main package
#==============================================================================
Xavier Bachelot's avatar
Xavier Bachelot committed
54
Name:           lemonldap-ng
55
Version:        %{real_version}
Clément OUDOT's avatar
Clément OUDOT committed
56
Release:        1%{?dist}
57
Summary:        LemonLDAP-NG WebSSO
Xavier Bachelot's avatar
Xavier Bachelot committed
58
License:        GPLv2+
Clément OUDOT's avatar
Clément OUDOT committed
59
URL:            http://lemonldap-ng.org
60
Source0:        https://release.ow2.org/lemonldap/%{name}-%{version}.tar.gz
61
BuildArch:      noarch
62

Clément OUDOT's avatar
Clément OUDOT committed
63
BuildRequires:  perl(Apache::Session)
64
BuildRequires:  perl(Authen::Captcha)
Clément OUDOT's avatar
Clément OUDOT committed
65 66 67
BuildRequires:  perl(Cache::Cache)
BuildRequires:  perl(Class::Inspector)
BuildRequires:  perl(Clone)
Clément OUDOT's avatar
Clément OUDOT committed
68
BuildRequires:  perl(Config::IniFiles)
Xavier Bachelot's avatar
Xavier Bachelot committed
69
BuildRequires:  perl(Convert::Base32)
70
BuildRequires:  perl(Convert::PEM)
Xavier Guimard's avatar
Xavier Guimard committed
71
BuildRequires:  perl(Crypt::OpenSSL::Bignum)
Clément OUDOT's avatar
Clément OUDOT committed
72 73
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509)
Clément OUDOT's avatar
Clément OUDOT committed
74
BuildRequires:  perl(Crypt::Rijndael)
Clément OUDOT's avatar
Clément OUDOT committed
75
BuildRequires:  perl(Digest::SHA)
Clément OUDOT's avatar
Clément OUDOT committed
76 77
BuildRequires:  perl(Email::Date::Format)
BuildRequires:  perl(Email::Sender)
Clément OUDOT's avatar
Clément OUDOT committed
78
BuildRequires:  perl(Env)
Clément OUDOT's avatar
Clément OUDOT committed
79 80 81 82 83 84 85
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(HTML::Template)
BuildRequires:  perl(IO::String)
BuildRequires:  perl(JSON)
BuildRequires:  perl(MIME::Entity)
BuildRequires:  perl(Mouse)
BuildRequires:  perl(Net::LDAP)
86
BuildRequires:  perl(Plack)
Clément OUDOT's avatar
Clément OUDOT committed
87 88
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Regexp::Common)
89 90
# https://bugzilla.redhat.com/show_bug.cgi?id=1644266
#BuildRequires:  perl(Sentry::Raven)
Clément OUDOT's avatar
Clément OUDOT committed
91 92 93 94 95 96 97
BuildRequires:  perl(SOAP::Lite)
BuildRequires:  perl(String::Random)
BuildRequires:  perl(Test::MockObject)
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Unicode::String)
BuildRequires:  perl(XML::LibXSLT)
BuildRequires:  perl(XML::Simple)
98
BuildRequires:  systemd
99

100 101 102 103 104 105
Requires: lemonldap-ng-conf = %{real_version}-%{release}
Requires: lemonldap-ng-doc = %{real_version}-%{release}
Requires: lemonldap-ng-handler = %{real_version}-%{release}
Requires: lemonldap-ng-manager = %{real_version}-%{release}
Requires: lemonldap-ng-portal = %{real_version}-%{release}
Requires: lemonldap-ng-test = %{real_version}-%{release}
106

107 108 109 110 111 112 113 114 115 116 117 118
# Setup requires filtering
%if 0%{?rhel} == 6
%filter_from_requires /perl(lasso/d; /perl(Net::OpenID/d; /perl(Web::ID/d; /perl(XML::LibXML/d; /perl(XML::LibXSLT/d; /perl(Convert::Base32/d; /perl(Sentry::Raven/d;
%filter_setup
%endif

%if 0%{?fedora} || 0%{?rhel} >= 7
%{?perl_default_filter}
%global __requires_exclude perl\\(lasso|perl\\(Net::OpenID|perl\\(Web::ID|perl\\(XML::LibXML|perl\\(XML::LibXSLT|perl\\(Convert::Base32|perl\\(Sentry::Raven
%endif


119
%description
120
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
Clément OUDOT's avatar
Clément OUDOT committed
121 122 123 124
simplifies the build of a protected area with a few changes in the
application. It manages both authentication and authorization and provides
headers for accounting. 
So you can have a full AAA protection for your web space as described below.
125

126 127 128
#==============================================================================
# Conf
#==============================================================================
129
%package conf
130
Summary:        LemonLDAP-NG configuration
131 132 133 134
Requires:       perl(Apache::Session)
Requires:       perl(IO::String)
Requires:       perl(Lemonldap::NG::Common) = %{cpan_common_version}
Requires:       perl(mod_perl2)
135
%if 0%{?rhel}%{?fedora}
136 137 138 139
Requires(post):  httpd
%else
Requires(post):  apache2
%endif
140

141 142 143
#==============================================================================
# Configuration
#==============================================================================
144
%description conf
145
This package contains the main storage configuration.
146 147 148 149
Requires:       perl(Apache::Session)
Requires:       perl(IO::String)
Requires:       perl(Lemonldap::NG::Common) = %{cpan_common_version}
Requires:       perl(mod_perl2)
150
%if 0%{?rhel}%{?fedora}
151 152 153 154
Requires(post):  httpd
%else
Requires(post):  apache2
%endif
155

156 157 158
#==============================================================================
# Documentation
#==============================================================================
159
%package doc
160
Summary:        LemonLDAP-NG documentation
161
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
162

163
%description doc
164 165 166
This package contains html documentation.

#==============================================================================
167 168
# Handler
#==============================================================================
169
%package handler
170
Summary:        LemonLDAP-NG handler
171
%if 0%{?rhel}%{?fedora}
172 173 174 175
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Handler) = %{cpan_handler_version}
176

177
%description handler
178 179 180 181 182
This package deploys the Apache Handler.

#==============================================================================
# Manager
#==============================================================================
183
%package manager
184
Summary:        LemonLDAP-NG administration interface
185 186
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Manager) = %{cpan_manager_version}
187

188
%description manager
189
This package deploys the administration interface and sessions explorer.
190 191 192 193

#==============================================================================
# Portal
#==============================================================================
194
%package portal
195
Summary:        LemonLDAP-NG authentication portal
196
%if 0%{?rhel}%{?fedora}
197 198 199 200
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Portal) = %{cpan_portal_version}
201

202
%description portal
203 204 205 206
This package deploys the authentication portal.

#==============================================================================
# Test
207
#==============================================================================
208
%package test
209
Summary:        LemonLDAP-NG test applications
210
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
211

212
%description test
213 214
This package deploys small test applications.

215 216 217
#==============================================================================
# FastCGI Server
#==============================================================================
218
%package fastcgi-server
219
Summary:        LemonLDAP-NG FastCGI Server
220
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
221
%if 0%{?rhel}%{?fedora}
222 223 224 225 226
Requires:       mod_fcgid
%else
Requires:       apache2-mod_fcgid
%endif
Requires:       perl(FCGI::ProcManager)
227

228
%description fastcgi-server
229 230
This package deploys files needed to start a FastCGI server.

Clément OUDOT's avatar
Clément OUDOT committed
231 232 233
#==============================================================================
# UWSGI Application
#==============================================================================
234
%package uwsgi-app
Clément OUDOT's avatar
Clément OUDOT committed
235
Summary:        LemonLDAP-NG UWSGI Application
Xavier Bachelot's avatar
Xavier Bachelot committed
236
Requires:       uwsgi-plugin-psgi
Clément OUDOT's avatar
Clément OUDOT committed
237

238
%description uwsgi-app
Clément OUDOT's avatar
Clément OUDOT committed
239 240 241
LemonLDAP::NG uWSGI server provides a replacement to LemonLDAP::NG FastCGI
server, using uWSGI instead of Plack FCGI.

242 243 244 245
#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
246
Summary:        LemonLDAP-NG Common Modules
Clément OUDOT's avatar
Clément OUDOT committed
247
Version:        %{cpan_common_version}
248

249
%description -n perl-Lemonldap-NG-Common
Xavier Bachelot's avatar
Xavier Bachelot committed
250 251
This package installs the configuration libraries used by other LemonLDAP::NG
modules.
252 253

#==============================================================================
254
# CPAN modules - Handler
255 256 257
#==============================================================================
%package -n perl-Lemonldap-NG-Handler
Summary:        LemonLDAP-NG Handler Modules
Clément OUDOT's avatar
Clément OUDOT committed
258
Version:        %{cpan_handler_version}
259 260

%description -n perl-Lemonldap-NG-Handler
Xavier Bachelot's avatar
Xavier Bachelot committed
261 262
This package installs the Apache module part (handler) used to protect web
areas.
263 264

#==============================================================================
265
# CPAN modules -  Manager
266 267 268
#==============================================================================
%package -n perl-Lemonldap-NG-Manager
Summary:        LemonLDAP-NG Manager Modules
Clément OUDOT's avatar
Clément OUDOT committed
269
Version:        %{cpan_manager_version}
270 271 272 273 274

%description -n perl-Lemonldap-NG-Manager
This package installs the administration interface (manager).

#==============================================================================
275
# CPAN modules - Portal
276 277 278
#==============================================================================
%package -n perl-Lemonldap-NG-Portal
Summary:        LemonLDAP-NG Portal Modules
Clément OUDOT's avatar
Clément OUDOT committed
279
Version:        %{cpan_portal_version}
280 281 282 283

%description -n perl-Lemonldap-NG-Portal
This package installs the authentication portal.

284
#==============================================================================
285
# Source preparation
286
#==============================================================================
287
%prep
Xavier Bachelot's avatar
Xavier Bachelot committed
288
%setup -n %{name}-%{real_version} -q
289

Clément OUDOT's avatar
Clément OUDOT committed
290

291
#==============================================================================
292
# Building
293
#==============================================================================
294
%build
Xavier Bachelot's avatar
Xavier Bachelot committed
295 296 297
%{__make} %{?_smp_mflags} configure \
    STORAGECONFFILE=%{lm_storagefile} \
    PERLOPTIONS="INSTALLDIRS=vendor"
298
%{__make} %{?_smp_mflags}
299

300
#==============================================================================
301
# Installation
302
#============================================================================
303
%install
304
%{__make} %{?_smp_mflags} install \
Xavier Bachelot's avatar
Xavier Bachelot committed
305 306 307 308
    DESTDIR=%{buildroot} \
    PREFIX=%{lm_prefix} \
    BINDIR=%{lm_sharedir}/bin \
    SBINDIR=%{lm_sharedir}/sbin \
309
    FASTCGISOCKDIR=%{_rundir}/llng-fastcgi-server \
Xavier Bachelot's avatar
Xavier Bachelot committed
310 311 312 313 314 315 316 317 318
    DOCUMENTROOT=%{lm_vardir} \
    EXAMPLESDIR=%{lm_examplesdir} \
    HANDLERDIR=%{lm_vardir}/handler \
    MANAGERDIR=%{lm_sharedir}/manager \
    STORAGECONFFILE=%{lm_storagefile} \
    TOOLSDIR=%{lm_sharedir}/ressources \
    CONFDIR=%{lm_confdir} \
    CRONDIR=%{_sysconfdir}/cron.d \
    DATADIR=%{lm_vardir} \
319 320
    INITDIR=%{_sysconfdir}/init.d \
    ETCDEFAULTDIR=%{_sysconfdir}/default \
Xavier Bachelot's avatar
Xavier Bachelot committed
321 322
    DNSDOMAIN=%{lm_dnsdomain} \
    APACHEVERSION=%{apache_version} \
323
    UWSGIYAMLDIR=%{_sysconfdir}/uwsgi/apps-available \
Xavier Bachelot's avatar
Xavier Bachelot committed
324 325
    LLNGAPPDIR=%{lm_sharedir}/llng-server \
    PROD=yes
326

327
# Remove some unwanted files
328 329 330
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name *.bak -exec rm -f {} \;
331

332 333
# Install files for FastCGI Server
mkdir -p %{buildroot}%{_unitdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
334 335 336 337 338 339
install -m644 fastcgi-server/systemd/llng-fastcgi-server.service \
    %{buildroot}%{_unitdir}
sed -i 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' \
    %{buildroot}%{_unitdir}/llng-fastcgi-server.service
sed -i 's:__SBINDIR__:%{lm_sharedir}/sbin:' \
    %{buildroot}%{_unitdir}/llng-fastcgi-server.service
340
rm -f %{buildroot}%{_sysconfdir}/init.d/llng-fastcgi-server
341 342

mkdir -p %{buildroot}%{_tmpfilesdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
343 344 345 346 347 348 349 350
install -m644 fastcgi-server/systemd/llng-fastcgi-server.tmpfile \
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
sed -i 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' \
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
sed -i 's:__USER__:%{lm_apacheuser}:' \
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
sed -i 's:__GROUP__:%{lm_apachegroup}:' \
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
351

Clément OUDOT's avatar
Clément OUDOT committed
352
# UWSGI Application
353
mkdir -p %{buildroot}%{_sysconfdir}/uwsgi/apps-available
Clément OUDOT's avatar
Clément OUDOT committed
354 355
mkdir -p %{buildroot}%{lm_sharedir}/llng-server

Clément OUDOT's avatar
Clément OUDOT committed
356
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
357 358 359
# Note: we do not use the APACHEUSER and APACHEGROUP in make install
# because it launches a 'chown', which is not permitted if RPM is not
# built as root
Clément OUDOT's avatar
Clément OUDOT committed
360
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
Xavier Bachelot's avatar
Xavier Bachelot committed
361 362 363 364 365 366
sed -i 's/nobody/%{lm_apacheuser}/' \
    %{buildroot}%{lm_sharedir}/bin/lmConfigEditor
sed -i 's/nobody/%{lm_apacheuser}/g' \
    %{buildroot}%{lm_sharedir}/bin/lemonldap-ng-cli
sed -i 's/nobody/%{lm_apacheuser}/g' \
    %{buildroot}%{_sysconfdir}/default/llng-fastcgi-server
367

368
# Set UNIX rights
Clément OUDOT's avatar
Clément OUDOT committed
369
mkdir -p %{buildroot}%{lm_vardir}/sessions/lock
370
mkdir -p %{buildroot}%{lm_vardir}/psessions/lock
371 372 373 374 375
chmod 750 %{buildroot}%{lm_vardir}/conf
chmod 640 %{buildroot}%{lm_vardir}/conf/*
chmod 640 %{buildroot}%{lm_storagefile}
chmod 770 %{buildroot}%{lm_vardir}/sessions
chmod 770 %{buildroot}%{lm_vardir}/sessions/lock
376 377
chmod 770 %{buildroot}%{lm_vardir}/psessions
chmod 770 %{buildroot}%{lm_vardir}/psessions/lock
378
chmod 770 %{buildroot}%{lm_vardir}/notifications
379
chmod 770 %{buildroot}%{lm_vardir}/captcha
380
chmod 775 %{buildroot}%{lm_sharedir}/sbin/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
381

Clément OUDOT's avatar
Clément OUDOT committed
382
# Touch for ghost
383 384 385 386
mkdir -p %buildroot%{apache_confdir}
touch %buildroot%{apache_confdir}/z-lemonldap-ng-handler.conf
touch %buildroot%{apache_confdir}/z-lemonldap-ng-manager.conf
touch %buildroot%{apache_confdir}/z-lemonldap-ng-portal.conf
387
touch %buildroot%{apache_confdir}/z-lemonldap-ng-test.conf
388

389 390 391 392
#==============================================================================
# Run test
#==============================================================================
%check
Xavier Bachelot's avatar
Xavier Bachelot committed
393 394 395 396 397 398
sed -i 's:^dirName.*:dirName = %{buildroot}%{lm_vardir}/conf:' \
    %{buildroot}%{lm_storagefile}
%{__make} %{?_smp_mflags} test \
    LLNG_DEFAULTCONFFILE=%{buildroot}%{lm_storagefile}
sed -i 's:^dirName.*:dirName = %{lm_vardir}/conf:' \
    %{buildroot}%{lm_storagefile}
399

400
#==============================================================================
401
# Post Installation
402
#==============================================================================
403
%post conf
Clément OUDOT's avatar
Clément OUDOT committed
404 405 406
# Create symlink in Apache configuration
# We use "z-lemonldap-ng-*" so that Apache read the files after "perl.conf"
if [ ! -e %{apache_confdir}/z-lemonldap-ng-handler.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
407 408
    ln -s %{lm_confdir}/handler-apache%{apache_version}.conf \
        %{apache_confdir}/z-lemonldap-ng-handler.conf || :
Clément OUDOT's avatar
Clément OUDOT committed
409 410
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
411 412
    ln -s %{lm_confdir}/manager-apache%{apache_version}.conf \
        %{apache_confdir}/z-lemonldap-ng-manager.conf || :
Clément OUDOT's avatar
Clément OUDOT committed
413 414
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
415 416
    ln -s %{lm_confdir}/portal-apache%{apache_version}.conf \
        %{apache_confdir}/z-lemonldap-ng-portal.conf || :
Clément OUDOT's avatar
Clément OUDOT committed
417
fi
418
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
419 420
    ln -s %{lm_confdir}/test-apache%{apache_version}.conf \
        %{apache_confdir}/z-lemonldap-ng-test.conf || :
421
fi
Clément OUDOT's avatar
Clément OUDOT committed
422 423 424
# Upgrade from previous version
# See http://lemonldap-ng.org/documentation/1.0/upgrade
if [ $1 -gt 1 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
425 426 427
    if [ -e %{lm_confdir}/storage.conf \
         -o -e %{lm_confdir}/apply.conf \
         -o -e %{lm_confdir}/apps-list.xml ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
428 429 430 431 432
        # Run migration script
        %{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
        # Fix ownership
        chgrp %{lm_apachegroup} %{lm_storagefile} || :
    fi
433
fi
434 435 436 437 438
# Set editor alternatives if it does not exist
update-alternatives --display editor > /dev/null 2>&1
if [ $? -ne 0 ] ; then
        update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
fi
439

440
#==============================================================================
441
# Pre uninstallation
442
#==============================================================================
443
%preun conf
Clément OUDOT's avatar
Clément OUDOT committed
444
# Package removal
445
if [ $1 -eq 0 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
446 447 448 449 450
    # Remove symlink in Apache configuration
    rm -f %{apache_confdir}/z-lemonldap-ng-handler.conf 2>&1 > /dev/null || :
    rm -f %{apache_confdir}/z-lemonldap-ng-manager.conf 2>&1 > /dev/null || :
    rm -f %{apache_confdir}/z-lemonldap-ng-portal.conf 2>&1 > /dev/null  || :
    rm -f %{apache_confdir}/z-lemonldap-ng-test.conf 2>&1 > /dev/null  || :
Clément OUDOT's avatar
Clément OUDOT committed
451 452 453
fi
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
454 455
    # Remove old symlink in Apache configuration
    rm -f %{apache_confdir}/z-lemonldap-ng.conf 2>&1 > /dev/null || :
456
fi
457

Clément OUDOT's avatar
Clément OUDOT committed
458

459
%files
460 461
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
462

463
%files conf
Clément OUDOT's avatar
Clément OUDOT committed
464 465
%dir %{lm_confdir}
%config %{lm_confdir}/for_etc_hosts
Clément OUDOT's avatar
Clément OUDOT committed
466 467 468 469
%config(noreplace) %{lm_confdir}/handler-apache%{apache_version}.conf
%config(noreplace) %{lm_confdir}/manager-apache%{apache_version}.conf
%config(noreplace) %{lm_confdir}/portal-apache%{apache_version}.conf
%config(noreplace) %{lm_confdir}/test-apache%{apache_version}.conf
470 471 472 473 474 475
%config(noreplace) %{lm_confdir}/handler-nginx.conf
%config(noreplace) %{lm_confdir}/manager-nginx.conf
%config(noreplace) %{lm_confdir}/nginx-lmlog.conf
%config(noreplace) %{lm_confdir}/nginx-lua-headers.conf
%config(noreplace) %{lm_confdir}/portal-nginx.conf
%config(noreplace) %{lm_confdir}/test-nginx.conf
Clément OUDOT's avatar
Clément OUDOT committed
476 477 478
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
479
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
480 481 482
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
Clément OUDOT's avatar
Clément OUDOT committed
483
%{lm_sharedir}/bin/convertConfig
484
%{_mandir}/man1/convertConfig*
485
%{lm_sharedir}/bin/importMetadata
Clément OUDOT's avatar
Clément OUDOT committed
486
%{lm_sharedir}/bin/lmMigrateConfFiles2ini
487
%{lm_sharedir}/bin/rotateOidcKeys
488
%dir %{lm_examplesdir}
Clément OUDOT's avatar
Clément OUDOT committed
489 490 491 492 493 494 495 496
%dir %{lm_sharedir}/ressources
%{lm_sharedir}/ressources/*
%defattr(-,root,%{lm_apachegroup},-)
%config(noreplace) %{lm_storagefile}
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/conf
%dir %{lm_vardir}/sessions
%dir %{lm_vardir}/sessions/lock
497 498
%dir %{lm_vardir}/psessions
%dir %{lm_vardir}/psessions/lock
499
%dir %{lm_vardir}/notifications
Clément OUDOT's avatar
Clément OUDOT committed
500
%defattr(640,%{lm_apacheuser},%{lm_apachegroup},-)
Clément OUDOT's avatar
Clément OUDOT committed
501
%config(noreplace) %{lm_vardir}/conf/lmConf-1.json
502

503
%files doc
504
%doc %{lm_vardir}/doc
505 506
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
507

508
%files handler
Clément OUDOT's avatar
Clément OUDOT committed
509 510
%{lm_sharedir}/bin/purgeLocalCache
%{_sysconfdir}/cron.d/lemonldap-ng-handler
511
%{lm_vardir}/handler
512
%{lm_examplesdir}/handler
513
%{lm_sharedir}/llng-server/llng-server.psgi
514

515
%files manager
Clément OUDOT's avatar
Clément OUDOT committed
516 517
%{lm_sharedir}/manager
%{lm_examplesdir}/manager
518
%{lm_sharedir}/bin/lmConfigEditor
519
%{lm_sharedir}/bin/lemonldap-ng-cli
520
%{_mandir}/man1/lemonldap-ng-cli*
521

522
%files portal
523
%{lm_vardir}/portal
Clément OUDOT's avatar
Clément OUDOT committed
524 525
%{lm_sharedir}/bin/purgeCentralCache
%{_sysconfdir}/cron.d/lemonldap-ng-portal
526
%{lm_examplesdir}/portal
527 528
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/captcha
529

530
%files test
531
%{lm_vardir}/test
532

533
%files fastcgi-server
534
%{lm_sharedir}/sbin/llng-fastcgi-server
535
%config(noreplace) %{_sysconfdir}/default/llng-fastcgi-server
536
%{_unitdir}/llng-fastcgi-server.service
537
%{_tmpfilesdir}/llng-fastcgi-server.conf
538
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
539
%dir %{_rundir}/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
540 541
%{lm_sharedir}/examples/llngapp.psgi

542
%files uwsgi-app
543
%{_sysconfdir}/uwsgi/apps-available/llng-server.yaml
544

545
%files -n perl-Lemonldap-NG-Common
546
%{_mandir}/man3/Lemonldap::NG::Common*.3pm.*
547 548
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
Clément OUDOT's avatar
Clément OUDOT committed
549
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
550 551

%files -n perl-Lemonldap-NG-Handler
552 553
%{_mandir}/man3/Lemonldap::NG::Handler*.3pm.*
%{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.*
554 555
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
556
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
557
%{perl_vendorlib}/Plack/Middleware/Auth/LemonldapNG.pm
558 559

%files -n perl-Lemonldap-NG-Manager
560
%{_mandir}/man3/Lemonldap::NG::Manager*.3pm.*
561 562 563 564
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
565
%{_mandir}/man3/Lemonldap::NG::Portal*.3pm.*
566 567
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
568

569
#==============================================================================
570
# Changelog
571
#==============================================================================
572
%changelog
Clément OUDOT's avatar
Clément OUDOT committed
573 574
* Fri Nov 30 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0-1
- Update to 2.0.0
575

Clément OUDOT's avatar
Clément OUDOT committed
576
* Fri Jul 20 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~beta1-1
Clément OUDOT's avatar
Clément OUDOT committed
577
- First beta version for 2.0.0
578

Clément OUDOT's avatar
Clément OUDOT committed
579 580
* Fri Jan 26 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha3-1
- Third alpha version for 2.0.0
581

Clément OUDOT's avatar
Clément OUDOT committed
582 583
* Tue Jan 23 2018 Clement Oudot <clem.oudot@gmail.com> - 1.9.15-1
- Update to 1.9.15
584

Clément OUDOT's avatar
Clément OUDOT committed
585 586
* Fri Nov 24 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.14-1
- Update to 1.9.14
587

588 589
* Fri Sep 29 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.13-1
- Update to 1.9.13
590

Clément OUDOT's avatar
Clément OUDOT committed
591 592
* Thu Sep 14 2017 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha2-1
- Second alpha version for 2.0.0
593

594 595
* Tue Sep 12 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.12-1
- Update to 1.9.12
596

Clément OUDOT's avatar
Clément OUDOT committed
597 598
* Fri Sep 01 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.11-1
- Update to 1.9.11
599

600 601
* Mon Jul 10 2017 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha1-1
- First alpha version for 2.0.0
602

Clément OUDOT's avatar
Clément OUDOT committed
603 604
* Fri May 19 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.10-1
- Update to 1.9.10
605

Clément OUDOT's avatar
Clément OUDOT committed
606 607
* Thu Mar 16 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.9-1
- Update to 1.9.9
608

609 610
* Thu Mar 02 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.8-1
- Update to 1.9.8
611

612 613
* Mon Dec 12 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.7-1
- Update to 1.9.7
614

Clément OUDOT's avatar
Clément OUDOT committed
615 616
* Fri Oct 14 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.6-1
- Update to 1.9.6
617

Clément OUDOT's avatar
Clément OUDOT committed
618
* Mon Oct 10 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.11-1
619
- Update to 1.4.11
620

621 622
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.5-1
- Update to 1.9.5
623

624 625
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.10-1
- Update to 1.4.10
626

Clément OUDOT's avatar
Clément OUDOT committed
627 628
* Tue Jun 14 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.4-1
- Update to 1.9.4
629

Clément OUDOT's avatar
Clément OUDOT committed
630 631
* Tue Jun 07 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.3-1
- Update to 1.9.3
632

633 634
* Fri Jun 03 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.9-1
- Update to 1.4.9
635

636 637
* Sun May 01 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.2-1
- Update to 1.9.2
638

639 640
* Wed Apr 27 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.8-1
- Update to 1.4.8
641

642 643
* Thu Mar 31 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.1-1
- Update to 1.9.1
644

645 646
* Thu Mar 17 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.7-1
- Update to 1.4.7
647

648
* Wed Mar 02 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.0-1
Clément OUDOT's avatar
Clément OUDOT committed
649
- Update to 1.9.0
650

651 652
* Mon Sep 28 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.6-1
- Update to 1.4.6
653

654 655
* Mon May 11 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.5-1
- Update to 1.4.5
656

Clément OUDOT's avatar
Clément OUDOT committed
657
* Wed Apr 15 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.4-1
Clément OUDOT's avatar
Clément OUDOT committed
658
- Update to 1.4.4
659

Clément OUDOT's avatar
Clément OUDOT committed
660 661 662
* Thu Dec 18 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.3-1
- Update to 1.4.3
- Support for CentOS 7
663

Clément OUDOT's avatar
Clément OUDOT committed
664 665
* Fri Oct 31 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.2-1
- Update to 1.4.2
666

Clément OUDOT's avatar
Clément OUDOT committed
667 668
* Fri Jul 25 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.1-1
- Update to 1.4.1
669

Clément OUDOT's avatar
Clément OUDOT committed
670 671
* Fri Apr 18 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.0-1
- Update to 1.4.0
672

Clément OUDOT's avatar
Clément OUDOT committed
673 674
* Fri Mar 07 2014 Clement Oudot <clem.oudot@gmail.com> - 1.3.3-1
- Update to 1.3.3
675

Clément OUDOT's avatar
Clément OUDOT committed
676 677
* Thu Jan 23 2014 Clement Oudot <clem.oudot@gmail.com> - 1.3.2-1
- Update to 1.3.2
678

Clément OUDOT's avatar
Clément OUDOT committed
679 680
* Mon Nov 11 2013 Clement Oudot <clem.oudot@gmail.com> - 1.3.1-1
- Update to 1.3.1
681

Clément OUDOT's avatar
Clément OUDOT committed
682 683
* Sat Nov 2 2013 Clement Oudot <clem.oudot@gmail.com> - 1.3.0-1
- Update to 1.3.0
684

Clément OUDOT's avatar
Clément OUDOT committed
685 686
* Mon Aug 26 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.5-1
- Update to 1.2.5
687

Clément OUDOT's avatar
Clément OUDOT committed
688 689
* Tue Apr 23 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.4-1
- Update to 1.2.4
690

Clément OUDOT's avatar
Clément OUDOT committed
691 692
* Fri Feb 08 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.3-1
- Update to 1.2.3
693

694 695
* Mon Sep 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.2-1
- Update to 1.2.2
696

697
* Thu Jul 05 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.1-1
698
- Update to 1.2.1
699

700
* Sun Jun 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.0-1
701
- Update to 1.2.0
702

703 704
* Fri Oct 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.2-1
- Update to 1.1.2
705

706 707
* Fri Jul 29 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.1-1
- Update to 1.1.1
708

Clément OUDOT's avatar
Clément OUDOT committed
709 710
* Fri Jul 08 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.0-1
- Update to 1.1.0
711

712
* Thu Jun 30 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.6-1
Clément OUDOT's avatar
Clément OUDOT committed
713
- Update to 1.0.6
714

Clément OUDOT's avatar
Clément OUDOT committed
715 716
* Fri Apr 15 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.5-1
- Update to 1.0.5
717

Clément OUDOT's avatar
Clément OUDOT committed
718 719
* Tue Mar 22 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.4-1
- Update to 1.0.4
720

721 722
* Mon Mar 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.3-1
- Update to 1.0.3
723

724 725
* Mon Feb 28 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.2-1
- Update to 1.0.2
726

727 728
* Thu Dec 16 2010 Clement Oudot <clem.oudot@gmail.com> - 1.0.1-1
- Update to 1.0.1
729

Clément OUDOT's avatar
Clément OUDOT committed
730 731
* Fri Nov 26 2010 Clement Oudot <clem.oudot@gmail.com> - 1.0-1
- Update to 1.0
732

Clément OUDOT's avatar
Clément OUDOT committed
733 734 735
* Wed Jul 21 2010 Nicolas Chauvet <kwizart@gmail.com> - 0.9.4.1-3
- Fix compatibility with perl-LDAP 0.40
- Add BR perl(Auth::CAS)
736

Clément OUDOT's avatar
Clément OUDOT committed
737 738
* Mon Jul 12 2010 Nicolas Chauvet <nchauvet@linagora.com> - 0.9.4.1-2
- Protect lemonldap directories against word readability
739

Clément OUDOT's avatar
Clément OUDOT committed
740 741
* Mon Oct 12 2009 Nicolas Chauvet <nchauvet@linagora.com> - 0.9.4.1-1
- Update to 0.9.4.1
742

Clément OUDOT's avatar
Clément OUDOT committed
743 744 745 746
* Thu Sep 24 2009 Nicolas Chauvet <nchauvet@linagora.com> - 0.9.4-2
- Add Missing BuildRequires
- Remove filter for dependencies available in EPEL.
- use %%defattr to define ownership.
747

748
* Mon Jul 6 2009 Clement Oudot <coudot@linagora.com> - 0.9.4-1
Clément OUDOT's avatar
Clément OUDOT committed
749 750 751
- Upgrade to release 0.9.4
- Remove cronjob patch (included in 0.9.4)
- Split scriplets into subpackages
752
- Use conditions to build for other RPM distributions like OpenSuSE (thanks to clauded1)
753

754 755 756 757
* Mon Jan 12 2009 Clement Oudot <coudot@linagora.com> - 0.9.3.2-2
- Include cronjob patch
- Delete unwanted files (perllocal.pod, .packlist)
- Follow rpmfusion guidelines
758

759
* Fri Jan 9 2009 Clement Oudot <coudot@linagora.com> - 0.9.3.2-1
760
- Updated to release 0.9.3.2.
761
- Use internal version number for perl modules (compatibility with RPMforge packages)
762 763
- Merge with existing .spec file from RPMforge.
- Use the same directories as the Debian package.
764
- Create a symlink in Apache confguration.
Xavier Guimard's avatar
Xavier Guimard committed
765
- Create specific portal/manager/handler/conf packages independent from CPAN packages
766

767 768 769
* Thu Nov 20 2008 Jean-Christophe Toussaint <jean-christophe.toussaint@ac-nancy-metz.fr> - 0.9.2-1DSI
- Updated to release 0.9.2.
- Using official tar.gz from forge.
770

771
* Tue Oct 7 2008 David Hannequin <david.hannequin@linagora.com> 
772
- New spec file
773

774 775
* Sun Mar 02 2008 Dag Wieers <dag@wieers.com> - 0.85-1
- Updated to release 0.85.
776

777 778
* Tue Nov 13 2007 Dag Wieers <dag@wieers.com> - 0.84-1
- Updated to release 0.84.
779

780 781
* Wed May 02 2007 Dries Verachtert <dries@ulyssis.org> - 0.81-1
- Updated to release 0.81.
782

783 784
* Sun Apr 29 2007 Dries Verachtert <dries@ulyssis.org> - 0.75-1
- Initial package.