acc949c
%define pkgname   dirsrv
acc949c
acc949c
Summary:          389 Directory Server Gateway (dsgw)
acc949c
Name:             389-dsgw
c486bdb
Version:          1.1.4
c486bdb
Release:          1%{?dist}
acc949c
License:          GPLv2
acc949c
URL:              http://port389.org/
acc949c
Group:            System Environment/Daemons
acc949c
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
acc949c
acc949c
BuildRequires:    nspr-devel
acc949c
BuildRequires:    nss-devel
acc949c
BuildRequires:    svrcore-devel
acc949c
BuildRequires:    mozldap-devel
acc949c
BuildRequires:    cyrus-sasl-devel
acc949c
BuildRequires:    icu
acc949c
BuildRequires:    libicu-devel
29fc85e
BuildRequires:    389-adminutil-devel
acc949c
acc949c
Requires:         /etc/dirsrv/admin-serv/httpd.conf
acc949c
# orgchart uses perldap
acc949c
Requires:         perl-Mozilla-LDAP
acc949c
Provides:         fedora-ds-dsgw = %{version}-%{release}
acc949c
Obsoletes:        fedora-ds-dsgw < 1.1.3-1
acc949c
acc949c
Source0:          http://port389.org/sources/%{name}-%{version}.tar.bz2
acc949c
acc949c
%description
acc949c
389 Directory Server Gateway is a collection of 3 web applications
acc949c
that run on top of the Administration Server used by the Directory
acc949c
Server.  These 3 applications are:
acc949c
* phonebook - a simple phonebook application geared towards end users,
acc949c
with simple search screens and simple self-service management
acc949c
* orgchart - an organization chart viewer
acc949c
* gateway - a more advanced search interface that allows admins to
acc949c
create and edit user entries, and allows creation of templates for
acc949c
different types of user and group entries
acc949c
acc949c
%prep
acc949c
%setup -q -n %{name}-%{version}
acc949c
acc949c
%build
acc949c
%configure --disable-rpath
acc949c
acc949c
# Generate symbolic info for debuggers
acc949c
export XCFLAGS=$RPM_OPT_FLAGS
acc949c
acc949c
%ifarch x86_64 ppc64 ia64 s390x sparc64
acc949c
export USE_64=1
acc949c
%endif
acc949c
acc949c
make %{?_smp_mflags}
acc949c
acc949c
%install
acc949c
rm -rf $RPM_BUILD_ROOT 
acc949c
acc949c
make DESTDIR="$RPM_BUILD_ROOT" install
acc949c
acc949c
# make cookie db directory
acc949c
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{pkgname}/dsgw/cookies
acc949c
acc949c
%clean
acc949c
rm -rf $RPM_BUILD_ROOT
acc949c
acc949c
%post
acc949c
# this has been problematic - if this directory
acc949c
# does not exist, the server will silently fail to
acc949c
# start - however, if the user has already created
acc949c
# it, we don't want to overwrite the permissions
acc949c
# on it - so we can't list it explicitly in the
acc949c
# files section
acc949c
if [ ! -d %{_localstatedir}/run/%{pkgname}/dsgw/cookies ] ; then
acc949c
    mkdir -p %{_localstatedir}/run/%{pkgname}/dsgw/cookies
acc949c
fi
acc949c
acc949c
%files
acc949c
%defattr(-,root,root,-)
acc949c
%doc LICENSE
acc949c
%dir %{_sysconfdir}/%{pkgname}/dsgw
acc949c
%config(noreplace)%{_sysconfdir}/%{pkgname}/dsgw/*.conf
acc949c
%{_datadir}/%{pkgname}/dsgw
acc949c
%{_datadir}/%{pkgname}/manual/*/dsgw
acc949c
%{_datadir}/%{pkgname}/properties/dsgw
acc949c
%{_sbindir}/*
acc949c
%{_libdir}/%{pkgname}/dsgw-cgi-bin
acc949c
acc949c
%changelog
c486bdb
* Wed Aug 12 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.4-1
c486bdb
- bump version to 1.1.4
c486bdb
- fix remaining licensing problems
c486bdb
- fix adminutil.m4
c486bdb
29fc85e
* Tue Jul 21 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-2
29fc85e
- use 389-adminutil instead of adminutil
29fc85e
acc949c
* Wed Jun  3 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-1
acc949c
- bump version to 1.1.3 for fedora package review
acc949c
acc949c
* Fri May 15 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.2-3
acc949c
- rename to 389
acc949c
acc949c
* Tue Apr 21 2009 Orion Poplawski <orion@cora.nwra.com> - 1.1.2-2
acc949c
- Make adminutil-devel BR >= 1.1.8
acc949c
acc949c
* Tue Mar 31 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.2-1
acc949c
- this is the 1.1.2 release
acc949c
acc949c
* Thu Sep  4 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.1-1
acc949c
- this is the 1.1.1 release
acc949c
acc949c
* Mon Mar  3 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1
acc949c
- Initial version based on fedora-ds-admin.spec