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

#==============================================================================
# Variables
#==============================================================================
12

13 14 15
%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

16
%define real_name lemonldap-ng
17
%define real_version 1.4.8
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
24
%define lm_sharedir %{_datadir}/lemonldap-ng
25
%define lm_examplesdir %{lm_sharedir}/examples
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}
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

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
62
%if 0%{?rhl}%{?rhel}%{?fedora}
63
Group:          Applications/System
64 65 66
%else
Group:          Monitoring
%endif
67
License:        GPL+ or Artistic
68 69
URL:            http://lemonldap-ng.org
Source0:        http://lemonldap-ng.org/download/%{name}-%{version}.tar.gz
70
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}
71
BuildArch:      noarch
72 73

%if 0%{?rhl}%{?rhel}%{?fedora}
74 75 76 77 78 79 80 81 82 83 84
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Cache::Cache)
BuildRequires:  perl(Apache::Session)
BuildRequires:  perl(Net::LDAP)
BuildRequires:  perl(CGI::Session)
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(IO::String)
BuildRequires:  perl(MIME::Lite)
BuildRequires:  perl(SOAP::Lite)
BuildRequires:  perl(XML::Simple)
BuildRequires:  perl(XML::LibXSLT)
85
BuildRequires:  perl(Authen::Captcha)
86 87 88 89 90 91
BuildRequires:  perl(String::Random)
BuildRequires:  perl(Email::Date::Format)
BuildRequires:  perl(Crypt::Rijndael)
BuildRequires:  perl(HTML::Template)
BuildRequires:  perl(JSON)
BuildRequires:  perl(Config::IniFiles)
92
BuildRequires:  perl(Convert::PEM)
93 94
BuildRequires:  perl(Crypt::OpenSSL::RSA)
BuildRequires:  perl(Crypt::OpenSSL::X509)
95 96
BuildRequires:  perl(Class::Inspector)
BuildRequires:  perl(Test::MockObject)
Clément OUDOT's avatar
Clément OUDOT committed
97
BuildRequires:  perl(Clone)
98
BuildRequires:  perl(Net::CIDR::Lite)
99
BuildRequires:  perl(Unicode::String)
100
BuildRequires:  perl(Mouse)
Clément OUDOT's avatar
Clément OUDOT committed
101
BuildRequires:  perl(Digest::SHA)
102 103
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Env)
104
%else
105
BuildRequires:  perl-Regexp-Assemble, perl-Authen-Captcha, perl-Cache-Cache, perl-Apache-Session, perl-LDAP, perl-CGI-Session, perl-IO-String, perl-MIME-Lite, perl-SOAP-Lite, perl-XML-Simple, perl-XML-LibXSLT, perl-String-Random, perl-Email-Date-Format, perl-Crypt-Rijndael, perl-HTML-Template, perl-JSON, perl-Config-IniFiles, perl-Crypt-OpenSSL-RSA, perl-Crypt-OpenSSL-X509, perl-Class-Inspector, perl-Test-MockObject, perl-Clone, perl-Net-CIDR-Lite, perl-Unicode-String, perl-Mouse, perl-Digest-SHA, perl-ExtUtims-MakeMaker, perl-Env
106
%endif
107

108
%if 0%{?rhl}%{?rhel}%{?fedora}
109 110 111
Requires: perl(Apache::Session)
Requires: perl(IO::String)
Requires: mod_perl
112 113
%else
Requires: cron, apache2, apache2-mod_perl
114
Requires: perl-Regexp-Assemble, perl-Cache-Cache, perl-Apache-Session, perl-XML-Simple, perl-XML-LibXML, perl-Crypt-Rijndael, perl-IO-String
115
Requires: perl-ldap, perl-MIME-Base64, perl-CGI, perl-CGI-Session, perl-DBI, perl-HTML-Template, perl-SOAP-Lite, perl-IPC-ShareLite, perl-Convert-ASN1, perl-Error, perl-Unicode-String
116
%endif
117

118
Requires: lemonldap-ng-conf >= %{real_version}
119
Requires: lemonldap-ng-doc >= %{real_version}
120 121 122 123
Requires: lemonldap-ng-handler >= %{real_version}
Requires: lemonldap-ng-manager >= %{real_version}
Requires: lemonldap-ng-portal >= %{real_version}
Requires: lemonldap-ng-test >= %{real_version}
124

