aa354b2
%define pkgname   dirsrv
aa354b2
aa354b2
Summary:          389 Directory Server Gateway (dsgw)
aa354b2
Name:             389-dsgw
8700fc5
Version:          1.1.11
b3594db
Release:          6%{?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
b459a5e
BuildRequires:    openldap-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
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
b459a5e
%configure --disable-rpath --with-openldap
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
e0f5074
# touch the tmpfiles.d conf file - but will not be included in the package
e0f5074
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
e0f5074
touch $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf
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
e0f5074
%ghost %{_sysconfdir}/tmpfiles.d/%{pkgname}-dsgw.conf
aa354b2
aa354b2
%changelog
b3594db
* Mon Jan 26 2015 David Tardon <dtardon@redhat.com> - 1.1.11-6
b3594db
- rebuild for ICU 54.1
b3594db
8bcd487
* Tue Aug 26 2014 David Tardon <dtardon@redhat.com> - 1.1.11-5
8bcd487
- rebuild for ICU 53.1
8bcd487
6e7362a
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-4
6e7362a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6e7362a
b098a44
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.11-3
b098a44
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b098a44
Parag Nemade 6edad19
* Fri Feb 14 2014 Parag Nemade <paragn AT fedoraproject DOT org> - 1.1.11-2
Parag Nemade 6edad19
- Rebuild for icu 52
Parag Nemade 6edad19
8700fc5
* Tue Aug 20 2013 Rich Megginson <rmeggins@redhat.com> - 1.1.11-1
8700fc5
- 9bebf4c added charset tests - modularized test script - improved valgrind checking
8700fc5
- Ticket #47403 DSGW authentication issue
8700fc5
- Ticket #47328 389-dsgw: entrydisplay.c:2523: bad switch statement
8700fc5
- Ticket #47486 compiler warnings in adminutil, admin, dsgw
8700fc5
- Ticket #47465 problem with 389-adminutil detection in m4/adminutil.m4 in 389-admin and 389-dsgw
8700fc5
- Ticket #47344 - 389-dsgw: Does not support aarch64 in f19 and rawhide
8700fc5
596a6ce
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.10-3
596a6ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
596a6ce
b233738
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.1.10-2
b233738
- Perl 5.18 rebuild
b233738
a58485e
* Wed Mar 13 2013 Mark Reynolds <mreynolds@redhat.com> - 1.1.10-1
a58485e
- Bump version to 1.1.10
a58485e
- Ticket 606 - DSGW format string errors
a58485e
c4f619a
* Fri Feb 01 2013 Parag Nemade <paragn AT fedoraproject DOT org> - 1.1.9-4
c4f619a
- Rebuild for icu 50
c4f619a
2116ef5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-3
2116ef5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2116ef5
47398aa
* Tue Jun 05 2012 Caolán McNamara <caolanm@redhat.com> - 1.1.9-2
47398aa
- rebuild for icu 49
47398aa
5f93480
* Fri Feb  3 2012 Rich Megginson <rmeggins@redhat.com> - 1.1.9-1
5f93480
- Ticket #281 - TLS not working with latest openldap
5f93480
21d5e26
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.8-2
21d5e26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
21d5e26
e0f5074
* Wed Dec 14 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.8-1
e0f5074
- add support for tmpfiles.d
e0f5074
baa6d45
* Wed Nov  2 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-3
baa6d45
- rebuild with new 389-adminutil and ICU
baa6d45
777cee6
* Wed Sep 14 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-2
777cee6
- rebuild with new 389-adminutil in stable
777cee6
1316267
* Tue Jun 28 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-1
1316267
- look for separate openldap ldif library
1316267
- remove old fedora-ds cruft
1316267
26cc569
* Mon Mar 07 2011 Caolán McNamara <caolanm@redhat.com> - 1.1.6-3
26cc569
- rebuild for icu 4.6
26cc569
406e36e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.6-2
406e36e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
406e36e
b459a5e
* Fri Oct  8 2010 Rich Megginson <rmeggins@redhat.com> - 1.1.6-1
b459a5e
- bump version to 1.1.6
b459a5e
- support for openldap
b459a5e
b7dd774
* Fri Apr 02 2010 Caolán McNamara <caolanm@redhat.com> - 1.1.5-2
b7dd774
- rebuild for icu 4.4
b7dd774
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