lemonldap-ng.spec 27.6 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
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
12

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
%global perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%global perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%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}

%global lm_prefix /usr
%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
30

31
# Apache configuration directory
32
%if 0%{?rhel}%{?fedora}
33
%global apache_confdir %{_sysconfdir}/httpd/conf.d
34
%else
35
%global apache_confdir /etc/apache2/conf.d
36
%endif
37
38

# Apache User and Group
39
%if 0%{?rhel}%{?fedora}
40
41
%global lm_apacheuser apache
%global lm_apachegroup apache
42
%else
43
44
%global lm_apacheuser wwwrun
%global lm_apachegroup www
45
%endif
46

Clément OUDOT's avatar
Clément OUDOT committed
47
48
# Apache version
%if 0%{?rhel} >= 7
49
%global apache_version 2.4
Clément OUDOT's avatar
Clément OUDOT committed
50
%else
51
%global apache_version 2
Clément OUDOT's avatar
Clément OUDOT committed
52
53
%endif

54
%global lm_dnsdomain example.com
55
56
57
58
59

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

Clément OUDOT's avatar
Clément OUDOT committed
68
BuildRequires:  perl(Apache::Session)
69
BuildRequires:  perl(Authen::Captcha)
Clément OUDOT's avatar
Clément OUDOT committed
70
71
72
BuildRequires:  perl(Cache::Cache)
BuildRequires:  perl(Class::Inspector)
BuildRequires:  perl(Clone)
Clément OUDOT's avatar
Clément OUDOT committed
73
BuildRequires:  perl(Config::IniFiles)
74
BuildRequires:  perl(Convert::PEM)
Yadd's avatar
Yadd committed
75
BuildRequires:  perl(Crypt::OpenSSL::Bignum)
Clément OUDOT's avatar
Clément OUDOT committed
76
77
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509)
Clément OUDOT's avatar
Clément OUDOT committed
78
BuildRequires:  perl(Crypt::Rijndael)
Clément OUDOT's avatar
Clément OUDOT committed
79
BuildRequires:  perl(Digest::SHA)
Clément OUDOT's avatar
Clément OUDOT committed
80
81
BuildRequires:  perl(Email::Date::Format)
BuildRequires:  perl(Email::Sender)
Clément OUDOT's avatar
Clément OUDOT committed
82
BuildRequires:  perl(Env)
Clément OUDOT's avatar
Clément OUDOT committed
83
84
85
86
87
88
89
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)
90
BuildRequires:  perl(Plack)
Clément OUDOT's avatar
Clément OUDOT committed
91
92
93
94
95
96
97
98
99
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Regexp::Common)
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)
100
BuildRequires:  systemd
101

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

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

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

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

146
147
148
149
150
#==============================================================================
# Documentation
#==============================================================================
%package -n lemonldap-ng-doc
Summary:        LemonLDAP-NG documentation
151
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
152
153
154
155
156

%description -n lemonldap-ng-doc
This package contains html documentation.

#==============================================================================
157
158
159
# Handler
#==============================================================================
%package -n lemonldap-ng-handler
160
Summary:        LemonLDAP-NG handler
161
%if 0%{?rhel}%{?fedora}
162
163
164
165
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Handler) = %{cpan_handler_version}
166
167
168
169
170
171
172
173
174

%description -n lemonldap-ng-handler
This package deploys the Apache Handler.

#==============================================================================
# Manager
#==============================================================================
%package -n lemonldap-ng-manager
Summary:        LemonLDAP-NG administration interface
175
176
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Manager) = %{cpan_manager_version}
177
178
179
180
181
182
183
184
185

%description -n lemonldap-ng-manager
This package deploys the adminsitration interface and sessions explorer.

#==============================================================================
# Portal
#==============================================================================
%package -n lemonldap-ng-portal
Summary:        LemonLDAP-NG authentication portal
186
%if 0%{?rhel}%{?fedora}
187
188
189
190
Requires:       crontabs
%endif
Requires:       lemonldap-ng-conf = %{real_version}-%{release}
Requires:       perl(Lemonldap::NG::Portal) = %{cpan_portal_version}
191
192
193
194
195
196

%description -n lemonldap-ng-portal
This package deploys the authentication portal.

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

%description -n lemonldap-ng-test
This package deploys small test applications.

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

%description -n lemonldap-ng-fastcgi-server
This package deploys files needed to start a FastCGI server.