125
%if 0%{?rhl}%{?rhel}%{?fedora}
Clément OUDOT's avatar
Clément OUDOT committed
126 127 128 129
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}
130
%else
131 132 133
Requires: perl-Lemonldap-NG-Common >= %{cpan_common_version}
Requires: perl-Lemonldap-NG-Handler >= %{cpan_handler_version}
Requires: perl-Lemonldap-NG-Manager >= %{cpan_manager_version}
134
Requires: perl-Lemonldap-NG-Portal >= %{cpan_portal_version}
135
%endif
136 137

%description
138
LemonLdap::NG is a modular Web-SSO based on Apache::Session modules. It
139 140 141 142
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.
143

144 145 146 147 148
#==============================================================================
# Conf
#==============================================================================
%package -n lemonldap-ng-conf
Summary:        LemonLDAP-NG configuration
149
%if 0%{?rhl}%{?rhel}%{?fedora}
150
Group:          Applications/System
151 152 153
%else
Group:          Monitoring
%endif
154
Requires(post):  httpd
155 156 157 158

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

159 160 161 162 163
#==============================================================================
# Documentation
#==============================================================================
%package -n lemonldap-ng-doc
Summary:        LemonLDAP-NG documentation
164
%if 0%{?rhl}%{?rhel}%{?fedora}
165
Group:          Applications/System
166 167 168
%else
Group:          Monitoring
%endif
169 170 171 172

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

173 174 175 176 177 178 179 180 181 182 183 184 185 186
#==============================================================================
# Documentation FR
#==============================================================================
%package -n lemonldap-ng-fr-doc
Summary:        LemonLDAP-NG French documentation
%if 0%{?rhl}%{?rhel}%{?fedora}
Group:          Applications/System
%else
Group:          Monitoring
%endif

%description -n lemonldap-ng-fr-doc
This package contains html documentation translated in French.

187
#==============================================================================
188 189 190 191
# Handler
#==============================================================================
%package -n lemonldap-ng-handler
Summary:        LemonLDAP-NG Handler
192
%if 0%{?rhl}%{?rhel}%{?fedora}
193
Group:          Applications/System
194 195 196
%else
Group:          Monitoring
%endif
197 198 199 200 201 202 203 204 205

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

#==============================================================================
# Manager
#==============================================================================
%package -n lemonldap-ng-manager
Summary:        LemonLDAP-NG administration interface
206
%if 0%{?rhl}%{?rhel}%{?fedora}
207
Group:          Applications/System
208 209 210
%else
Group:          Monitoring
%endif
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226

%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
Group:          Applications/System

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

#==============================================================================
# Test
227
#==============================================================================
228 229
%package -n lemonldap-ng-test
Summary:        LemonLDAP-NG test applications
230
%if 0%{?rhl}%{?rhel}%{?fedora}
231
Group:          Applications/System
232 233 234
%else
Group:          Monitoring
%endif
235 236 237 238 239 240 241 242

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

#==============================================================================
# CPAN modules - Common
#==============================================================================
%package -n perl-Lemonldap-NG-Common
243
Summary:        LemonLDAP-NG Common Modules
Clément OUDOT's avatar
Clément OUDOT committed
244
Version:        %{cpan_common_version}
245
%if 0%{?rhl}%{?rhel}%{?fedora}
246
Group:          Applications/System
247 248 249
%else
Group:          Monitoring
%endif
250

251
%description -n perl-Lemonldap-NG-Common
252 253 254
This package installs the configuration libraries used by other LemonLDAP::NG modules.

#==============================================================================
255
# CPAN modules - Handler
256 257 258
#==============================================================================
%package -n perl-Lemonldap-NG-Handler
Summary:        LemonLDAP-NG Handler Modules
Clément OUDOT's avatar
Clément OUDOT committed
259
Version:        %{cpan_handler_version}
260
%if 0%{?rhl}%{?rhel}%{?fedora}
261
Group:          Applications/System
262 263 264
%else
Group:          Monitoring
%endif
265 266 267 268 269

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

#==============================================================================
270
# CPAN modules -  Manager
271 272 273
#==============================================================================
%package -n perl-Lemonldap-NG-Manager
Summary:        LemonLDAP-NG Manager Modules
Clément OUDOT's avatar
Clément OUDOT committed
274
Version:        %{cpan_manager_version}
275
%if 0%{?rhl}%{?rhel}%{?fedora}
276
Group:          Applications/System
277 278 279
%else
Group:          Monitoring
%endif
280 281 282 283 284

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

