File: Apache-Session-LDAP.spec

package info (click to toggle)
libapache-session-ldap-perl 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 96 kB
  • sloc: perl: 168; makefile: 2
file content (65 lines) | stat: -rw-r--r-- 2,041 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#==============================================================================
# Specification file for Apache::Session::LDAP
#==============================================================================

%define real_name Apache-Session-LDAP
%define real_version 0.5

#==============================================================================
# Main package
#==============================================================================
Name:           perl-%{real_name}
Version:        %{real_version}
Release:        1%{?dist}
Summary:        LDAP implementation of Apache::Session
Group:          Applications/System
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/Apache-Session-LDAP/
Source0:        http://search.cpan.org/CPAN/authors/id/C/CO/COUDOT/%{real_name}-%{real_version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}
BuildArch:      noarch

BuildRequires: perl
BuildRequires: perl(Apache::Session)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Net::LDAP)

Requires: perl(Apache::Session)
Requires: perl(Net::LDAP)

%description
LDAP implementation of Apache::Session. Sessions are stored as LDAP entries
inside a branch.

%prep
%setup -n %{real_name}-%{real_version} -q

%build
perl Makefile.PL INSTALLDIRS="vendor"
%{__make} %{?_smp_mflags}

%install
rm -rf %{buildroot}
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} install DESTDIR=%{buildroot}

# Remove some unwanted files
find %{buildroot} -name .packlist -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;

%check
%{__make} %{?_smp_mflags} test

%files
%defattr(-,root,root,-)
%doc %{_mandir}/man3/Apache::Session::*.3pm.gz
%{perl_vendorlib}/Apache/Session/LDAP.pm
%{perl_vendorlib}/Apache/Session/Store/LDAP.pm

%changelog
* Sun Sep 06 2020 Clement Oudot <clem.oudot@gmail.com> - 0.5-1
- Update to 0.5
* Tue Jan 23 2018 Clement Oudot <clem.oudot@gmail.com> - 0.4-1
- Update to 0.4
* Mon Jan 12 2015 Clement Oudot <clem.oudot@gmail.com> - 0.3-1
- First package for 0.3