lemonldap-ng.spec 25.4 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
%global lm_prefix %{_prefix}
13 14 15 16 17
%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
18

19
# Apache configuration directory
20
%if 0%{?rhel}%{?fedora}
21
%global apache_confdir %{_sysconfdir}/httpd/conf.d
22
%else
23
%global apache_confdir %{_sysconfdir}/apache2/conf.d
24
%endif
25 26

# Apache User and Group
27
%if 0%{?rhel}%{?fedora}
28 29
%global lm_apacheuser apache
%global lm_apachegroup apache
30
%else
31 32
%global lm_apacheuser wwwrun
%global lm_apachegroup www
33
%endif
34

Clément OUDOT's avatar
Clément OUDOT committed
35
# Apache version
36
%if 0%{?fedora} || 0%{?rhel} >= 7
37
%global apache_version 2.4
Clément OUDOT's avatar
Clément OUDOT committed
38
%else
39
%global apache_version 2
Clément OUDOT's avatar
Clément OUDOT committed
40 41
%endif

42
%global lm_dnsdomain example.com
43

44 45
#global pre_release beta1

46 47 48
#==============================================================================
# Main package
#==============================================================================
Xavier Bachelot's avatar
Xavier Bachelot committed
49
Name:           lemonldap-ng
50 51
Version:        2.0.0
Release:        %{?pre_release:0.}1%{?pre_release:.%{pre_release}}%{?dist}
52
Summary:        LemonLDAP-NG WebSSO
Xavier Bachelot's avatar
Xavier Bachelot committed
53
License:        GPLv2+
Clément OUDOT's avatar
Clément OUDOT committed
54
URL:            http://lemonldap-ng.org
55
Source0:        https://release.ow2.org/lemonldap/%{name}-%{version}%{?pre_release:~%{pre_release}}.tar.gz
56
BuildArch:      noarch
57

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

98 99 100 101 102 103
Requires: lemonldap-ng-conf = %{version}-%{release}
Requires: lemonldap-ng-doc = %{version}-%{release}
Requires: lemonldap-ng-handler = %{version}-%{release}
Requires: lemonldap-ng-manager = %{version}-%{release}
Requires: lemonldap-ng-portal = %{version}-%{release}
Requires: lemonldap-ng-test = %{version}-%{release}
104

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

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


117
%description
118
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
Clément OUDOT's avatar
Clément OUDOT committed
119 120 121 122
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.
123

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

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

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

161
%description doc
162 163 164
This package contains html documentation.

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

175
%description handler
176 177 178 179 180
This package deploys the Apache Handler.

#==============================================================================
# Manager
#==============================================================================
181
%package manager
182
Summary:        LemonLDAP-NG administration interface
183 184
Requires:       lemonldap-ng-conf = %{version}-%{release}
Requires:       perl(Lemonldap::NG::Manager) = %{version}-%{release}
185

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

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

200
%description portal
201 202 203 204
This package deploys the authentication portal.

#==============================================================================
# Test
205
#==============================================================================
206
%package test
207
Summary:        LemonLDAP-NG test applications
208
Requires:       lemonldap-ng-conf = %{version}-%{release}
209

210
%description test
211 212
This package deploys small test applications.

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

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

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

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

240 241 242 243
#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
244 245
Summary:        LemonLDAP-NG Common Modules

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

#==============================================================================
251
# CPAN modules - Handler
252 253 254 255 256
#==============================================================================
%package -n perl-Lemonldap-NG-Handler
Summary:        LemonLDAP-NG Handler Modules

%description -n perl-Lemonldap-NG-Handler
Xavier Bachelot's avatar
Xavier Bachelot committed
257 258
This package installs the Apache module part (handler) used to protect web
areas.
259 260

#==============================================================================
261
# CPAN modules -  Manager
262 263 264 265 266 267 268 269
#==============================================================================
%package -n perl-Lemonldap-NG-Manager
Summary:        LemonLDAP-NG Manager Modules

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

#==============================================================================
270
# CPAN modules - Portal
271 272 273 274 275 276 277
#==============================================================================
%package -n perl-Lemonldap-NG-Portal
Summary:        LemonLDAP-NG Portal Modules

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

278
#==============================================================================
279
# Source preparation
280
#==============================================================================
281
%prep
282
%setup -q -n %{name}-%{version}%{?pre_release:~%{pre_release}}
283

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

285
#==============================================================================
286
# Building
287
#==============================================================================
288
%build
Xavier Bachelot's avatar
Xavier Bachelot committed
289 290 291
%{__make} %{?_smp_mflags} configure \
    STORAGECONFFILE=%{lm_storagefile} \
    PERLOPTIONS="INSTALLDIRS=vendor"
292
%{__make} %{?_smp_mflags}
293

294
#==============================================================================
295
# Installation
296
#============================================================================
297
%install
298
%{__make} %{?_smp_mflags} install \
Xavier Bachelot's avatar
Xavier Bachelot committed
299 300 301 302
    DESTDIR=%{buildroot} \
    PREFIX=%{lm_prefix} \
    BINDIR=%{lm_sharedir}/bin \
    SBINDIR=%{lm_sharedir}/sbin \
