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

#==============================================================================
# Variables
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
12

13 14 15 16 17 18 19 20 21 22 23
%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}

24
%global lm_prefix %{_prefix}
25 26 27 28 29
%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 %{_sysconfdir}/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

47 48
# Apache version
%if 0%{?rhel} >= 7
49
%global apache_version 2.4
50
%else
51
%global apache_version 2
52 53
%endif

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

#==============================================================================
# Main package
#==============================================================================
Name:           %{real_name}
60
Version:        %{real_version}
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
URL:            http://lemonldap-ng.org
65
Source0:        https://release.ow2.org/lemonldap/%{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)
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::Base32)
75
BuildRequires:  perl(Convert::PEM)
Xavier Guimard's avatar
Xavier Guimard committed
76
BuildRequires:  perl(Crypt::OpenSSL::Bignum)
Clément OUDOT's avatar
Clément OUDOT committed
77 78
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509)
79
BuildRequires:  perl(Crypt::Rijndael)
80
BuildRequires:  perl(Digest::SHA)
81 82
BuildRequires:  perl(Email::Date::Format)
BuildRequires:  perl(Email::Sender)
83
BuildRequires:  perl(Env)
84 85 86 87 88 89 90
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)
91
BuildRequires:  perl(Plack)
92 93
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Regexp::Common)
94 95
# https://bugzilla.redhat.com/show_bug.cgi?id=1644266
#BuildRequires:  perl(Sentry::Raven)
96 97 98 99 100 101 102
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)
103
BuildRequires:  systemd
104

105 106 107 108 109 110
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}
111 112

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

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

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

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

156
%description doc
157 158 159
This package contains html documentation.

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

170
%description handler
171 172 173 174 175
This package deploys the Apache Handler.

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

181
%description manager
182
This package deploys the administration interface and sessions explorer.
183 184 185 186

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

195
%description portal
196 197 198 199
This package deploys the authentication portal.

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

205
%description test
206 207
This package deploys small test applications.

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

221
%description fastcgi-server
222 223
This package deploys files needed to start a FastCGI server.

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

231
%description uwsgi-app
Clément OUDOT's avatar
Clément OUDOT committed
232 233 234
LemonLDAP::NG uWSGI server provides a replacement to LemonLDAP::NG FastCGI
server, using uWSGI instead of Plack FCGI.

235 236 237 238
#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
239
Summary:        LemonLDAP-NG Common Modules
240
Version:        %{cpan_common_version}
241

242
%description -n perl-Lemonldap-NG-Common
243 244 245
This package installs the configuration libraries used by other LemonLDAP::NG modules.

#==============================================================================
246
# CPAN modules - Handler
247 248 249
#==============================================================================
%package -n perl-Lemonldap-NG-Handler
Summary:        LemonLDAP-NG Handler Modules
250
Version:        %{cpan_handler_version}
251 252 253 254 255

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

#==============================================================================
256
# CPAN modules -  Manager
257 258 259
#==============================================================================
%package -n perl-Lemonldap-NG-Manager
Summary:        LemonLDAP-NG Manager Modules
260
Version:        %{cpan_manager_version}
261 262 263 264 265

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

#==============================================================================
266
# CPAN modules - Portal
267 268 269
#==============================================================================
%package -n perl-Lemonldap-NG-Portal
Summary:        LemonLDAP-NG Portal Modules
270
Version:        %{cpan_portal_version}
271 272 273 274

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

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

# Remove unwanted provides/requires

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

294
%global __perl_requires %{_builddir}/%{name}-%{real_version}/%{name}-req
295
chmod +x %{__perl_requires}
296

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

302
#==============================================================================
303
# Building
304
#==============================================================================
305
%build
306 307
%{__make} %{?_smp_mflags} configure STORAGECONFFILE=%{lm_storagefile} PERLOPTIONS="INSTALLDIRS=vendor"
%{__make} %{?_smp_mflags}
308

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

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

341 342 343
# Install files for FastCGI Server
mkdir -p %{buildroot}%{_unitdir}
install -m644 fastcgi-server/systemd/llng-fastcgi-server.service %{buildroot}%{_unitdir}
344
sed -i 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' %{buildroot}%{_unitdir}/llng-fastcgi-server.service
345
sed -i 's:__SBINDIR__:%{lm_sharedir}/sbin:' %{buildroot}%{_unitdir}/llng-fastcgi-server.service
346
rm -f %{buildroot}%{_sysconfdir}/init.d/llng-fastcgi-server
347 348 349

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m644 fastcgi-server/systemd/llng-fastcgi-server.tmpfile %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
350
sed -i 's:__FASTCGISOCKDIR__:%{_rundir}/llng-fastcgi-server:' %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
351 352
sed -i 's:__USER__:%{lm_apacheuser}:' %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
sed -i 's:__GROUP__:%{lm_apachegroup}:' %{buildroot}%{_tmpfilesdir}/llng-fastcgi-server.conf
353

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

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

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

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

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

396
#==============================================================================
397
# Post Installation
398
#==============================================================================
399
%post conf
Clément OUDOT's avatar
Clément OUDOT committed
400 401 402
# 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
403
    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
404 405
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
406
    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
407 408
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
409
    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
410
fi
411
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
Xavier Bachelot's avatar
Xavier Bachelot committed
412
    ln -s %{lm_confdir}/test-apache%{apache_version}.conf %{apache_confdir}/z-lemonldap-ng-test.conf || :
413
fi
Clément OUDOT's avatar
Clément OUDOT committed
414 415 416
# 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
417 418 419 420 421 422
    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
423
fi
424 425 426 427 428
# 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
429

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

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

449
%files
450 451
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
452

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

493
%files doc
494
%doc %{lm_vardir}/doc
495 496
%doc changelog INSTALL README.md AUTHORS CONTRIBUTING.md
%license COPYING GPL
497

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

505
%files manager
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
%{_mandir}/man1/lemonldap-ng-cli*
511

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

520
%files test
521
%{lm_vardir}/test
522

523
%files fastcgi-server
524
%{lm_sharedir}/sbin/llng-fastcgi-server
525
%config(noreplace) %{_sysconfdir}/default/llng-fastcgi-server
526
%{_unitdir}/llng-fastcgi-server.service
527
%{_tmpfilesdir}/llng-fastcgi-server.conf
528
%defattr(755,%{lm_apacheuser},%{lm_apachegroup},-)
529
%dir %{_rundir}/llng-fastcgi-server
Clément OUDOT's avatar
Clément OUDOT committed
530 531
%{lm_sharedir}/examples/llngapp.psgi

532
%files uwsgi-app
533
%{_sysconfdir}/uwsgi/apps-available/llng-server.yaml
534

535
%files -n perl-Lemonldap-NG-Common
536
%{_mandir}/man3/Lemonldap::NG::Common*.3pm.*
537 538
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
Clément OUDOT's avatar
Clément OUDOT committed
539
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
540 541

%files -n perl-Lemonldap-NG-Handler
542 543
%{_mandir}/man3/Lemonldap::NG::Handler*.3pm.*
%{_mandir}/man3/Plack::Middleware::Auth::LemonldapNG.3pm.*
544 545
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/
546
%{perl_vendorlib}/auto/Lemonldap/NG/Handler/
Xavier Guimard's avatar
Xavier Guimard committed
547
%{perl_vendorlib}/Plack/Middleware/Auth/
548 549

%files -n perl-Lemonldap-NG-Manager
550
%{_mandir}/man3/Lemonldap::NG::Manager*.3pm.*
551 552 553 554
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
555
%{_mandir}/man3/Lemonldap::NG::Portal*.3pm.*
556 557
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
558

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