b1006d
%define major_version 1.1
5f8e9e
%define minor_version 7
b1006d
b1006d
%define shortname 389-admin
b1006d
%define pkgname dirsrv
b1006d
b1006d
Name: 389-admin-console
b1006d
Version: %{major_version}.%{minor_version}
6cf3e3
Release: 1%{?dist}
b1006d
Summary: 389 Admin Server Management Console
b1006d
b1006d
Group: Applications/System
b1006d
License: GPLv2
b1006d
URL: http://port389.org
b1006d
b1006d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
b1006d
BuildArch: noarch
b1006d
Source: http://port389.org/sources/%{name}-%{version}.tar.bz2
b1006d
Requires: 389-admin
b1006d
BuildRequires: ant >= 1.6.2
b1006d
BuildRequires: ldapjdk
b1006d
BuildRequires: idm-console-framework
b1006d
BuildRequires: java-devel >= 1:1.6.0
b1006d
Provides: fedora-ds-admin-console = %{version}-%{release}
b1006d
Obsoletes: fedora-ds-admin-console < 1.1.4-1
29b39f
%if 0%{?rhel} < 6
29b39f
ExcludeArch: ppc
29b39f
%endif
29b39f
b1006d
b1006d
%description
b1006d
A Java based remote management console used for Managing 389
b1006d
Admin Server.  Requires the 389 Console to load and run the
b1006d
jar files.
b1006d
b1006d
%package          doc
b1006d
Summary:          Web docs for 389 Admin Server Management Console
b1006d
Group:            Documentation
b1006d
Requires:         %{name} = %{version}-%{release}
b1006d
b1006d
%description      doc
b1006d
Web docs for 389 Admin Server Management Console
b1006d
b1006d
%prep
b1006d
%setup -q
b1006d
                                                                                
b1006d
%build
b1006d
%{ant} \
b1006d
    -Dconsole.location=%{_javadir} \
b1006d
    -Dbuilt.dir=`pwd`/built
b1006d
b1006d
%install
b1006d
rm -rf $RPM_BUILD_ROOT
b1006d
install -d $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
b1006d
install -m644 built/package/%{shortname}* $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
b1006d
install -d $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/admin/help
b1006d
install -m644 help/en/*.html $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/admin
b1006d
install -m644 help/en/tokens.map $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/admin
b1006d
install -m644 help/en/help/*.html $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/manual/en/admin/help
b1006d
b1006d
# create symlinks
b1006d
pushd $RPM_BUILD_ROOT%{_datadir}/%{pkgname}/html/java
b1006d
ln -s %{shortname}-%{version}.jar %{shortname}-%{major_version}.jar
b1006d
ln -s %{shortname}-%{version}.jar %{shortname}.jar
b1006d
ln -s %{shortname}-%{version}_en.jar %{shortname}-%{major_version}_en.jar
b1006d
ln -s %{shortname}-%{version}_en.jar %{shortname}_en.jar
b1006d
popd
b1006d
b1006d
%clean
b1006d
rm -rf $RPM_BUILD_ROOT
b1006d
b1006d
%files
b1006d
%defattr(-,root,root,-)
b1006d
%doc LICENSE
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{version}.jar
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{major_version}.jar
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}.jar
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{version}_en.jar
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}-%{major_version}_en.jar
b1006d
%{_datadir}/%{pkgname}/html/java/%{shortname}_en.jar
b1006d
b1006d
%files doc
b1006d
%defattr(-,root,root,-)
b1006d
%dir %{_datadir}/%{pkgname}/manual/en/admin
b1006d
%doc %{_datadir}/%{pkgname}/manual/en/admin/tokens.map
b1006d
%doc %{_datadir}/%{pkgname}/manual/en/admin/*.html
b1006d
%doc %{_datadir}/%{pkgname}/manual/en/admin/help/*.html
b1006d
b1006d
%changelog
5f8e9e
* Wed Mar 30 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-1
5f8e9e
- the 1.1.7 release - git tag 389-admin-console-1.1.7
5f8e9e
- Bug 476925 - Admin Server: Do not allow 8-bit passwords for
5f8e9e
-     the admin user
5f8e9e
- Bug 211296 - Clean up all HTML pages (Admin Express, Repl Monitor, etc)
5f8e9e
0a5f30
* Wed Feb 23 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.6-1
0a5f30
- the 1.1.6 release - git tag 389-admin-console-1.1.6
0a5f30
- Bug 668950 - Add posix group support to Console
0a5f30
- Bug 151705 - Need to update Console Cipher Preferences with new ciphers
0a5f30
 
6cf3e3
* Wed Jun  2 2010 Rich Megginson <rmeggins@redhat.com> - 1.1.5-1
6cf3e3
- the 1.1.5 release
6cf3e3
29b39f
* Fri Dec 18 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.4-3
29b39f
- Excluding PPC for EPEL builds as there is not openjdk there
29b39f
acb930
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
acb930
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
acb930
b1006d
* Tue Jul 14 2009 Rich Megginson <rmeggins@redhat.com> 1.1.4-1
b1006d
- relicense source files under GPLv2
b1006d
- create doc sub package
b1006d
b1006d
* Fri May 15 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-2
b1006d
- rename to 389
b1006d
b1006d
* Tue Mar 31 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-1
b1006d
- this is the 1.1.3 release
b1006d
b1006d
* Thu Jul  3 2008 Rich Megginson <rmeggins@redhat.com> 1.1.2-1
b1006d
- disable SSLv2 settings
b1006d
b1006d
* Wed Jan 16 2008 Rich Megginson <rmeggins@redhat.com> 1.1.1-2
b1006d
- rename package to fedora-ds-admin-console
b1006d
b1006d
* Thu Jan 10 2008 Rich Megginson <rmeggins@redhat.com> 1.1.1-1
b1006d
- changes for fedora package review
b1006d
- added requires for icedtea java
b1006d
- added LICENSE
b1006d
b1006d
* Wed Dec 19 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-4
b1006d
- This is for the Fedora DS 1.1 release
b1006d
b1006d
* Thu Oct 25 2007 Rich Megginson <rmeggins@redhat.com> - 1.1.0-3
b1006d
- updated sources - use dirsrv as package name
b1006d
b1006d
* Wed Aug  8 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-2
b1006d
- Added online help files into package.
b1006d
b1006d
* Thu Aug  2 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-1
b1006d
- Initial creation