lemonldap-ng.spec 27.1 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
19
%global real_name lemonldap-ng
%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}

20
%global lm_prefix %{_prefix}
21
22
23
24
25
%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
26

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

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

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

50
%global lm_dnsdomain example.com
51
52
53
54
55

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

Clément OUDOT's avatar
Clément OUDOT committed
64
BuildRequires:  perl(Apache::Session)
65
BuildRequires:  perl(Authen::Captcha)
Clément OUDOT's avatar
Clément OUDOT committed
66
67
68
BuildRequires:  perl(Cache::Cache)
BuildRequires:  perl(Class::Inspector)
BuildRequires:  perl(Clone)
Clément OUDOT's avatar
Clément OUDOT committed
69
BuildRequires:  perl(Config::IniFiles)
Xavier Bachelot's avatar
Xavier Bachelot committed
70
BuildRequires:  perl(Convert::Base32)
71
BuildRequires:  perl(Convert::PEM)
Yadd's avatar
Yadd committed
72
BuildRequires:  perl(Crypt::OpenSSL::Bignum)
Clément OUDOT's avatar
Clément OUDOT committed
73
74
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509)
Clément OUDOT's avatar
Clément OUDOT committed
75
BuildRequires:  perl(Crypt::Rijndael)
Clément OUDOT's avatar
Clément OUDOT committed
76
BuildRequires:  perl(Digest::SHA)
Clément OUDOT's avatar
Clément OUDOT committed
77
78
BuildRequires:  perl(Email::Date::Format)
BuildRequires:  perl(Email::Sender)
Clément OUDOT's avatar
Clément OUDOT committed
79
BuildRequires:  perl(Env)
Clément OUDOT's avatar
Clément OUDOT committed
80
81
82
83
84
85
86
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)
87
BuildRequires:  perl(Plack)
Clément OUDOT's avatar
Clément OUDOT committed
88
89
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Regexp::Common)
90
91
# https://bugzilla.redhat.com/show_bug.cgi?id=1644266
#BuildRequires:  perl(Sentry::Raven)
Clément OUDOT's avatar
Clément OUDOT committed
92
93
94
95
96
97
98
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)
99
BuildRequires:  systemd
100

101
102
103
104
105
106
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}
107
108

%description
109
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
Clément OUDOT's avatar
Clément OUDOT committed
110
111
112
113
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.
114

115
116
117
#==============================================================================
# Conf
#==============================================================================
118
%package conf
119
Summary:        LemonLDAP-NG configuration
120
121
122
123
Requires:       perl(Apache::Session)
Requires:       perl(IO::String)
Requires:       perl(Lemonldap::NG::Common) = %{cpan_common_version}
Requires:       perl(mod_perl2)
124
%if 0%{?rhel}%{?fedora}
125
126
127
128
Requires(post):  httpd
%else
Requires(post):  apache2
%endif
129

130
131
132
#==============================================================================
# Configuration
#==============================================================================
133
%description conf
134
This package contains the main storage configuration.
135
136
137
138
Requires:       perl(Apache::Session)
Requires:       perl(IO::String)
Requires:       perl(Lemonldap::NG::Common) = %{cpan_common_version}
Requires:       perl(mod_perl2)
139
%if 0%{?rhel}%{?fedora}
140
141
142
143
Requires(post):  httpd
%else
Requires(post):  apache2
%endif
144

145
146
147
#==============================================================================
# Documentation
#==============================================================================
148
%package doc
149
Summary:        LemonLDAP-NG documentation
150
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
151

152
%description doc
153
154
155
This package contains html documentation.

#==============================================================================
156
157
# Handler
#==============================================================================
158
%package handler
159
Summary:        LemonLDAP-NG handler
160
%if 0%{?rhel}%{?fedora}
161
162
163
164
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Handler) = %{cpan_handler_version}
165

166
%description handler
167
168
169
170
171
This package deploys the Apache Handler.

#==============================================================================
# Manager
#==============================================================================
172
%package manager
173
Summary:        LemonLDAP-NG administration interface
174
175
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Manager) = %{cpan_manager_version}
176