Clément OUDOT's avatar
Clément OUDOT committed
221
222
223
224
225
#==============================================================================
# UWSGI Application
#==============================================================================
%package -n lemonldap-ng-uwsgi-app
Summary:        LemonLDAP-NG UWSGI Application
Xavier Bachelot's avatar
Xavier Bachelot committed
226
Requires:       uwsgi-plugin-psgi
Clément OUDOT's avatar
Clément OUDOT committed
227
228
229
230
231

%description -n lemonldap-ng-uwsgi-app
LemonLDAP::NG uWSGI server provides a replacement to LemonLDAP::NG FastCGI
server, using uWSGI instead of Plack FCGI.

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

239
%description -n perl-Lemonldap-NG-Common
240
241
242
This package installs the configuration libraries used by other LemonLDAP::NG modules.

#==============================================================================
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
250
251
252

%description -n perl-Lemonldap-NG-Handler
This package installs the Apache module part (handler) used to protect web areas.

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

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

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

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

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

# Remove unwanted provides/requires

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(lasso)/d' |\
284
285
286
287
288
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'
289
290
EOF

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

Clément OUDOT's avatar
Clément OUDOT committed
294
295
%if 0%{?rhel} >= 7
%{?perl_default_filter}
296
%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
297
298
%endif

299
#==============================================================================
300
# Building
301
#==============================================================================
302
%build
303
304
%{__make} %{?_smp_mflags} configure STORAGECONFFILE=%{lm_storagefile} PERLOPTIONS="INSTALLDIRS=vendor"
%{__make} %{?_smp_mflags}
305

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

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

338
339
340
341
342
# Install files for FastCGI Server
mkdir -p %{buildroot}%{_unitdir}
install -m644 fastcgi-server/systemd/llng-fastcgi-server.service %{buildroot}%{_unitdir}
sed -i 's:__FASTCGISOCKDIR__:/var/run/llng-fastcgi-server:' %{buildroot}%{_unitdir}/llng-fastcgi-server.service
sed -i 's:__SBINDIR__:/usr/share/lemonldap-ng/sbin:' %{buildroot}%{_unitdir}/llng-fastcgi-server.service
343
rm -f %{buildroot}/etc/init.d/llng-fastcgi-server
344
345
346
347
348
349

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m644 fastcgi-server/systemd/llng-fastcgi-server.tmpfile %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
sed -i 's:__FASTCGISOCKDIR__:/var/run/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
350

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

Clément OUDOT's avatar
Clément OUDOT committed
355
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
356
357
358
# 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
359
360
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{lm_sharedir}/bin/lmConfigEditor
361
sed -i 's/nobody/%{lm_apacheuser}/g' %{buildroot}%{lm_sharedir}/bin/lemonldap-ng-cli
362
sed -i 's/nobody/%{lm_apacheuser}/g' %{buildroot}/etc/default/llng-fastcgi-server
363

364
# Set UNIX rights
Clément OUDOT's avatar
Clément OUDOT committed
365
mkdir -p %{buildroot}%{lm_vardir}/sessions/lock
366
mkdir -p %{buildroot}%{lm_vardir}/psessions/lock
367
368
369
370
371
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
372
373
chmod 770 %{buildroot}%{lm_vardir}/psessions
chmod 770 %{buildroot}%{lm_vardir}/psessions/lock
374
chmod 770 %{buildroot}%{lm_vardir}/notifications
375
chmod 770 %{buildroot}%{lm_vardir}/captcha
376
chmod 775 %{buildroot}%{lm_sharedir}/sbin/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
377

Clément OUDOT's avatar
Clément OUDOT committed
378
# Touch for ghost
379
380
381
382
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
383
touch %buildroot%{apache_confdir}/z-lemonldap-ng-test.conf
384

385
386
387
388
389
390
#==============================================================================
# Run test
#==============================================================================
%check
sed -i 's:^dirName.*:dirName = %{buildroot}%{lm_vardir}/conf:' %{buildroot}%{lm_storagefile}
%{__make} %{?_smp_mflags} test LLNG_DEFAULTCONFFILE=%{buildroot}%{lm_storagefile}
391
sed -i 's:^dirName.*:dirName = %{lm_vardir}/conf:' %{buildroot}%{lm_storagefile}
392

393
#==============================================================================
394
# Post Installation
395
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
396
%post -n lemonldap-ng-conf
Clément OUDOT's avatar
Clément OUDOT committed
397
398
399
# 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
400
    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
401
402
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
403
    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
404
405
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
406
    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
407
fi
408
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
409
    ln -s %{lm_confdir}/test-apache%{apache_version}.conf %{apache_confdir}/z-lemonldap-ng-test.conf || :
