rpms/jeta/devel jeta.spec, NONE, 1.1 nojta.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Brandon Holbrook (static) fedora-extras-commits at redhat.com
Sat Mar 3 05:40:32 UTC 2007


Author: static

Update of /cvs/extras/rpms/jeta/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv741

Modified Files:
	.cvsignore sources 
Added Files:
	jeta.spec nojta.patch 
Log Message:
Initial checkin



--- NEW FILE jeta.spec ---
Name: 		jeta
Version:	1.0
Release:	1%{?dist}
Summary:	Horde Java SSH module

Source0:	ftp://ftp.horde.org/pub/%{name}/%{name}-h3-%{version}.tar.gz
Patch0:		nojta.patch
Group:		Applications/Internet
License:	GPL
URL:		http://www.horde.org/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:	noarch

BuildRequires:	gettext
Requires:	php >= 4.3.0
Requires:	horde >= 3

%description
Jeta is the Horde module that provides a Java SSH interface to login to the
webserver (or another server with the use of additional relay software).

The Horde Project writes web applications in PHP and releases them under
Open Source licenses.  For more information (including help with jeta)
please visit http://www.horde.org/.

%prep
%setup -q -n %{name}-h3-%{version}

# JTA isn't OSI (non-commercial only), so get rid of it
%patch0 -p0
rm jar/jta26.jar
rm jar/jta.conf

%build

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_datadir}/horde/%{name}
# Copy eveything... except config and docs
cp -a * %{buildroot}%{_datadir}/horde/%{name}
rm -rf %{buildroot}%{_datadir}/horde/%{name}/config/
rm -rf %{buildroot}%{_datadir}/horde/%{name}/docs/
rm %{buildroot}%{_datadir}/horde/%{name}/COPYING
rm %{buildroot}%{_datadir}/horde/%{name}/README*

# Copy locale *.mo files into /usr/share/locale
for lang in %{buildroot}%{_datadir}/horde/%{name}/locale/*; do
	mkdir -p %{buildroot}%{_datadir}/locale/`basename $lang`/LC_MESSAGES
	if [ -f $lang/LC_MESSAGES/*.mo ]; then
		for file in $lang/LC_MESSAGES/*.mo; do
			cp -a $file %{buildroot}%{_datadir}/locale/`basename $lang`/LC_MESSAGES/
		done
	fi
done
%find_lang %{name}

# Put our config files in /etc/horde/ingo and make symlinks
install -m 0770 -d %{buildroot}%{_sysconfdir}/horde/%{name}
cp -a config/* %{buildroot}%{_sysconfdir}/horde/%{name}
ln -fs ../../../..%{_sysconfdir}/horde/%{name} %{buildroot}%{_datadir}/horde/%{name}/config

# Create default config files
pushd %{buildroot}%{_sysconfdir}/horde/%{name}
for d in *.dist; do
	d0=`basename $d .dist`
	if [ ! -f "$d0" ]; then
		cp -p $d $d0
	fi
done
popd

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root,-)
# Include top level with %dir so not all files are sucked in
%{_datadir}/horde/%{name}

# Mark documentation files with %doc and %docdir
%doc docs/
%doc COPYING
%doc README

# Mark configuration files with %config and use secure permissions
# (note that .dist and .xml files are not user-edited and may change each
#	release, so we don't mark noreplace)
%attr(0770,apache,apache) %config %dir %{_sysconfdir}/horde/%{name}
%attr(0640,apache,apache) %config %{_sysconfdir}/horde/%{name}/*.dist
%attr(0660,apache,apache) %config(noreplace) %{_sysconfdir}/horde/%{name}/*.php
%attr(0660,apache,apache) %config %{_sysconfdir}/horde/%{name}/*.xml

%changelog
* Sun Jan 28 2007 Brandon Holbrook <fedora at theholbrooks.org> 1.0-1
- Update to 1.0 final

* Fri Dec 29 2006 Brandon Holbrook <fedora at theholbrooks.org> 0-1.0.rc2.1
- Initial RPM

nojta.patch:

--- NEW FILE nojta.patch ---
--- config/prefs.php.dist.old	2006-11-22 00:33:08.000000000 -0600
+++ config/prefs.php.dist	2006-12-30 03:31:45.000000000 -0600
@@ -24,17 +24,6 @@
                        'sshtools_autohide')
 );
 
-$prefGroups['jta'] = array(
-    'column' => _("Applet Options"),
-    'label' => _("JTA Options"),
-    'desc' => _("Options that control the behavior of the JTA applet."),
-    'members' => array('jta_detach', 'jta_detach_fullscreen',
-                       'jta_detach_title', 'jta_detach_immediately',
-                       'jta_detach_start', 'jta_detach_stop',
-                       'jta_detach_menubar', 'jta_detach_disconnect',
-                       'jta_disconnect')
-);
-
 //
 $_prefs['host'] = array(
     'value' => '',
@@ -60,7 +49,7 @@
     'shared' => false,
     'type' => 'enum',
     'enum' => array('sshtools' => _("SSHTools"),
-                    'jta' => _("JTA (non-commerical use only)")),
+                    ),
     'desc' => _("SSH application to use:")
 );
 
@@ -146,84 +135,3 @@
     'type' => 'checkbox',
     'desc' => _("Enable auto-hiding of the tool bar, menu bar, status bar and scroll bar?")
 );
-
-//
-$_prefs['jta_detach'] = array(
-    'value' => 0,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Detach the actual terminal display and its components from the browser window and run in a separate window?")
-);
-
-//
-$_prefs['jta_detach_fullscreen'] = array(
-    'value' => 0,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Make the detached window fill the entire screen?")
-);
-
-//
-$_prefs['jta_detach_title'] = array(
-    'value' => _("SSH Terminal"),
-    'locked' => false,
-    'shared' => false,
-    'type' => 'text',
-    'desc' => _("The window title of the detached applet.")
-);
-
-//
-$_prefs['jta_detach_immediately'] = array(
-    'value' => 0,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("If selected, applet will detach immediately from page on load. If not selected, user will need to press start button before applet becomes detached.")
-);
-
-//
-$_prefs['jta_detach_start'] = array(
-    'value' => _("Connect"),
-    'locked' => false,
-    'shared' => false,
-    'type' => 'text',
-    'desc' => _("The text to use for the start button.")
-);
-
-//
-$_prefs['jta_detach_stop'] = array(
-    'value' => _("Disconnect"),
-    'locked' => false,
-    'shared' => false,
-    'type' => 'text',
-    'desc' => _("The text to use for the disconnect button.")
-);
-
-//
-$_prefs['jta_detach_menubar'] = array(
-    'value' => 1,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Show the menubar in the detached applet?")
-);
-
-//
-$_prefs['jta_detach_disconnect'] = array(
-    'value' => 1,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Close the detached window if the SSH session is lost?")
-);
-
-//
-$_prefs['jta_disconnect'] = array(
-    'value' => 1,
-    'locked' => false,
-    'shared' => false,
-    'type' => 'checkbox',
-    'desc' => _("Close the SSH session if you leave the page?")
-);


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/jeta/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	2 Mar 2007 07:14:01 -0000	1.1
+++ .cvsignore	3 Mar 2007 05:40:00 -0000	1.2
@@ -0,0 +1 @@
+jeta-h3-1.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/jeta/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	2 Mar 2007 07:14:01 -0000	1.1
+++ sources	3 Mar 2007 05:40:00 -0000	1.2
@@ -0,0 +1 @@
+674449d79e603db2fa88c6de8882ccd4  jeta-h3-1.0.tar.gz




More information about the fedora-extras-commits mailing list