Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
df42166d39 | ||
|
|
8f0b9c1617 | ||
|
|
dd907a55e5 | ||
|
|
8826165b84 | ||
|
|
8e5ed6f19d | ||
|
|
f4cea73b17 | ||
|
|
c1c64f7e86 |
6 changed files with 55 additions and 35 deletions
|
|
@ -1 +0,0 @@
|
|||
389-console-1.1.3.tar.bz2
|
||||
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
389-console-1.1.4.tar.bz2
|
||||
/389-console-1.1.7.tar.bz2
|
||||
|
|
@ -1,9 +1,12 @@
|
|||
%define major_version 1.1
|
||||
%define minor_version 3
|
||||
%define minor_version 7
|
||||
|
||||
# only have localization for en right now
|
||||
%global consolelang en
|
||||
|
||||
Name: 389-console
|
||||
Version: %{major_version}.%{minor_version}
|
||||
Release: 5%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: 389 Management Console
|
||||
|
||||
Group: Applications/System
|
||||
|
|
@ -15,14 +18,18 @@ BuildArch: noarch
|
|||
Source: http://port389.org/sources/%{name}-%{version}.tar.bz2
|
||||
Requires: idm-console-framework
|
||||
Requires: java >= 1:1.6.0
|
||||
Requires: which
|
||||
Requires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: ldapjdk
|
||||
BuildRequires: jss
|
||||
BuildRequires: idm-console-framework
|
||||
BuildRequires: java-devel >= 1:1.6.0
|
||||
BuildRequires: jpackage-utils
|
||||
Provides: fedora-idm-console = %{version}-%{release}
|
||||
Obsoletes: fedora-idm-console < 1.1.3-2
|
||||
%if 0%{?rhel} < 6
|
||||
ExcludeArch: ppc
|
||||
%endif
|
||||
|
||||
%description
|
||||
A Java based remote management console used for managing 389
|
||||
|
|
@ -33,7 +40,8 @@ Administration Server and 389 Directory Server.
|
|||
|
||||
%build
|
||||
%{ant} \
|
||||
-Dbuilt.dir=`pwd`/built
|
||||
-Dbuilt.dir=`pwd`/built \
|
||||
buildnoscript
|
||||
|
||||
# add -Dlib.dir and -Dneed_libdir on those platforms where
|
||||
# jss is installed in a non-standard location
|
||||
|
|
@ -43,27 +51,60 @@ Administration Server and 389 Directory Server.
|
|||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||
install -m644 built/*.jar $RPM_BUILD_ROOT%{_javadir}
|
||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m755 built/%{name} $RPM_BUILD_ROOT/%{_bindir}
|
||||
|
||||
# create symlinks
|
||||
pushd $RPM_BUILD_ROOT%{_javadir}
|
||||
ln -s %{name}-%{version}_en.jar %{name}-%{major_version}_en.jar
|
||||
ln -s %{name}-%{version}_en.jar %{name}_en.jar
|
||||
ln -s %{name}-%{version}_%{consolelang}.jar %{name}-%{major_version}_%{consolelang}.jar
|
||||
ln -s %{name}-%{version}_%{consolelang}.jar %{name}_%{consolelang}.jar
|
||||
popd
|
||||
|
||||
install -d $RPM_BUILD_ROOT%{_sysconfdir}/java
|
||||
cat > $RPM_BUILD_ROOT%{_sysconfdir}/java/%{name}.conf <<EOF
|
||||
for file in %{_sysconfdir}/java/*-%{name}.conf ; do
|
||||
if [ -f "\$file" ] ; then
|
||||
. "\$file"
|
||||
fi
|
||||
done
|
||||
mylang=\${mylang:-%{consolelang}}
|
||||
ADDITIONAL_JARS=\${ADDITIONAL_JARS:-%{name}_\$mylang.jar}
|
||||
ADDITIONAL_OPTIONS=\${ADDITIONAL_OPTIONS:-"-Djava.util.prefs.systemRoot=\$HOME/.%{name} -Djava.util.prefs.userRoot=\$HOME/.%{name}"}
|
||||
EOF
|
||||
chmod 644 $RPM_BUILD_ROOT%{_sysconfdir}/java/%{name}.conf
|
||||
|
||||
%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
|
||||
|
||||
# bug in jpackage_script macro on el5 - does not chmod 0755 the script
|
||||
chmod 0755 $RPM_BUILD_ROOT%{_bindir}/%{name}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_javadir}/%{name}-%{version}_en.jar
|
||||
%{_javadir}/%{name}-%{major_version}_en.jar
|
||||
%{_javadir}/%{name}_en.jar
|
||||
%{_javadir}/%{name}-%{version}_%{consolelang}.jar
|
||||
%{_javadir}/%{name}-%{major_version}_%{consolelang}.jar
|
||||
%{_javadir}/%{name}_%{consolelang}.jar
|
||||
%{_bindir}/%{name}
|
||||
%{_sysconfdir}/java/%{name}.conf
|
||||
|
||||
%changelog
|
||||
* Fri Oct 7 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-3
|
||||
- had to move some stuff around to make jpackage_script happy - it's magic
|
||||
|
||||
* Fri Oct 7 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-2
|
||||
- script was not being created as executable
|
||||
|
||||
* Tue Jun 14 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.7-1
|
||||
- use jpackage_script instead of packaging our own shell script
|
||||
- support "skins" package for other brands/versions
|
||||
|
||||
* Thu Apr 15 2010 Rich Megginson <rmeggins@redhat.com> - 1.1.4-1
|
||||
- 1.1.4 release
|
||||
|
||||
* Fri Nov 06 2009 Michael Stahnke <stahnma@fedoraproject.org> - 1.1.3-6
|
||||
- ExcludeArch ppc due to no openjdk, thus no idm-console-framework
|
||||
|
||||
* Wed Sep 30 2009 Rich Megginson <rmeggins@redhat.com> 1.1.3-5
|
||||
- bug 521523 - add the "which" package to the Requires
|
||||
|
||||
|
|
|
|||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: 389-console
|
||||
# $Id$
|
||||
NAME := 389-console
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
|
|
@ -1 +0,0 @@
|
|||
89-console-1_1_3-2:HEAD:389-console-1.1.3-2.src.rpm:1245357596
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
65cc927851ae61d0763ea61fd92f18f9 389-console-1.1.3.tar.bz2
|
||||
e2c92a908c633fffe79de8add27906c6 389-console-1.1.7.tar.bz2
|
||||
|
|
|
|||
Reference in a new issue