410
fi
Clément OUDOT's avatar
Clément OUDOT committed
411
412
413
# 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
414
415
416
417
418
419
    if [ -e %{lm_confdir}/storage.conf -o -e %{lm_confdir}/apply.conf -o -e %{lm_confdir}/apps-list.xml ] ; then
        # Run migration script
        %{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
        # Fix ownership
        chgrp %{lm_apachegroup} %{lm_storagefile} || :
    fi
420
fi
421
422
423
424
425
# 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
426

427
#==============================================================================
428
# Pre uninstallation
429
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
430
%preun -n lemonldap-ng-conf
Clément OUDOT's avatar
Clément OUDOT committed
431
# Package removal
432
if [ $1 -eq 0 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
433
434
435
436
437
    # 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
438
439
440
fi
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
441
442
    # Remove old symlink in Apache configuration
    rm -f %{apache_confdir}/z-lemonldap-ng.conf 2>&1 > /dev/null || :
443
fi
444

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

446
447
%files
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
448
%doc changelog COPYING INSTALL README.md
449
450

%files -n lemonldap-ng-conf
451
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
452
453
%dir %{lm_confdir}
%config %{lm_confdir}/for_etc_hosts
Clément OUDOT's avatar
Clément OUDOT committed
454
455
456
457
%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
458
459
460
461
462
463
%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
464
465
466
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
467
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
468
469
470
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
Clément OUDOT's avatar
Clément OUDOT committed
471
%{lm_sharedir}/bin/convertConfig
472
%doc %{_mandir}/man1/convertConfig*
473
%{lm_sharedir}/bin/importMetadata
Clément OUDOT's avatar
Clément OUDOT committed
474
%{lm_sharedir}/bin/lmMigrateConfFiles2ini
475
%{lm_sharedir}/bin/rotateOidcKeys
476
%dir %{lm_examplesdir}
Clément OUDOT's avatar
Clément OUDOT committed
477
478
479
480
481
482
483
484
%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
485
486
%dir %{lm_vardir}/psessions
%dir %{lm_vardir}/psessions/lock
487
%dir %{lm_vardir}/notifications
Clément OUDOT's avatar
Clément OUDOT committed
488
%defattr(640,%{lm_apacheuser},%{lm_apachegroup},-)
Clément OUDOT's avatar
Clément OUDOT committed
489
%config(noreplace) %{lm_vardir}/conf/lmConf-1.json
490
491

%files -n lemonldap-ng-doc
492
%defattr(-,root,root,-)
493
%doc %{lm_vardir}/doc
Clément OUDOT's avatar
Clément OUDOT committed
494
%doc changelog COPYING INSTALL README.md
495
496

%files -n lemonldap-ng-handler
497
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
498
499
%{lm_sharedir}/bin/purgeLocalCache
%{_sysconfdir}/cron.d/lemonldap-ng-handler
500
%{lm_vardir}/handler
501
%{lm_examplesdir}/handler
502
%{lm_sharedir}/llng-server/llng-server.psgi
503
504

%files -n lemonldap-ng-manager
505
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
506
507
%{lm_sharedir}/manager
%{lm_examplesdir}/manager
508
%{lm_sharedir}/bin/lmConfigEditor
509
%{lm_sharedir}/bin/lemonldap-ng-cli
510
%doc %{_mandir}/man1/lemonldap-ng-cli*
511
512

%files -n lemonldap-ng-portal
513
%defattr(-,root,root,-)
514
%{lm_vardir}/portal
Clément OUDOT's avatar
Clément OUDOT committed
515
516
%{lm_sharedir}/bin/purgeCentralCache
%{_sysconfdir}/cron.d/lemonldap-ng-portal
517
%{lm_examplesdir}/portal
518
519
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/captcha
520

521
%files -n lemonldap-ng-test
522
%defattr(-,root,root,-)
523
%{lm_vardir}/test
524

525
526
527
528
%files -n lemonldap-ng-fastcgi-server
%defattr(-,root,root,-)
%{lm_sharedir}/sbin/llng-fastcgi-server
%config(noreplace) /etc/default/llng-fastcgi-server
529
%{_unitdir}/llng-fastcgi-server.service
530
%{_tmpfilesdir}/llng-fastcgi-server.conf
531
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
532
%dir /var/run/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
533
534
535
536
537
%{lm_sharedir}/examples/llngapp.psgi

%files -n lemonldap-ng-uwsgi-app
%defattr(-,root,root,-)
/etc/uwsgi/apps-available/llng-server.yaml
538

539
%files -n perl-Lemonldap-NG-Common
540
%defattr(-,root,root,-)
541
542
543
%doc %{_mandir}/man3/Lemonldap::NG::Common*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
Clément OUDOT's avatar
Clément OUDOT committed
544
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
545
546

%files -n perl-Lemonldap-NG-Handler
547
%defattr(-,root,root,-)
548
%doc %{_mandir}/man3/Lemonldap::NG::Handler*.3pm.gz
Yadd's avatar
Yadd committed
549
%doc %{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.gz
550
551
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
552
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
Yadd's avatar
Yadd committed
553
%{perl_vendorlib}/Plack/Middleware/Auth/
554
555

%files -n perl-Lemonldap-NG-Manager
556
%defattr(-,root,root,-)
557
558
559
560
561
%doc %{_mandir}/man3/Lemonldap::NG::Manager*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
562
%defattr(-,root,root,-)
563
564
565
%doc %{_mandir}/man3/Lemonldap::NG::Portal*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
566

567
#==============================================================================
568
# Changelog
569
#==============================================================================
570
%changelog
Clément OUDOT's avatar
Clément OUDOT committed
571
572
* 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
573
* Fri Jul 20 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~beta1-1
Clément OUDOT's avatar
Clément OUDOT committed
574
- First beta version for 2.0.0
Clément OUDOT's avatar
Clément OUDOT committed
575
576
577
578
579
580
* 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
581
582
* 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
583
584
* Thu Sep 14 2017 Clement Oudot <clem.oudot@gmail.com> - 2.0.0~alpha2-1
- Second alpha version for 2.0.0
585
586
* 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
587
588
* Fri Sep 01 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.11-1
- Update to 1.9.11
589
590
* 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
591
592
593
594
* 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
595
596
* Thu Mar 02 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.8-1
- Update to 1.9.8
597
598
* 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
599
600
* 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
601
* Mon Oct 10 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.11-1
602
- Update to 1.4.11
603
604
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.5-1
- Update to 1.9.5
605
606
* 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
607
608
* 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
609
610
* Tue Jun 07 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.3-1
- Update to 1.9.3
611
612
613
614
615
616
* 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
617
618
619
620
* 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
621
* Wed Mar 02 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.0-1
Clément OUDOT's avatar
Clément OUDOT committed
622
- Update to 1.9.0
623
624
625
626
* 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
627
* Wed Apr 15 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.4-1
Clément OUDOT's avatar
Clément OUDOT committed
628
629
630
631
- 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
632
633
634
635
* 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
636
637
638
639
640
641
642
643
* 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
644
645
646
647
648
649
650
651
* 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
652
653
* Mon Sep 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.2-1
- Update to 1.2.2
654
* Thu Jul 05 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.1-1
655
- Update to 1.2.1
656
* Sun Jun 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.0-1
657
658
659
660
661
- 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
662
663
* Fri Jul 08 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.0-1
- Update to 1.1.0
664
* Thu Jun 30 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.6-1
Clément OUDOT's avatar
Clément OUDOT committed
665
- Update to 1.0.6
Clément OUDOT's avatar
Clément OUDOT committed
666
667
* 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
668
669
* Tue Mar 22 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.4-1
- Update to 1.0.4
670
671
672
673
674
675
* 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
676
677
678
679
680
681
682
683
684
685
686
687
688
* 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.
689
* Mon Jul 6 2009 Clement Oudot <coudot@linagora.com> - 0.9.4-1
Clément OUDOT's avatar
Clément OUDOT committed
690
691
692
- Upgrade to release 0.9.4
- Remove cronjob patch (included in 0.9.4)
- Split scriplets into subpackages
693
- Use conditions to build for other RPM distributions like OpenSuSE (thanks to clauded1)
694
695
696
697
* 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
698
* Fri Jan 9 2009 Clement Oudot <coudot@linagora.com> - 0.9.3.2-1
699
- Updated to release 0.9.3.2.
700
- Use internal version number for perl modules (compatibility with RPMforge packages)
701
702
- Merge with existing .spec file from RPMforge.
- Use the same directories as the Debian package.
703
- Create a symlink in Apache confguration.
Yadd's avatar
Yadd committed
704
- Create specific portal/manager/handler/conf packages independent from CPAN packages
705
706
707
* 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.
708
* Tue Oct 7 2008 David Hannequin <david.hannequin@linagora.com> 
709
710
711
712
713
714
715
716
717
- 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.