303
    FASTCGISOCKDIR=%{_rundir}/llng-fastcgi-server \
Xavier Bachelot's avatar
Xavier Bachelot committed
304 305 306 307 308 309 310 311 312
    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} \
313 314
    INITDIR=%{_sysconfdir}/init.d \
    ETCDEFAULTDIR=%{_sysconfdir}/default \
Xavier Bachelot's avatar
Xavier Bachelot committed
315 316
    DNSDOMAIN=%{lm_dnsdomain} \
    APACHEVERSION=%{apache_version} \
317
    UWSGIYAMLDIR=%{_sysconfdir}/uwsgi/apps-available \
Xavier Bachelot's avatar
Xavier Bachelot committed
318 319
    LLNGAPPDIR=%{lm_sharedir}/llng-server \
    PROD=yes
320

321
# Remove some unwanted files
322 323 324
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name *.bak -exec rm -f {} \;
325

326 327
# Install files for FastCGI Server
mkdir -p %{buildroot}%{_unitdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
328 329
install -m644 fastcgi-server/systemd/llng-fastcgi-server.service \
    %{buildroot}%{_unitdir}
330 331 332
sed -i \
    -e 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' \
    -e 's:__SBINDIR__:%{lm_sharedir}/sbin:' \
Xavier Bachelot's avatar
Xavier Bachelot committed
333
    %{buildroot}%{_unitdir}/llng-fastcgi-server.service
334
rm -f %{buildroot}%{_sysconfdir}/init.d/llng-fastcgi-server
335 336

mkdir -p %{buildroot}%{_tmpfilesdir}
Xavier Bachelot's avatar
Xavier Bachelot committed
337 338
install -m644 fastcgi-server/systemd/llng-fastcgi-server.tmpfile \
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
339 340 341 342
sed -i \
    -e 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' \
    -e 's:__USER__:%{lm_apacheuser}:' \
    -e 's:__GROUP__:%{lm_apachegroup}:' \
Xavier Bachelot's avatar
Xavier Bachelot committed
343
    %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
344

Clément OUDOT's avatar
Clément OUDOT committed
345
# UWSGI Application
346
mkdir -p %{buildroot}%{_sysconfdir}/uwsgi/apps-available
Clément OUDOT's avatar
Clément OUDOT committed
347 348
mkdir -p %{buildroot}%{lm_sharedir}/llng-server

Clément OUDOT's avatar
Clément OUDOT committed
349
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
350 351 352
# 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
353
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
Xavier Bachelot's avatar
Xavier Bachelot committed
354 355 356 357 358 359
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
360

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

375 376 377 378 379 380 381
# Install httpd conf files
# We use "z-lemonldap-ng-*" so that httpd read the files after "perl.conf"
mkdir -p %{buildroot}%{apache_confdir}
for i in handler manager portal test; do {
    mv %{buildroot}%{lm_confdir}/$i-apache%{apache_version}.conf \
        %{buildroot}%{apache_confdir}/z-lemonldap-ng-$i.conf
}; done
382

383 384 385 386
#==============================================================================
# Run test
#==============================================================================
%check
Xavier Bachelot's avatar
Xavier Bachelot committed
387 388 389 390 391 392
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}
393

394
#==============================================================================
395
# Post Installation
396
#==============================================================================
397
%post conf
Clément OUDOT's avatar
Clément OUDOT committed
398 399 400
# 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
401 402 403
    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
