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