177
%description manager
178
This package deploys the administration interface and sessions explorer.
179
180
181
182

#==============================================================================
# Portal
#==============================================================================
183
%package portal
184
Summary:        LemonLDAP-NG authentication portal
185
%if 0%{?rhel}%{?fedora}
186
187
188
189
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Portal) = %{cpan_portal_version}
190

191
%description portal
192
193
194
195
This package deploys the authentication portal.

#==============================================================================
# Test
196
#==============================================================================
197
%package test
198
Summary:        LemonLDAP-NG test applications
199
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
200

201
%description test
202
203
This package deploys small test applications.

204
205
206
#==============================================================================
# FastCGI Server
#==============================================================================
207
%package fastcgi-server
208
Summary:        LemonLDAP-NG FastCGI Server
209
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
210
%if 0%{?rhel}%{?fedora}
211
212
213
214
215
Requires:       mod_fcgid
%else
Requires:       apache2-mod_fcgid
%endif
Requires:       perl(FCGI::ProcManager)
216

217
%description fastcgi-server
218
219
This package deploys files needed to start a FastCGI server.

Clément OUDOT's avatar
Clément OUDOT committed
220
221
222
#==============================================================================
# UWSGI Application
#==============================================================================
223
%package uwsgi-app
Clément OUDOT's avatar
Clément OUDOT committed
224
Summary:        LemonLDAP-NG UWSGI Application
Xavier Bachelot's avatar
Xavier Bachelot committed
225
Requires:       uwsgi-plugin-psgi
Clément OUDOT's avatar
Clément OUDOT committed
226

227
%description uwsgi-app
Clément OUDOT's avatar
Clément OUDOT committed
228
229
230
LemonLDAP::NG uWSGI server provides a replacement to LemonLDAP::NG FastCGI
server, using uWSGI instead of Plack FCGI.

231
232
233
234
#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
235
Summary:        LemonLDAP-NG Common Modules
Clément OUDOT's avatar
Clément OUDOT committed
236
Version:        %{cpan_common_version}
237

238
%description -n perl-Lemonldap-NG-Common
Xavier Bachelot's avatar
Xavier Bachelot committed
239
240
This package installs the configuration libraries used by other LemonLDAP::NG
modules.
241
242

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

%description -n perl-Lemonldap-NG-Handler
Xavier Bachelot's avatar
Xavier Bachelot committed
250
251
This package installs the Apache module part (handler) used to protect web
areas.
252
253

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

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

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

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

273
#==============================================================================
274
# Source preparation
275
#==============================================================================
276
%prep
277
278
279
280
281
282
283
284
%setup -n %{real_name}-%{real_version} -q

# Remove unwanted provides/requires

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(lasso)/d' |\
285
286
287
288
289
sed -e '/perl(Net::OpenID::Consumer)/d' |\
sed -e '/perl(Net::OpenID::Server)/d' |\
sed -e '/perl(Web::ID)/d' |\
sed -e '/perl(XML::LibXML)/d' |\
sed -e '/perl(XML::LibXSLT)/d'
290
291
EOF

292
%global __perl_requires %{_builddir}/%{name}-%{real_version}/%{name}-req
293
chmod +x %{__perl_requires}
294