404 405 406 407 408
        # Run migration script
        %{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
        # Fix ownership
        chgrp %{lm_apachegroup} %{lm_storagefile} || :
    fi
409
fi
410 411 412 413 414
# 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
415

416
#==============================================================================
417
# Pre uninstallation
418
#==============================================================================
419
%preun conf
Clément OUDOT's avatar
Clément OUDOT committed
420 421
# Upgrade from previous version
if [ $1 -eq 1 ] ; then
422 423
    # Remove old symlinks in Apache configuration
    rm -f %{apache_confdir}/z-lemonldap-ng*.conf 2>&1 > /dev/null || :
424
fi
425

426 427 428 429 430 431 432 433
%post fastcgi-server
%systemd_post llng-fastcgi-server.service

%preun fastcgi-server
%systemd_preun llng-fastcgi-server.service

%postun fastcgi-server
%systemd_postun_with_restart llng-fastcgi-server.service
Clément OUDOT's avatar
Clément OUDOT committed
434

435
%files
436 437
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
438

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

474
%files doc
475
%doc %{lm_vardir}/doc
476 477
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
478

479
%files handler
Clément OUDOT's avatar
Clément OUDOT committed
480
%{lm_sharedir}/bin/purgeLocalCache
481
%config(noreplace) %{_sysconfdir}/cron.d/lemonldap-ng-handler
482
%{lm_vardir}/handler
483
%{lm_examplesdir}/handler
484
%{lm_sharedir}/llng-server/llng-server.psgi
485

486
%files manager
Clément OUDOT's avatar
Clément OUDOT committed
487 488
%{lm_sharedir}/manager
%{lm_examplesdir}/manager
489
%{lm_sharedir}/bin/lmConfigEditor
490
%{lm_sharedir}/bin/lemonldap-ng-cli
491
%{_mandir}/man1/lemonldap-ng-cli*
492

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

501
%files test
502
%{lm_vardir}/test
503

504
%files fastcgi-server
505
%{lm_sharedir}/sbin/llng-fastcgi-server
506
%config(noreplace) %{_sysconfdir}/default/llng-fastcgi-server
507
%{_unitdir}/llng-fastcgi-server.service
508
%{_tmpfilesdir}/llng-fastcgi-server.conf
509
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
510
%dir %{_rundir}/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
511 512
%{lm_sharedir}/examples/llngapp.psgi

513
%files uwsgi-app
514
%{_sysconfdir}/uwsgi/apps-available/llng-server.yaml
515

516
%files -n perl-Lemonldap-NG-Common
517
%{_mandir}/man3/Lemonldap::NG::Common*.3pm.*
518 519
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
Clément OUDOT's avatar
Clément OUDOT committed
520
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
521 522

%files -n perl-Lemonldap-NG-Handler
523 524
%{_mandir}/man3/Lemonldap::NG::Handler*.3pm.*
%{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.*
525 526
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
527
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
528
%{perl_vendorlib}/Plack/Middleware/Auth/LemonldapNG.pm
529 530

%files -n perl-Lemonldap-NG-Manager
531
%{_mandir}/man3/Lemonldap::NG::Manager*.3pm.*
532 533 534 535
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
536
%{_mandir}/man3/Lemonldap::NG::Portal*.3pm.*
537 538
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
539

540
#==============================================================================
541
# Changelog
542
#==============================================================================
543
%changelog
Clément OUDOT's avatar
Clément OUDOT committed
544 545
* Fri Nov 30 2018 Clement Oudot <clem.oudot@gmail.com> - 2.0.0-1
- Update to 2.0.0
546

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

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

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

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

559 560
* Fri Sep 29 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.13-1
- Update to 1.9.13
561

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

565 566
* Tue Sep 12 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.12-1
- Update to 1.9.12
567

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

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

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

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

580 581
* Thu Mar 02 2017 Clement Oudot <clem.oudot@gmail.com> - 1.9.8-1
- Update to 1.9.8
582

583 584
* Mon Dec 12 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.7-1
- Update to 1.9.7
585

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

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

592 593
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.5-1
- Update to 1.9.5
594

595 596
* Wed Jul 13 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.10-1
- Update to 1.4.10
597

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

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

604 605
* Fri Jun 03 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.9-1
- Update to 1.4.9
606

607 608
* Sun May 01 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.2-1
- Update to 1.9.2
609

610 611
* Wed Apr 27 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.8-1
- Update to 1.4.8
612

613 614
* Thu Mar 31 2016 Clement Oudot <clem.oudot@gmail.com> - 1.9.1-1
- Update to 1.9.1
615

616 617
* Thu Mar 17 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.7-1
- Update to 1.4.7
618

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

622 623
* Mon Sep 28 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.6-1
- Update to 1.4.6
624

625 626
* Mon May 11 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.5-1
- Update to 1.4.5
627

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

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

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

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

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

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

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

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

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

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

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

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

665 666
* Mon Sep 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.2-1
- Update to 1.2.2
667

668
* Thu Jul 05 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.1-1
669
- Update to 1.2.1
670

671
* Sun Jun 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.0-1
672
- Update to 1.2.0
673

674 675
* Fri Oct 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.2-1
- Update to 1.1.2
676

677 678
* Fri Jul 29 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.1-1
- Update to 1.1.1
679

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

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

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

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

692 693
* Mon Mar 07 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.3-1
- Update to 1.0.3
694

695 696
* Mon Feb 28 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.2-1
- Update to 1.0.2
697

698 699
* Thu Dec 16 2010 Clement Oudot <clem.oudot@gmail.com> - 1.0.1-1
- Update to 1.0.1
700

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

Clément OUDOT's avatar
Clément OUDOT committed
704 705 706
* 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)
707

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

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

Clément OUDOT's avatar
Clément OUDOT committed
714 715 716 717
* 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.
718

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

725 726 727 728
* 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
729

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

738 739 740
* 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.
741

742
* Tue Oct 7 2008 David Hannequin <david.hannequin@linagora.com> 
743
- New spec file
744

745 746
* Sun Mar 02 2008 Dag Wieers <dag@wieers.com> - 0.85-1
- Updated to release 0.85.
747

748 749
* Tue Nov 13 2007 Dag Wieers <dag@wieers.com> - 0.84-1
- Updated to release 0.84.
750

751 752
* Wed May 02 2007 Dries Verachtert <dries@ulyssis.org> - 0.81-1
- Updated to release 0.81.
753

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