32a706f
%define major_version 1.1
64958f8
%define minor_version 18
7f961ae
7f961ae
# only have localization for en right now
7f961ae
%global consolelang en
32a706f
32a706f
Name: 389-console
32a706f
Version: %{major_version}.%{minor_version}
7d3dbb3
Release: 5%{?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
d6a16d7
Source: http://port389.org/binaries/%{name}-%{version}.tar.bz2
0c9eae4
Requires: idm-console-framework
64958f8
Requires: java-headless >= 1.8.0
7f961ae
Requires: jpackage-utils
0c9eae4
BuildRequires: ant
32a706f
BuildRequires: ldapjdk
0c9eae4
BuildRequires: jss
0c9eae4
BuildRequires: idm-console-framework
64958f8
BuildRequires: java-devel >= 1.8.0
7f961ae
%if 0%{?rhel} < 6
7f961ae
ExcludeArch: ppc
7f961ae
%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} \
64958f8
   -Dbuilt.dir=`pwd`/built \
7f961ae
    buildnoscript
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}
7f961ae
install -d $RPM_BUILD_ROOT%{_sysconfdir}/java
7f961ae
cat > $RPM_BUILD_ROOT%{_sysconfdir}/java/%{name}.conf <
7f961ae
for file in %{_sysconfdir}/java/*-%{name}.conf ; do
7f961ae
    if [ -f "\$file" ] ; then
7f961ae
       . "\$file"
7f961ae
    fi
7f961ae
done
64958f8
7f961ae
mylang=\${mylang:-%{consolelang}}
7f961ae
ADDITIONAL_JARS=\${ADDITIONAL_JARS:-%{name}_\$mylang.jar}
7f961ae
ADDITIONAL_OPTIONS=\${ADDITIONAL_OPTIONS:-"-Djava.util.prefs.systemRoot=\$HOME/.%{name} -Djava.util.prefs.userRoot=\$HOME/.%{name}"}
7f961ae
EOF
7f961ae
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/java/%{name}.conf
7f961ae
%jpackage_script com.netscape.management.client.console.Console "" "" jss4.jar:ldapjdk.jar:idm-console-base.jar:idm-console-mcc.jar:idm-console-mcc_%{consolelang}.jar:idm-console-nmclf.jar:idm-console-nmclf_%{consolelang}.jar %{name} true
66900b9
install -d $RPM_BUILD_ROOT%{_mandir}/man8
66900b9
install -m644 built%{_mandir}/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
32a706f
32a706f
%clean
32a706f
rm -rf $RPM_BUILD_ROOT
32a706f
32a706f
%files
32a706f
%defattr(-,root,root,-)
32a706f
%doc LICENSE
7f961ae
%{_javadir}/%{name}_%{consolelang}.jar
32a706f
%{_bindir}/%{name}
7f961ae
%{_sysconfdir}/java/%{name}.conf
66900b9
%{_mandir}/man8/*
32a706f
32a706f
%changelog
7d3dbb3
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.18-5
7d3dbb3
- Escape macros in %%changelog
7d3dbb3
66dc734
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.18-4
66dc734
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
66dc734
0f62acc
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.18-3
0f62acc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0f62acc
796d7ed
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.18-2
796d7ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
796d7ed
64958f8
* Wed Oct 12 2016 Mark Reynolds <mreynolds@rehdat.cmo> - 1.1.18-1
64958f8
- Bump version to 1.1.18-1
64958f8
- Release version 1.1.17
64958f8
- Release version 1.1.16
64958f8
- Release version 1.1.15
64958f8
- Release version 1.1.14
64958f8
- Release version 1.1.13
64958f8
- Release version 1.1.12
64958f8
- Release version 1.1.11
64958f8
- Release version 1.1.10
64958f8
cb0e367
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.9-4
cb0e367
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cb0e367
7269c0a
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-3
7269c0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7269c0a
86127f8
* Thu Feb  5 2015 Noriko Hosoi <nhosoi@redhat.com> - 1.1.9-2
86127f8
- 1.1.9 release
86127f8
66900b9
* Thu Feb  5 2015 Noriko Hosoi <nhosoi@redhat.com> - 1.1.9-1
66900b9
- 1.1.9 release
7d3dbb3
- Ticket 47604 - 389-console: remove versioned jars from %%{_javadir}
66900b9
- Ticket 97    - 389-console should provide man page
66900b9
d6a16d7
* Fri Aug 29 2014 Mark Reynolds <mreynolds@redhat.com> - 1.1.7-8
7d3dbb3
- Bug 1022104 -  remove versioned jars from %%{_javadir}
d6a16d7
e6ae9ad
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-7
e6ae9ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e6ae9ad
1658d24
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.1.7-6
1658d24
- Use Requires: java-headless rebuild (#1067528)
1658d24
60c9e18
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-5
60c9e18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
60c9e18
9e76559
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-4
9e76559
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9e76559
c0e46e0
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-3
c0e46e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c0e46e0
df6abcd
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.7-2
df6abcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
df6abcd
7f961ae
* Tue Jun 14 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-1
7f961ae
- use jpackage_script instead of packaging our own shell script
7f961ae
- support "skins" package for other brands/versions
7f961ae
cd2fce9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.4-2
cd2fce9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cd2fce9
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
d6a16d7
* Mon Jul 23 2007 Nathan Kinder <nkinder@redhat.com> 1.1.0-1
32a706f
- Initial creation