Clément OUDOT's avatar
Clément OUDOT committed
295
296
%if 0%{?rhel} >= 7
%{?perl_default_filter}
297
%global __requires_exclude perl\\(lasso|perl\\(Net::OpenID|perl\\(Web::ID|perl\\(XML::LibXML|perl\\(XML::LibXSLT|perl\\(Convert::Base32|perl\\(Sentry::Raven
Clément OUDOT's avatar
Clément OUDOT committed
298
299
%endif

300
#==============================================================================
301
# Building
302
#==============================================================================
303
%build
Xavier Bachelot's avatar
Xavier Bachelot committed
304
305
306
%{__make} %{?_smp_mflags} configure \
    STORAGECONFFILE=%{lm_storagefile} \
    PERLOPTIONS="INSTALLDIRS=vendor"
307
%{__make} %{?_smp_mflags}
308

309
#==============================================================================
310
# Installation
311
#============================================================================
312
%install
313
%{__make} %{?_smp_mflags} install \
Xavier Bachelot's avatar
Xavier Bachelot committed
314
315
316
317
    DESTDIR=%{buildroot} \
    PREFIX=%{lm_prefix} \
    BINDIR=%{lm_sharedir}/bin \
    SBINDIR=%{lm_sharedir}/sbin \
318
    FASTCGISOCKDIR=%{_rundir}/llng-fastcgi-server \
Xavier Bachelot's avatar
Xavier Bachelot committed
319
320
321
322
323
324
325
326
327
    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} \
328
329
    INITDIR=%{_sysconfdir}/init.d \
    ETCDEFAULTDIR=%{_sysconfdir}/default \
Xavier Bachelot's avatar
Xavier Bachelot committed
330
331
    DNSDOMAIN=%{lm_dnsdomain} \
    APACHEVERSION=%{apache_version} \
332
    UWSGIYAMLDIR=%{_sysconfdir}/uwsgi/apps-available \
Xavier Bachelot's avatar
Xavier Bachelot committed
333
334
    LLNGAPPDIR=%{lm_sharedir}/llng-server \
    PROD=yes
335

336
# Remove some unwanted files
337
338
339
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name *.bak -exec rm -f {} \;
340

341
342
# Install files for FastCGI Server
mkdir -p %{buildroot}%{_unitdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
343
344
345
346
347
348
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
349
rm -f %{buildroot}%{_sysconfdir}/init.d/llng-fastcgi-server
350
351

mkdir -p %{buildroot}%{_tmpfilesdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
352
353
354
355
356
357
358
359
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
360

Clément OUDOT's avatar
Clément OUDOT committed
361
# UWSGI Application
362
mkdir -p %{buildroot}%{_sysconfdir}/uwsgi/apps-available
Clément OUDOT's avatar
Clément OUDOT committed
363
364
mkdir -p %{buildroot}%{lm_sharedir}/llng-server

Clément OUDOT's avatar
Clément OUDOT committed
365
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
366
367
368
# 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
369
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
Xavier Bachelot's avatar
Xavier Bachelot committed
370
371
372
373
374
375
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
376

377
# Set UNIX rights
Clément OUDOT's avatar
Clément OUDOT committed
378
mkdir -p %{buildroot}%{lm_vardir}/sessions/lock
379
mkdir -p %{buildroot}%{lm_vardir}/psessions/lock
380
381
382
383
384
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
385
386
chmod 770 %{buildroot}%{lm_vardir}/psessions
chmod 770 %{buildroot}%{lm_vardir}/psessions/lock
387
chmod 770 %{buildroot}%{lm_vardir}/notifications
388
chmod 770 %{buildroot}%{lm_vardir}/captcha
389
chmod 775 %{buildroot}%{lm_sharedir}/sbin/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
390

Clément OUDOT's avatar
Clément OUDOT committed
391
# Touch for ghost
392
393
394
395
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
396
touch %buildroot%{apache_confdir}/z-lemonldap-ng-test.conf
397

398
399
400
401
#==============================================================================
# Run test
#==============================================================================
%check
Xavier Bachelot's avatar
Xavier Bachelot committed
402
403
404
405
406
407
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}
408

409
#==============================================================================
410
# Post Installation
411
#==============================================================================
412
%post conf
Clément OUDOT's avatar
Clément OUDOT committed
413
414
415
# 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
416
417
    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
418
419
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
420
421
    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
422
423
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
424
425
    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
426
fi
427
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
428
429
    ln -s %{lm_confdir}/test-apache%{apache_version}.conf \
        %{apache_confdir}/z-lemonldap-ng-test.conf || :
430
fi
Clément OUDOT's avatar
Clément OUDOT committed
431
432
433
# 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
434
435
436
    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
437
438
439
440
441
        # Run migration script
        %{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
        # Fix ownership
        chgrp %{lm_apachegroup} %{lm_storagefile} || :
    fi
442
fi
443
444
445
446
447
# 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
448

449
#==============================================================================
450
# Pre uninstallation
451
#==============================================================================
452
%preun conf
Clément OUDOT's avatar
Clément OUDOT committed
453
# Package removal
454
if [ $1 -eq 0 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
455
456
457
458
459
    # 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
460
461
462
fi
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
463
464
    # Remove old symlink in Apache configuration
    rm -f %{apache_confdir}/z-lemonldap-ng.conf 2>&1 > /dev/null || :
465
fi
466

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

468
%files
469
470
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
471

472
%files conf
Clément OUDOT's avatar
Clément OUDOT committed
473
474
%dir %{lm_confdir}
%config %{lm_confdir}/for_etc_hosts
Clément OUDOT's avatar
Clément OUDOT committed
475
476
477
478
%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
479
480
481
482
483
484
%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
485
486
487
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
488
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
489
490
491
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
Clément OUDOT's avatar
Clément OUDOT committed
492
%{lm_sharedir}/bin/convertConfig
493
%{_mandir}/man1/convertConfig*
494
%{lm_sharedir}/bin/importMetadata
Clément OUDOT's avatar
Clément OUDOT committed
495
%{lm_sharedir}/bin/lmMigrateConfFiles2ini
496
%{lm_sharedir}/bin/rotateOidcKeys
497
%dir %{lm_examplesdir}
Clément OUDOT's avatar
Clément OUDOT committed
498
499
500
501
502
503
504
505
%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
506
507
%dir %{lm_vardir}/psessions
%dir %{lm_vardir}/psessions/lock
508
%dir %{lm_vardir}/notifications
Clément OUDOT's avatar
Clément OUDOT committed
509
%defattr(640,%{lm_apacheuser},%{lm_apachegroup},-)
Clément OUDOT's avatar
Clément OUDOT committed
510
%config(noreplace) %{lm_vardir}/conf/lmConf-1.json
511

512
%files doc
513
%doc %{lm_vardir}/doc
514
515
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
516

517
%files handler
Clément OUDOT's avatar
Clément OUDOT committed
518
519
%{lm_sharedir}/bin/purgeLocalCache
%{_sysconfdir}/cron.d/lemonldap-ng-handler
520
%{lm_vardir}/handler
521
%{lm_examplesdir}/handler
522
%{lm_sharedir}/llng-server/llng-server.psgi
523

524
%files manager
Clément OUDOT's avatar
Clément OUDOT committed
525
526
%{lm_sharedir}/manager
%{lm_examplesdir}/manager
527
%{lm_sharedir}/bin/lmConfigEditor
528
%{lm_sharedir}/bin/lemonldap-ng-cli
529
%{_mandir}/man1/lemonldap-ng-cli*
530

531
%files portal
532
%{lm_vardir}/portal
Clément OUDOT's avatar
Clément OUDOT committed
533
534
%{lm_sharedir}/bin/purgeCentralCache
%{_sysconfdir}/cron.d/lemonldap-ng-portal
535
%{lm_examplesdir}/portal
536
537
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/captcha
538

539
%files test
540
%{lm_vardir}/test
541

542
%files fastcgi-server
543
%{lm_sharedir}/sbin/llng-fastcgi-server
544
%config(noreplace) %{_sysconfdir}/default/llng-fastcgi-server
545
%{_unitdir}/llng-fastcgi-server.service
546
%{_tmpfilesdir}/llng-fastcgi-server.conf
547
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
548
%dir %{_rundir}/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
549
550
%{lm_sharedir}/examples/llngapp.psgi

551
%files uwsgi-app
552
%{_sysconfdir}/uwsgi/apps-available/llng-server.yaml
553

554
%files -n perl-Lemonldap-NG-Common
555
%{_mandir}/man3/Lemonldap::NG::Common*.3pm.*
556
557
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
Clément OUDOT's avatar
Clément OUDOT committed
558
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
559
560

%files -n perl-Lemonldap-NG-Handler
561
562
%{_mandir}/man3/Lemonldap::NG::Handler*.3pm.*
%{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.*
563
564
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
565
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
566
%{perl_vendorlib}/Plack/Middleware/Auth/LemonldapNG.pm
567
568

%files -n perl-Lemonldap-NG-Manager
569
%{_mandir}/man3/Lemonldap::NG::Manager*.3pm.*
570
571
572
573
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
574
%{_mandir}/man3/Lemonldap::NG::Portal*.3pm.*
575
576
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
577

578
#==============================================================================
579
# Changelog
580
#==============================================================================
581
%changelog
Clément OUDOT's avatar
Clément OUDOT committed
582
583
* Fri Nov 30 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0-1
- Update to 2.0.0
Clément OUDOT's avatar
Clément OUDOT committed
584
* Fri Jul 20 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~beta1-1
Clément OUDOT's avatar
Clément OUDOT committed
585
- First beta version for 2.0.0
Clément OUDOT's avatar
Clément OUDOT committed
586
587
588
589
590
591
* Fri Jan 26 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha3-1
- Third alpha version for 2.0.0
* Tue Jan 23 2018 Clement Oudot <clem.oudot@gmail.com> - 1.9.15-1
- Update to 1.9.15
* Fri Nov 24 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.14-1
- Update to 1.9.14
592
593
* Fri Sep 29 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.13-1
- Update to 1.9.13
Clément OUDOT's avatar
Clément OUDOT committed
594
595
* Thu Sep 14 2017 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha2-1
- Second alpha version for 2.0.0
596
597
* Tue Sep 12 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.12-1
- Update to 1.9.12
Clément OUDOT's avatar
Clément OUDOT committed
598
599
* Fri Sep 01 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.11-1
- Update to 1.9.11
600
601
* Mon Jul 10 2017 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha1-1
- First alpha version for 2.0.0
Clément OUDOT's avatar
Clément OUDOT committed
602
603
604
605
* Fri May 19 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.10-1
- Update to 1.9.10
* Thu Mar 16 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.9-1
- Update to 1.9.9
606
607
* Thu Mar 02 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.8-1
- Update to 1.9.8
608
609
* Mon Dec 12 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.7-1
- Update to 1.9.7
Clément OUDOT's avatar
Clément OUDOT committed
610
611
* Fri Oct 14 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.6-1
- Update to 1.9.6
Clément OUDOT's avatar
Clément OUDOT committed
612
* Mon Oct 10 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.11-1
613
- Update to 1.4.11
614
615
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.5-1
- Update to 1.9.5
616
617
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.10-1
- Update to 1.4.10
Clément OUDOT's avatar
Clément OUDOT committed
618
619
* Tue Jun 14 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.4-1
- Update to 1.9.4
Clément OUDOT's avatar
Clément OUDOT committed
620
621
* Tue Jun 07 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.3-1
- Update to 1.9.3
622
623
624
625
626
627
* Fri Jun 03 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.9-1
- Update to 1.4.9
* Sun May 01 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.2-1
- Update to 1.9.2
* Wed Apr 27 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.8-1
- Update to 1.4.8
628
629
630
631
* Thu Mar 31 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.1-1
- Update to 1.9.1
* Thu Mar 17 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.7-1
- Update to 1.4.7
632
* Wed Mar 02 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.0-1
Clément OUDOT's avatar
Clément OUDOT committed
633
- Update to 1.9.0
634
635
636
637
* Mon Sep 28 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.6-1
- Update to 1.4.6
* Mon May 11 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.5-1
- Update to 1.4.5
Clément OUDOT's avatar
Clément OUDOT committed
638
* Wed Apr 15 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.4-1
Clément OUDOT's avatar
Clément OUDOT committed
639
640
641
642
- Update to 1.4.4
* Thu Dec 18 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.3-1
- Update to 1.4.3
- Support for CentOS 7
Clément OUDOT's avatar
Clément OUDOT committed
643
644
645
646
* Fri Oct 31 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.2-1
- Update to 1.4.2
* Fri Jul 25 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.1-1
- Update to 1.4.1
Clément OUDOT's avatar
Clément OUDOT committed
647
648
649
650
651
652
653
654
* Fri Apr 18 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.0-1
- Update to 1.4.0
* Fri Mar 07 2014 Clement Oudot <clem.oudot@gmail.com> - 1.3.3-1
- Update to 1.3.3
* Thu Jan 23 2014 Clement Oudot <clem.oudot@gmail.com> - 1.3.2-1
- Update to 1.3.2
* Mon Nov 11 2013 Clement Oudot <clem.oudot@gmail.com> - 1.3.1-1
- Update to 1.3.1
Clément OUDOT's avatar
Clément OUDOT committed
655
656
657
658
659
660
661
662
* Sat Nov 2 2013 Clement Oudot <clem.oudot@gmail.com> - 1.3.0-1
- Update to 1.3.0
* Mon Aug 26 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.5-1
- Update to 1.2.5
* Tue Apr 23 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.4-1
- Update to 1.2.4
* Fri Feb 08 2013 Clement Oudot <clem.oudot@gmail.com> - 1.2.3-1
- Update to 1.2.3
663
664
* Mon Sep 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.2-1
- Update to 1.2.2
665
* Thu Jul 05 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.1-1
666
- Update to 1.2.1
667
* Sun Jun 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.0-1
668
669
670
671
672
- Update to 1.2.0
* Fri Oct 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.2-1
- Update to 1.1.2
* Fri Jul 29 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.1-1
- Update to 1.1.1
Clément OUDOT's avatar
Clément OUDOT committed
673
674
* Fri Jul 08 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.0-1
- Update to 1.1.0
675
* Thu Jun 30 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.6-1
Clément OUDOT's avatar
Clément OUDOT committed
676
- Update to 1.0.6
Clément OUDOT's avatar
Clément OUDOT committed
677
678
* Fri Apr 15 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.5-1
- Update to 1.0.5
Clément OUDOT's avatar
Clément OUDOT committed
679
680
* Tue Mar 22 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.4-1
- Update to 1.0.4
681
682
683
684
685
686
* Mon Mar 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.3-1
- Update to 1.0.3
* Mon Feb 28 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.2-1
- Update to 1.0.2
* Thu Dec 16 2010 Clement Oudot <clem.oudot@gmail.com> - 1.0.1-1
- Update to 1.0.1
Clément OUDOT's avatar
Clément OUDOT committed
687
688
689
690
691
692
693
694
695
696
697
698
699
* Fri Nov 26 2010 Clement Oudot <clem.oudot@gmail.com> - 1.0-1
- Update to 1.0
* 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)
* Mon Jul 12 2010 Nicolas Chauvet <nchauvet@linagora.com> - 0.9.4.1-2
- Protect lemonldap directories against word readability
* Mon Oct 12 2009 Nicolas Chauvet <nchauvet@linagora.com> - 0.9.4.1-1
- Update to 0.9.4.1
* 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.
700
* Mon Jul 6 2009 Clement Oudot <coudot@linagora.com> - 0.9.4-1
Clément OUDOT's avatar
Clément OUDOT committed
701
702
703
- Upgrade to release 0.9.4
- Remove cronjob patch (included in 0.9.4)
- Split scriplets into subpackages
704
- Use conditions to build for other RPM distributions like OpenSuSE (thanks to clauded1)
705
706
707
708
* 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
709
* Fri Jan 9 2009 Clement Oudot <coudot@linagora.com> - 0.9.3.2-1
710
- Updated to release 0.9.3.2.
711
- Use internal version number for perl modules (compatibility with RPMforge packages)
712
713
- Merge with existing .spec file from RPMforge.
- Use the same directories as the Debian package.
714
- Create a symlink in Apache confguration.
Yadd's avatar
Yadd committed
715
- Create specific portal/manager/handler/conf packages independent from CPAN packages
716
717
718
* 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.
719
* Tue Oct 7 2008 David Hannequin <david.hannequin@linagora.com> 
720
721
722
723
724
725
726
727
728
- New spec file
* Sun Mar 02 2008 Dag Wieers <dag@wieers.com> - 0.85-1
- Updated to release 0.85.
* Tue Nov 13 2007 Dag Wieers <dag@wieers.com> - 0.84-1
- Updated to release 0.84.
* Wed May 02 2007 Dries Verachtert <dries@ulyssis.org> - 0.81-1
- Updated to release 0.81.
* Sun Apr 29 2007 Dries Verachtert <dries@ulyssis.org> - 0.75-1
- Initial package.