32a706f
%define major_version 1.1
e632dc5
%define minor_version 4
32a706f
32a706f
Name: 389-console
32a706f
Version: %{major_version}.%{minor_version}
e632dc5
Release: 1%{?dist}
32a706f
Summary: 389 Management Console
32a706f
32a706f
Group: Applications/System
32a706f
License: LGPLv2
32a706f
URL: http://port389.org
32a706f
32a706f
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
32a706f
BuildArch: noarch
32a706f
Source: http://port389.org/sources/%{name}-%{version}.tar.bz2
0c9eae4
Requires: idm-console-framework
32a706f
Requires: java >= 1:1.6.0
0c9eae4
Requires: which
0c9eae4
BuildRequires: ant
32a706f
BuildRequires: ldapjdk
0c9eae4
BuildRequires: jss
0c9eae4
BuildRequires: idm-console-framework
32a706f
BuildRequires: java-devel >= 1:1.6.0
32a706f
Provides: fedora-idm-console = %{version}-%{release}
32a706f
Obsoletes: fedora-idm-console < 1.1.3-2
2c4d601
%if 0%{?rhel} < 6                                                        
2c4d601
ExcludeArch: ppc                                                         
2c4d601
%endif    
32a706f
32a706f
%description
32a706f
A Java based remote management console used for managing 389
32a706f
Administration Server and 389 Directory Server.
32a706f
32a706f
%prep
32a706f
%setup -q
32a706f
                                                                                
32a706f
%build
32a706f
%{ant} \
32a706f
    -Dbuilt.dir=`pwd`/built
32a706f
32a706f
# add -Dlib.dir and -Dneed_libdir on those platforms where
32a706f
# jss is installed in a non-standard location
32a706f
# -Dneed_libdir=yes
32a706f
32a706f
%install
32a706f
rm -rf $RPM_BUILD_ROOT
32a706f
install -d $RPM_BUILD_ROOT%{_javadir}
32a706f
install -m644 built/*.jar $RPM_BUILD_ROOT%{_javadir}
32a706f
install -d $RPM_BUILD_ROOT%{_bindir}
32a706f
install -m755 built/%{name} $RPM_BUILD_ROOT/%{_bindir}
32a706f
32a706f
# create symlinks
32a706f
pushd $RPM_BUILD_ROOT%{_javadir}
32a706f
ln -s %{name}-%{version}_en.jar %{name}-%{major_version}_en.jar
32a706f
ln -s %{name}-%{version}_en.jar %{name}_en.jar
32a706f
popd
32a706f
32a706f
%clean
32a706f
rm -rf $RPM_BUILD_ROOT
32a706f
32a706f
%files
32a706f
%defattr(-,root,root,-)
32a706f
%doc LICENSE
32a706f
%{_javadir}/%{name}-%{version}_en.jar
32a706f
%{_javadir}/%{name}-%{major_version}_en.jar
32a706f
%{_javadir}/%{name}_en.jar
32a706f
%{_bindir}/%{name}
32a706f
32a706f
%changelog
e632dc5
* Thu Apr 15 2010 Rich Megginson <rmeggins@redhat.com> - 1.1.4-1
e632dc5
- 1.1.4 release
e632dc5
2c4d601
* Fri Dec 18 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-6
2c4d601
- Excluding PPC for EPEL builds as there is not openjdk there
2c4d601
0c9eae4
* Wed Sep 30 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-5
0c9eae4
- bug 521523 - add the "which" package to the Requires
0c9eae4
7b8c292
* Wed Aug 12 2009 Rich Megginson <rmeggins@redhat.com> - 1.1.3-4
7b8c292
- final rebuild for 1.1.3 release
7b8c292
df95338
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
df95338
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
df95338
32a706f
* Wed May 13 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-2
32a706f
- rename to 389
32a706f
32a706f
* Tue Mar 31 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-1
32a706f
- the 1.1.3 release
32a706f
32a706f
* Tue Apr 15 2008 Rich Megginson <rmeggins@redhat.com> 1.1.1-2
32a706f
- use java > 1.5.0 for requirements
32a706f
32a706f
* Thu Jan 10 2008 Rich Megginson <rmeggins@redhat.com> 1.1.1-1
32a706f
- this is the fedora package review candidate
32a706f
- added LICENSE file
32a706f
- changed permissions on jar files and shell script
32a706f
32a706f
* Wed Dec 19 2007 Rich Megginson <rmeggins@redhat.com> 1.1.0-5
32a706f
- for the Fedora DS 1.1 release
32a706f
32a706f
* Thu Oct 25 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-4
32a706f
- Removed noarch to ensure we find the 64-bit library.
32a706f
32a706f
* Wed Aug  1 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-3
32a706f
- Separated theme package.
32a706f
32a706f
* Fri Jul 27 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-2
32a706f
- Modified package name to be less generic.
32a706f
32a706f
* Mon Jul 26 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-1
32a706f
- Initial creation