| 1 |
%define pkgname dirsrv
|
| 2 |
|
| 3 |
Summary: 389 Directory Server Gateway (dsgw)
|
| 4 |
Name: 389-dsgw
|
| 5 |
Version: 1.1.4
|
| 6 |
Release: 1%{?dist}
|
| 7 |
License: GPLv2
|
| 8 |
URL: http://port389.org/
|
| 9 |
Group: System Environment/Daemons
|
| 10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 11 |
|
| 12 |
BuildRequires: nspr-devel
|
| 13 |
BuildRequires: nss-devel
|
| 14 |
BuildRequires: svrcore-devel
|
| 15 |
BuildRequires: mozldap-devel
|
| 16 |
BuildRequires: cyrus-sasl-devel
|
| 17 |
BuildRequires: icu
|
| 18 |
BuildRequires: libicu-devel
|
| 19 |
BuildRequires: 389-adminutil-devel
|
| 20 |
|
| 21 |
Requires: /etc/dirsrv/admin-serv/httpd.conf
|
| 22 |
# orgchart uses perldap
|
| 23 |
Requires: perl-Mozilla-LDAP
|
| 24 |
Provides: fedora-ds-dsgw = %{version}-%{release}
|
| 25 |
Obsoletes: fedora-ds-dsgw < 1.1.3-1
|
| 26 |
|
| 27 |
Source0: http://port389.org/sources/%{name}-%{version}.tar.bz2
|
| 28 |
|
| 29 |
%description
|
| 30 |
389 Directory Server Gateway is a collection of 3 web applications
|
| 31 |
that run on top of the Administration Server used by the Directory
|
| 32 |
Server. These 3 applications are:
|
| 33 |
* phonebook - a simple phonebook application geared towards end users,
|
| 34 |
with simple search screens and simple self-service management
|
| 35 |
* orgchart - an organization chart viewer
|
| 36 |
* gateway - a more advanced search interface that allows admins to
|
| 37 |
create and edit user entries, and allows creation of templates for
|
| 38 |
different types of user and group entries
|
| 39 |
|
| 40 |
%prep
|
| 41 |
%setup -q -n %{name}-%{version}
|
| 42 |
|
| 43 |
%build
|
| 44 |
%configure --disable-rpath
|
| 45 |
|
| 46 |
# Generate symbolic info for debuggers
|
| 47 |
export XCFLAGS=$RPM_OPT_FLAGS
|
| 48 |
|
| 49 |
%ifarch x86_64 ppc64 ia64 s390x sparc64
|
| 50 |
export USE_64=1
|
| 51 |
%endif
|
| 52 |
|
| 53 |
make %{?_smp_mflags}
|
| 54 |
|
| 55 |
%install
|
| 56 |
rm -rf $RPM_BUILD_ROOT
|
| 57 |
|
| 58 |
make DESTDIR="$RPM_BUILD_ROOT" install
|
| 59 |
|
| 60 |
# make cookie db directory
|
| 61 |
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{pkgname}/dsgw/cookies
|
| 62 |
|
| 63 |
%clean
|
| 64 |
rm -rf $RPM_BUILD_ROOT
|
| 65 |
|
| 66 |
%post
|
| 67 |
# this has been problematic - if this directory
|
| 68 |
# does not exist, the server will silently fail to
|
| 69 |
# start - however, if the user has already created
|
| 70 |
# it, we don't want to overwrite the permissions
|
| 71 |
# on it - so we can't list it explicitly in the
|
| 72 |
# files section
|
| 73 |
if [ ! -d %{_localstatedir}/run/%{pkgname}/dsgw/cookies ] ; then
|
| 74 |
mkdir -p %{_localstatedir}/run/%{pkgname}/dsgw/cookies
|
| 75 |
fi
|
| 76 |
|
| 77 |
%files
|
| 78 |
%defattr(-,root,root,-)
|
| 79 |
%doc LICENSE
|
| 80 |
%dir %{_sysconfdir}/%{pkgname}/dsgw
|
| 81 |
%config(noreplace)%{_sysconfdir}/%{pkgname}/dsgw/*.conf
|
| 82 |
%{_datadir}/%{pkgname}/dsgw
|
| 83 |
%{_datadir}/%{pkgname}/manual/*/dsgw
|
| 84 |
%{_datadir}/%{pkgname}/properties/dsgw
|
| 85 |
%{_sbindir}/*
|
| 86 |
%{_libdir}/%{pkgname}/dsgw-cgi-bin
|
| 87 |
|
| 88 |
%changelog
|
| 89 |
* Wed Aug 12 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.4-1
|
| 90 |
- bump version to 1.1.4
|
| 91 |
- fix remaining licensing problems
|
| 92 |
- fix adminutil.m4
|
| 93 |
|
| 94 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
|
| 95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 96 |
|
| 97 |
* Tue Jul 21 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-2
|
| 98 |
- use 389-adminutil instead of adminutil
|
| 99 |
|
| 100 |
* Wed Jun 3 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-1
|
| 101 |
- bump version to 1.1.3 for fedora package review
|
| 102 |
|
| 103 |
* Fri May 15 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.2-3
|
| 104 |
- rename to 389
|
| 105 |
|
| 106 |
* Tue Apr 21 2009 Orion Poplawski <orion@cora.nwra.com> - 1.1.2-2
|
| 107 |
- Make adminutil-devel BR >= 1.1.8
|
| 108 |
|
| 109 |
* Tue Mar 31 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.2-1
|
| 110 |
- this is the 1.1.2 release
|
| 111 |
|
| 112 |
* Thu Sep 4 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.1-1
|
| 113 |
- this is the 1.1.1 release
|
| 114 |
|
| 115 |
* Mon Mar 3 2008 Rich Megginson <rmeggins@redhat.com> - 1.1.0-1
|
| 116 |
- Initial version based on fedora-ds-admin.spec
|