lemonldap-ng.spec 26.7 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
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

16
%define real_name lemonldap-ng
Clément OUDOT's avatar
Clément OUDOT committed
17
%define real_version 2.0.0~alpha3
18
19
20
21
%define cpan_common_version  %{real_version}
%define cpan_handler_version %{real_version}
%define cpan_manager_version %{real_version}
%define cpan_portal_version  %{real_version}
22
23

%define lm_prefix /usr
Clément OUDOT's avatar
Clément OUDOT committed
24
%define lm_sharedir %{_datadir}/lemonldap-ng
25
%define lm_examplesdir %{lm_sharedir}/examples
Clément OUDOT's avatar
Clément OUDOT committed
26
27
28
%define lm_vardir %{_localstatedir}/lib/lemonldap-ng
%define lm_confdir %{_sysconfdir}/lemonldap-ng
%define lm_storagefile %{lm_confdir}/lemonldap-ng.ini
29

30
# Apache configuration directory
31
%if 0%{?rhl}%{?rhel}%{?fedora}
Clément OUDOT's avatar
Clément OUDOT committed
32
%define apache_confdir %{_sysconfdir}/httpd/conf.d
33
%else
34
%define apache_confdir /etc/apache2/conf.d
35
%endif
36
37

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

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

53
54
55
56
57
58
%define lm_dnsdomain example.com

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

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

101
%if 0%{?rhl}%{?rhel}%{?fedora}
Clément OUDOT's avatar
Clément OUDOT committed
102
103
Requires: perl(Apache::Session)
Requires: perl(IO::String)
104
Requires: perl(LWP::Protocol::https)
Clément OUDOT's avatar
Clément OUDOT committed
105
Requires: mod_perl
106
Requires: mod_fcgid
107
%else
108
109
Requires: cron
Requires: perl-Regexp-Assemble, perl-Cache-Cache, perl-Apache-Session, perl-XML-Simple, perl-Crypt-Rijndael, perl-IO-String
110
Requires: perl-ldap, perl-MIME-Base64, perl-DBI, perl-HTML-Template, perl-SOAP-Lite, perl-IPC-ShareLite, perl-Convert-ASN1, perl-Error, perl-Unicode-String
111
%endif
112

113
Requires: lemonldap-ng-conf >= %{real_version}
114
Requires: lemonldap-ng-doc >= %{real_version}
115
116
117
118
Requires: lemonldap-ng-handler >= %{real_version}
Requires: lemonldap-ng-manager >= %{real_version}
Requires: lemonldap-ng-portal >= %{real_version}
Requires: lemonldap-ng-test >= %{real_version}
119

120
%if 0%{?rhl}%{?rhel}%{?fedora}
Clément OUDOT's avatar
Clément OUDOT committed
121
122
123
124
Requires: perl(Lemonldap::NG::Common) >= %{cpan_common_version}
Requires: perl(Lemonldap::NG::Handler) >= %{cpan_handler_version}
Requires: perl(Lemonldap::NG::Manager) >= %{cpan_manager_version}
Requires: perl(Lemonldap::NG::Portal) >= %{cpan_portal_version}
125
%else
126
127
128
Requires: perl-Lemonldap-NG-Common >= %{cpan_common_version}
Requires: perl-Lemonldap-NG-Handler >= %{cpan_handler_version}
Requires: perl-Lemonldap-NG-Manager >= %{cpan_manager_version}
129
Requires: perl-Lemonldap-NG-Portal >= %{cpan_portal_version}
130
%endif
131
132

%description
133
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
Clément OUDOT's avatar
Clément OUDOT committed
134
135
136
137
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.
138

139
140
141
142
143
144
145
146
147
#==============================================================================
# Conf
#==============================================================================
%package -n lemonldap-ng-conf
Summary:        LemonLDAP-NG configuration

%description -n lemonldap-ng-conf
This package contains the main storage configuration.

148
149
150
151
152
153
154
155
156
157
#==============================================================================
# Documentation
#==============================================================================
%package -n lemonldap-ng-doc
Summary:        LemonLDAP-NG documentation

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

#==============================================================================
158
159
160
# Handler
#==============================================================================
%package -n lemonldap-ng-handler
161
Summary:        LemonLDAP-NG Handler
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185

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

#==============================================================================
# Manager
#==============================================================================
%package -n lemonldap-ng-manager
Summary:        LemonLDAP-NG administration interface

%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

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

