ldap-account-manager/ldap-account-manager.spec

Name: ldap-account-manager
Summary: LDAP Account Manager
Version: 0.4.6
Release: 1.2
License: GPL
Group: Applications/Internet
URL: http://lam.sourceforge.net/
Description: LDAP Account Manager (LAM) is a webfrontend for managing accounts stored in an openLDAP server.

CentOS 7 x86_64

The build could not start because the following file is missing: ldap-account-manager_0.4.6.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: ldap-account-manager_0.4.6.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

# Tag: rft

Summary:  LDAP Account Manager
Name: ldap-account-manager
Version: 0.4.6
Release: 1.2%{?dist}
License: GPL
Group: Applications/Internet
URL: http://lam.sourceforge.net/

Source: http://dl.sf.net/lam/ldap-account-manager_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
Requires: php, openldap >= 2.0, perl

%description
LDAP Account Manager (LAM) is a webfrontend for managing accounts stored
in an openLDAP server.

%prep
%setup

### FIXME: Add a default sqlitemanager.conf for Apache. (Please fix upstream)
%{__cat} <<EOF >lam.httpd
### You need to include conf.d/php.conf to make it work.

Alias /lam/ %{_localstatedir}/www/lam/

<Directory %{_localstatedir}/www/lam/>
	DirectoryIndex index.php
	order deny,allow
	deny from all
	allow from 127.0.0.1
</Directory>

<FilesMatch "\.inc$">
	order deny,allow
	deny from all
</FilesMatch>
EOF

%build

%install
%{__rm} -rf %{buildroot}

%{__install} -Dp -m0644 lam.httpd %{buildroot}%{_sysconfdir}/httpd/conf.d/lam.conf
%{__rm} -f lam.httpd

%{__install} -d -m0755 %{buildroot}%{_localstatedir}/www/lam/
%{__cp} -apvx config/ %{buildroot}%{_localstatedir}/www/lam/
%{__cp} -apvx lib/ %{buildroot}%{_localstatedir}/www/lam/
%{__cp} -apvx sess/ %{buildroot}%{_localstatedir}/www/lam/
%{__cp} -apvx tmp/ %{buildroot}%{_localstatedir}/www/lam/

find %{buildroot} -name "*.pl" -exec chmod a+x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING HISTORY INSTALL README TODO copyright docs/*
%config(noreplace) %{_sysconfdir}/httpd/conf.d/lam.conf
%dir %{_localstatedir}/www/lam/
%{_localstatedir}/www/lam/lib/

%defattr(-, apache, apache, 0755)
%config(noreplace) %{_localstatedir}/www/lam/config/
%{_localstatedir}/www/lam/sess/
%{_localstatedir}/www/lam/tmp/

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 0.4.6-1.2
- Rebuild for Fedora Core 5.

* Tue Jun 29 2004 Dag Wieers <dag@wieers.com> - 0.4.6-1
- Initial package. (using DAR)