#==============================================================================
285
# CPAN modules - Portal
286 287 288
#==============================================================================
%package -n perl-Lemonldap-NG-Portal
Summary:        LemonLDAP-NG Portal Modules
Clément OUDOT's avatar
Clément OUDOT committed
289
Version:        %{cpan_portal_version}
290
%if 0%{?rhl}%{?rhel}%{?fedora}
291
Group:          Applications/System
292 293 294
%else
Group:          Monitoring
%endif
295 296 297 298

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

299
#==============================================================================
300
# Source preparation
301
#==============================================================================
302
%prep
303 304 305 306 307 308 309 310 311 312
%setup -n %{real_name}-%{real_version} -q

# Remove unwanted provides/requires
# We remove Lemonldap::NG requires because the requires are set in the header

cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
sed -e '/perl(lasso)/d' |\
sed -e '/perl(Net::OpenID::Server)/d' |\
313
sed -e '/perl(AuthCAS)/d'
314 315 316 317
EOF

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

319 320 321 322 323
%if 0%{?rhel} >= 7
%{?perl_default_filter}
%global __requires_exclude perl\\(lasso|perl\\(Net::OpenID::Server
%endif

324
#==============================================================================
325
# Building
326
#==============================================================================
327
%build
328 329
%{__make} %{?_smp_mflags} configure STORAGECONFFILE=%{lm_storagefile} PERLOPTIONS="INSTALLDIRS=vendor"
%{__make} %{?_smp_mflags}
330

331 332
# Run Tests
%{__make} %{?_smp_mflags} test
333

334
#==============================================================================
335
# Installation
336
#============================================================================
337
%install
338
rm -rf %{buildroot}
339

340
%{__make} %{?_smp_mflags} install \
341 342 343 344 345 346 347
	DESTDIR=%{buildroot} \
	PREFIX=%{lm_prefix} \
	BINDIR=%{lm_sharedir}/bin \
	DOCUMENTROOT=%{lm_vardir} \
	EXAMPLESDIR=%{lm_examplesdir} \
	HANDLERDIR=%{lm_vardir}/handler \
	PORTALSKINSDIR=%{lm_sharedir}/portal-skins \
348
	MANAGERSKINSDIR=%{lm_sharedir}/manager-skins \
349 350 351
	STORAGECONFFILE=%{lm_storagefile} \
	TOOLSDIR=%{lm_sharedir}/ressources \
	CONFDIR=%{lm_confdir} \
352
	CRONDIR=%{_sysconfdir}/cron.d \
353
	DATADIR=%{lm_vardir} \
354 355
	DNSDOMAIN=%{lm_dnsdomain} \
	APACHEVERSION=%{apache_version}
356

357
%{__make} %{?_smp_mflags} install_fr_doc_site \
358 359 360 361 362 363
	DESTDIR=%{buildroot} \
	PREFIX=%{lm_prefix} \
	BINDIR=%{lm_sharedir}/bin \
	DOCUMENTROOT=%{lm_vardir} \
	DATADIR=%{lm_vardir}

364
# Remove some unwanted files
365 366 367
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name *.bak -exec rm -f {} \;
368

369
# Set apache user in some files (see Makefile)
Clément OUDOT's avatar
Clément OUDOT committed
370 371 372
# 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
373 374
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{_sysconfdir}/cron.d/*
sed -i 's/nobody/%{lm_apacheuser}/' %{buildroot}%{lm_sharedir}/bin/lmConfigEditor
375
sed -i 's/nobody/%{lm_apacheuser}/g' %{buildroot}%{lm_sharedir}/bin/lemonldap-ng-cli
376

Clément OUDOT's avatar
Clément OUDOT committed
377 378 379 380
# Minify Javascript and CSS
./scripts/minifierjs `find %{buildroot} -name '*.js'`
./scripts/minifiercss `find %{buildroot} -name '*.css'`

381
# Set UNIX rights
382
mkdir -p %{buildroot}%{lm_vardir}/sessions/lock
383
mkdir -p %{buildroot}%{lm_vardir}/psessions/lock
384 385 386 387 388
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
389 390
chmod 770 %{buildroot}%{lm_vardir}/psessions
chmod 770 %{buildroot}%{lm_vardir}/psessions/lock
391
chmod 770 %{buildroot}%{lm_vardir}/notifications
392
chmod 770 %{buildroot}%{lm_vardir}/captcha
393

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

401
#==============================================================================
402
# Post Installation
403
#==============================================================================
Clément OUDOT's avatar
Clément OUDOT committed
404
%post -n lemonldap-ng-conf
Clément OUDOT's avatar
Clément OUDOT committed
405 406 407
# 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
408
	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
409 410
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-manager.conf ] ; then
411
	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
412 413
fi
if [ ! -e %{apache_confdir}/z-lemonldap-ng-portal.conf ] ; then
414
	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
415
fi
416
if [ ! -e %{apache_confdir}/z-lemonldap-ng-test.conf ] ; then
417
	ln -s %{lm_confdir}/test-apache%{apache_version}.conf %{apache_confdir}/z-lemonldap-ng-test.conf || :
418
fi
Clément OUDOT's avatar
Clément OUDOT committed
419 420 421 422 423
# 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
424
		%{lm_sharedir}/bin/lmMigrateConfFiles2ini 2>&1 > /dev/null || :
Clément OUDOT's avatar
Clément OUDOT committed
425 426 427
		# Fix ownership
		chgrp %{lm_apachegroup} %{lm_storagefile} || :
	fi
428
fi
429 430 431 432 433
# 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
434

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

453
%clean
454
rm -rf %{buildroot}
455

456

457 458
%files
%defattr(-,root,root,-)
459
%doc changelog COPYING INSTALL README
460 461

%files -n lemonldap-ng-conf
462
%defattr(-,root,root,-)
463 464
%dir %{lm_confdir}
%config %{lm_confdir}/for_etc_hosts
465 466 467 468
%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
469 470 471
%ghost %{apache_confdir}/z-lemonldap-ng-handler.conf
%ghost %{apache_confdir}/z-lemonldap-ng-manager.conf
%ghost %{apache_confdir}/z-lemonldap-ng-portal.conf
472
%ghost %{apache_confdir}/z-lemonldap-ng-test.conf
473 474 475
%dir %{lm_vardir}
%dir %{lm_sharedir}
%dir %{lm_sharedir}/bin
476 477
%{lm_sharedir}/bin/convertConfig
%{lm_sharedir}/bin/lmMigrateConfFiles2ini
478
%dir %{lm_examplesdir}
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
490 491
%defattr(640,%{lm_apacheuser},%{lm_apachegroup},-)
%config(noreplace) %{lm_vardir}/conf/lmConf-1
492 493

%files -n lemonldap-ng-doc
494
%defattr(-,root,root,-)
495
%doc %{lm_vardir}/doc
496
%doc changelog COPYING INSTALL README
497

498 499 500 501
%files -n lemonldap-ng-fr-doc
%defattr(-,root,root,-)
%doc %{lm_vardir}/fr-doc

502
%files -n lemonldap-ng-handler
503
%defattr(-,root,root,-)
504 505
%{lm_sharedir}/bin/purgeLocalCache
%{_sysconfdir}/cron.d/lemonldap-ng-handler
506
%{lm_vardir}/handler
507 508 509
%{lm_examplesdir}/handler

%files -n lemonldap-ng-manager
510
%defattr(-,root,root,-)
511
%{lm_vardir}/manager
512
%{lm_sharedir}/bin/lmConfigEditor
513
%{lm_sharedir}/bin/lemonldap-ng-cli
514
%{lm_sharedir}/manager-skins
515 516 517
%{lm_examplesdir}/manager

%files -n lemonldap-ng-portal
518
%defattr(-,root,root,-)
519
%{lm_vardir}/portal
Clément OUDOT's avatar
Clément OUDOT committed
520
%{lm_sharedir}/bin/buildPortalWSDL
521 522
%{lm_sharedir}/bin/purgeCentralCache
%{_sysconfdir}/cron.d/lemonldap-ng-portal
523 524
%{lm_examplesdir}/portal
%{lm_sharedir}/portal-skins
525 526
%defattr(750,%{lm_apacheuser},%{lm_apachegroup},-)
%dir %{lm_vardir}/captcha
527

528
%files -n lemonldap-ng-test
529
%defattr(-,root,root,-)
530
%{lm_vardir}/test
531

532
%files -n perl-Lemonldap-NG-Common
533
%defattr(-,root,root,-)
534 535 536
%doc %{_mandir}/man3/Lemonldap::NG::Common*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Common.pm
%{perl_vendorlib}/Lemonldap/NG/Common/
537
%{perl_vendorlib}/auto/Lemonldap/NG/Common/
538 539

%files -n perl-Lemonldap-NG-Handler
540
%defattr(-,root,root,-)
541 542 543 544 545
%doc %{_mandir}/man3/Lemonldap::NG::Handler*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Handler.pm
%{perl_vendorlib}/Lemonldap/NG/Handler/

%files -n perl-Lemonldap-NG-Manager
546
%defattr(-,root,root,-)
547 548 549 550 551 552
%doc %{_mandir}/man3/Lemonldap::NG::Manager*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Manager.pm
%{perl_vendorlib}/Lemonldap/NG/Manager/
%{perl_vendorlib}/auto/Lemonldap/NG/Manager/

%files -n perl-Lemonldap-NG-Portal
553
%defattr(-,root,root,-)
554 555 556 557
%doc %{_mandir}/man3/Lemonldap::NG::Portal*.3pm.gz
%{perl_vendorlib}/Lemonldap/NG/Portal.pm
%{perl_vendorlib}/Lemonldap/NG/Portal/
%{perl_vendorlib}/auto/Lemonldap/NG/Portal/
558

559
#==============================================================================
560
# Changelog
561
#==============================================================================
562
%changelog
563 564
* Wed Apr 27 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.8-1
- Update to 1.4.8
Clément OUDOT's avatar
Clément OUDOT committed
565 566
* Thu Mar 17 2016 Clement Oudot <clem.oudot@gmail.com> - 1.4.7-1
- Update to 1.4.7
567 568
* Mon Sep 28 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.6-1
- Update to 1.4.6
Clément OUDOT's avatar
Clément OUDOT committed
569 570
* Mon May 11 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.5-1
- Update to 1.4.5
571
* Wed Apr 15 2015 Clement Oudot <clem.oudot@gmail.com> - 1.4.4-1
572
- Update to 1.4.4
Clément OUDOT's avatar
Clément OUDOT committed
573 574 575
* 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
576 577
* Fri Oct 31 2014 Clement Oudot <clem.oudot@gmail.com> - 1.4.2-1
- Update to 1.4.2
Clément OUDOT's avatar
Clément OUDOT committed
578 579
* 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
580 581 582 583 584 585 586 587
* 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
588 589 590 591 592 593 594 595
* 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
596 597 598
* Mon Sep 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.2-1
- Update to 1.2.2
* Fri Jul 05 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.1-1
599
- Update to 1.2.1
600
* Sun Jun 17 2012 Clement Oudot <clem.oudot@gmail.com> - 1.2.0-1
601 602 603 604 605
- 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
606 607
* Fri Jul 08 2011 Clement Oudot <clem.oudot@gmail.com> - 1.1.0-1
- Update to 1.1.0
Clément OUDOT's avatar
Clément OUDOT committed
608 609
* Mon Jun 30 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.6-1
- Update to 1.0.6
Clément OUDOT's avatar
Clément OUDOT committed
610 611
* 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
612 613
* Tue Mar 22 2011 Clement Oudot <clem.oudot@gmail.com> - 1.0.4-1
- Update to 1.0.4
614 615 616 617 618 619
* 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
620 621 622 623 624 625 626 627 628 629 630 631 632
* 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.
633
* Mon Jul 6 2009 Clement Oudot <coudot@linagora.com> - 0.9.4-1
Clément OUDOT's avatar
Clément OUDOT committed
634 635 636
- Upgrade to release 0.9.4
- Remove cronjob patch (included in 0.9.4)
- Split scriplets into subpackages
637
- Use conditions to build for other RPM distributions like OpenSuSE (thanks to clauded1)
638 639 640 641 642
* 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
* Thu Jan 9 2009 Clement Oudot <coudot@linagora.com> - 0.9.3.2-1
643
- Updated to release 0.9.3.2.
644
- Use internal version number for perl modules (compatibility with RPMforge packages)
645 646
- Merge with existing .spec file from RPMforge.
- Use the same directories as the Debian package.
647
- Create a symlink in Apache confguration.
648
- Create specific portal/manager/handler/conf packages independant from CPAN packages
649 650 651
* 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.
652
* Tue Oct 7 2008 David Hannequin <david.hannequin@linagora.com> 
653 654 655 656 657 658 659 660 661
- 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.