#==============================================================================
# Test
186
#==============================================================================
187
188
189
190
191
192
%package -n lemonldap-ng-test
Summary:        LemonLDAP-NG test applications

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

193
194
195
196
197
#==============================================================================
# FastCGI Server
#==============================================================================
%package -n lemonldap-ng-fastcgi-server
Summary:        LemonLDAP-NG FastCGI Server
198
Requires:	perl-FCGI-ProcManager
199
200
201
202

%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
203
204
205
206
207
208
209
210
211
212
213
#==============================================================================
# UWSGI Application
#==============================================================================
%package -n lemonldap-ng-uwsgi-app
Summary:        LemonLDAP-NG UWSGI Application
Requires:	uwsgi-plugin-psgi

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

214
215
216
217
#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
218
Summary:        LemonLDAP-NG Common Modules
Clément OUDOT's avatar
Clément OUDOT committed
219
Version:        %{cpan_common_version}
220

221
%description -n perl-Lemonldap-NG-Common
222
223
224
This package installs the configuration libraries used by other LemonLDAP::NG modules.

#==============================================================================
225
# CPAN modules - Handler
226
227
228
#==============================================================================
%package -n perl-Lemonldap-NG-Handler
Summary:        LemonLDAP-NG Handler Modules
Clément OUDOT's avatar
Clément OUDOT committed
229
Version:        %{cpan_handler_version}
230
231
232
233
234

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

#==============================================================================
235
# CPAN modules -  Manager
236
237
238
#==============================================================================
%package -n perl-Lemonldap-NG-Manager
Summary:        LemonLDAP-NG Manager Modules
Clément OUDOT's avatar
Clément OUDOT committed
239
Version:        %{cpan_manager_version}
240
241
242
243
244

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

#==============================================================================
245
# CPAN modules - Portal
246
247
248
#==============================================================================
%package -n perl-Lemonldap-NG-Portal
Summary:        LemonLDAP-NG Portal Modules
Clément OUDOT's avatar
Clément OUDOT committed
249
Version:        %{cpan_portal_version}
250
251
252
253

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

254
#==============================================================================
255
# Source preparation
256
#==============================================================================
257
%prep
258
259
260
261
262
263
264
265
%setup -n %{real_name}-%{real_version} -q

# Remove unwanted provides/requires

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(lasso)/d' |\
266
267
268
269
270
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'
271
272
273
274
EOF

%define __perl_requires %{_builddir}/%{name}-%{real_version}/%{name}-req
chmod +x %{__perl_requires}
275

Clément OUDOT's avatar
Clément OUDOT committed
276
277
%if 0%{?rhel} >= 7
%{?perl_default_filter}
278
%global __requires_exclude perl\\(lasso|perl\\(Net::OpenID|perl\\(Web::ID|perl\\(XML::LibXML|perl\\(XML::LibXSLT
Clément OUDOT's avatar
Clément OUDOT committed
279
280
%endif

281
#==============================================================================
282
# Building
283
#==============================================================================
284
%build
285
286
%{__make} %{?_smp_mflags} configure STORAGECONFFILE=%{lm_storagefile} PERLOPTIONS="INSTALLDIRS=vendor"
%{__make} %{?_smp_mflags}
287

288
#==============================================================================
289
# Installation
290
#============================================================================
291
%install
292
%{__make} %{?_smp_mflags} install \
293
294
295
	DESTDIR=%{buildroot} \
	PREFIX=%{lm_prefix} \
	BINDIR=%{lm_sharedir}/bin \
296
	SBINDIR=%{lm_sharedir}/sbin \
Yadd's avatar
Yadd committed
297
	FASTCGISOCKDIR=/var/run/llng-fastcgi-server \
298
299
300
	DOCUMENTROOT=%{lm_vardir} \
	EXAMPLESDIR=%{lm_examplesdir} \
	HANDLERDIR=%{lm_vardir}/handler \
Yadd's avatar
Yadd committed
301
	MANAGERDIR=%{lm_sharedir}/manager \
302
303
304
	STORAGECONFFILE=%{lm_storagefile} \
	TOOLSDIR=%{lm_sharedir}/ressources \
	CONFDIR=%{lm_confdir} \
Clément OUDOT's avatar
Clément OUDOT committed
305
	CRONDIR=%{_sysconfdir}/cron.d \
306
	DATADIR=%{lm_vardir} \
307
308
	INITDIR=/etc/init.d \
	ETCDEFAULTDIR=/etc/default \
Clément OUDOT's avatar
Clément OUDOT committed
309
	DNSDOMAIN=%{lm_dnsdomain} \
Yadd's avatar
Yadd committed
310
	APACHEVERSION=%{apache_version} \
Clément OUDOT's avatar
Clément OUDOT committed
311
312
	UWSGIYAMLDIR=/etc/uwsgi/apps-available \
	LLNGAPPDIR=%{lm_sharedir}/llng-server \
Yadd's avatar
Yadd committed
313
	PROD=yes
314

315
# Remove some unwanted files
316
317
318
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name *.bak -exec rm -f {} \;
319

320
321
322
323
324
# 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
325
326
327
328
329
330

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
331

Clément OUDOT's avatar
Clément OUDOT committed
332
333
334
335
# 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
336
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
337
338
339
# 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
340
341
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{lm_sharedir}/bin/lmConfigEditor
342
sed -i 's/nobody/%{lm_apacheuser}/g' %{buildroot}%{lm_sharedir}/bin/lemonldap-ng-cli
343
sed -i 's/nobody/%{lm_apacheuser}/g' %{buildroot}/etc/default/llng-fastcgi-server
344

345
# Set UNIX rights
Clément OUDOT's avatar
Clément OUDOT committed
346
mkdir -p %{buildroot}%{lm_vardir}/sessions/lock
347
mkdir -p %{buildroot}%{lm_vardir}/psessions/lock
348
349
350
351
352
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
353
354
chmod 770 %{buildroot}%{lm_vardir}/psessions
chmod 770 %{buildroot}%{lm_vardir}/psessions/lock
355
chmod 770 %{buildroot}%{lm_vardir}/notifications
356
chmod 770 %{buildroot}%{lm_vardir}/captcha
357
chmod 775 %{buildroot}%{lm_sharedir}/sbin/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
358

Clément OUDOT's avatar
Clément OUDOT committed
359
# Touch for ghost
360
361
362
363
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
364
touch %buildroot%{apache_confdir}/z-lemonldap-ng-test.conf
365

366
367
368
369
370
371
#==============================================================================
# Run test
#==============================================================================
%check
sed -i 's:^dirName.*:dirName = %{buildroot}%{lm_vardir}/conf:' %{buildroot}%{lm_storagefile}
%{__make} %{?_smp_mflags} test LLNG_DEFAULTCONFFILE=%{buildroot}%{lm_storagefile}
372
sed -i 's:^dirName.*:dirName = %{lm_vardir}/conf:' %{buildroot}%{lm_storagefile}
373

374
#==============================================================================
375
# Post Installation
376
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
377
%post -n lemonldap-ng-conf
Clément OUDOT's avatar
Clément OUDOT committed
378
379
380
# 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
Clément OUDOT's avatar
Clément OUDOT committed
381
	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
382
383
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
Clément OUDOT's avatar
Clément OUDOT committed
384
	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
385
386
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
Clément OUDOT's avatar
Clément OUDOT committed
387
	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
388
fi
389
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
Clément OUDOT's avatar
Clément OUDOT committed
390
	ln -s %{lm_confdir}/test-apache%{apache_version}.conf %{apache_confdir}/z-lemonldap-ng-test.conf || :
391
fi
Clément OUDOT's avatar
Clément OUDOT committed
392
393
394
395
396
# Upgrade from previous version
# See http://lemonldap-ng.org/documentation/1.0/upgrade
if [ $1 -gt 1 ] ; then
	if [ -e %{lm_confdir}/storage.conf -o -e %{lm_confdir}/apply.conf -o -e %{lm_confdir}/apps-list.xml ] ; then
		# Run migration script
397
		%{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
Clément OUDOT's avatar
Clément OUDOT committed
398
399
400
		# Fix ownership
		chgrp %{lm_apachegroup} %{lm_storagefile} || :
	fi
401
fi
402
403
404
405
406
# 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
407

408
#==============================================================================
409
# Pre uninstallation
410
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
411
%preun -n lemonldap-ng-conf
Clément OUDOT's avatar
Clément OUDOT committed
412
# Package removal
413
414
if [ $1 -eq 0 ] ; then
	# Remove symlink in Apache configuration
415
416
417
	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  || :
418
	rm -f %{apache_confdir}/z-lemonldap-ng-test.conf 2>&1 > /dev/null  || :
Clément OUDOT's avatar
Clément OUDOT committed
419
420
421
422
fi
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
	# Remove old symlink in Apache configuration
423
	rm -f %{apache_confdir}/z-lemonldap-ng.conf 2>&1 > /dev/null || :
424
fi
425

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

427
428
%files
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
429
%doc changelog COPYING INSTALL README.md
430
431

%files -n lemonldap-ng-conf
432
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
433
434
%dir %{lm_confdir}
%config %{lm_confdir}/for_etc_hosts
Clément OUDOT's avatar
Clément OUDOT committed
435
436
437
438
%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
439
440
441
442
443
444
%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
445
446
447
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
448
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
449
450
451
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
Clément OUDOT's avatar
Clément OUDOT committed
452
%{lm_sharedir}/bin/convertConfig
453
%doc %{_mandir}/man1/convertConfig*
Clément OUDOT's avatar
Clément OUDOT committed
454
%{lm_sharedir}/bin/lmMigrateConfFiles2ini
455
%{lm_sharedir}/bin/rotateOidcKeys
456
%dir %{lm_examplesdir}
Clément OUDOT's avatar
Clément OUDOT committed
457
458
459
460
461
462
463
464
%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
465
466
%dir %{lm_vardir}/psessions
%dir %{lm_vardir}/psessions/lock
467
%dir %{lm_vardir}/notifications
Clément OUDOT's avatar
Clément OUDOT committed
468
%defattr(640,%{lm_apacheuser},%{lm_apachegroup},-)
Clément OUDOT's avatar
Clément OUDOT committed
469
%config(noreplace) %{lm_vardir}/conf/lmConf-1.json
470
471

%files -n lemonldap-ng-doc
472
%defattr(-,root,root,-)
473
%doc %{lm_vardir}/doc
Clément OUDOT's avatar
Clément OUDOT committed
474
%doc changelog COPYING INSTALL README.md
475
476

%files -n lemonldap-ng-handler
477
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
478
479
%{lm_sharedir}/bin/purgeLocalCache
%{_sysconfdir}/cron.d/lemonldap-ng-handler
480
%{lm_vardir}/handler
481
482
483
%{lm_examplesdir}/handler

%files -n lemonldap-ng-manager
484
%defattr(-,root,root,-)
Clément OUDOT's avatar
Clément OUDOT committed
485
486
%{lm_sharedir}/manager
%{lm_examplesdir}/manager
487
%{lm_sharedir}/bin/lmConfigEditor
488
%{lm_sharedir}/bin/lemonldap-ng-cli
489
%doc %{_mandir}/man1/lemonldap-ng-cli*
490
491

%files -n lemonldap-ng-portal
492
%defattr(-,root,root,-)
493
%{lm_vardir}/portal
Clément OUDOT's avatar
Clément OUDOT committed
494
495
%{lm_sharedir}/bin/purgeCentralCache
%{_sysconfdir}/cron.d/lemonldap-ng-portal
496
%{lm_examplesdir}/portal
497
498
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/captcha
499

500
%files -n lemonldap-ng-test
501
%defattr(-,root,root,-)
502
%{lm_vardir}/test
503

504
505
506
507
508
%files -n lemonldap-ng-fastcgi-server
%defattr(-,root,root,-)
%{lm_sharedir}/sbin/llng-fastcgi-server
%config(noreplace) /etc/default/llng-fastcgi-server
/etc/init.d/llng-fastcgi-server
509
%{_unitdir}/llng-fastcgi-server.service
510
%{_tmpfilesdir}/llng-fastcgi-server.conf
511
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
512
%dir /var/run/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
513
514
515
516
517
518
%{lm_sharedir}/examples/llngapp.psgi

%files -n lemonldap-ng-uwsgi-app
%defattr(-,root,root,-)
/etc/uwsgi/apps-available/llng-server.yaml
%{lm_sharedir}/llng-server/llng-server.psgi
519

520
%files -n perl-Lemonldap-NG-Common
521
%defattr(-,root,root,-)
522
523
524
%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
525
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
526
527

%files -n perl-Lemonldap-NG-Handler
528
%defattr(-,root,root,-)
529
%doc %{_mandir}/man3/Lemonldap::NG::Handler*.3pm.gz
Yadd's avatar
Yadd committed
530
%doc %{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.gz
531
532
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
533
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
Yadd's avatar
Yadd committed
534
%{perl_vendorlib}/Plack/Middleware/Auth/
535
536

%files -n perl-Lemonldap-NG-Manager
537
%defattr(-,root,root,-)
538
539
540
541
542
%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
543
%defattr(-,root,root,-)
544
545
546
%doc %{_mandir}/man3/Lemonldap::NG::Portal*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
547

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