From 3d86baf208da525f188271f0f4fecd03758bce14 Mon Sep 17 00:00:00 2001 From: ungleich team Date: Wed, 10 Apr 2019 08:50:10 +0000 Subject: [PATCH] create guacamole jdbc rpm --- SPECS/guacamole-jdbc.spec | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 SPECS/guacamole-jdbc.spec diff --git a/SPECS/guacamole-jdbc.spec b/SPECS/guacamole-jdbc.spec new file mode 100644 index 0000000..51146ef --- /dev/null +++ b/SPECS/guacamole-jdbc.spec @@ -0,0 +1,41 @@ +Name: guacamole-auth-jdbc +Version: 1.0.0 +Release: 1%{?dist} +Epoch: 1 +Summary: Web components from the Guacamole proxy +License: MPLv1.1 or GPLv2+ +URL: http://guac-dev.org/ + +Source0: http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/%{version}/binary/%{name}-%{version}.tar.gz + +%description +Guacamole authoriztion with DB + +#%package -n guacamole-jdbc +Summary: Database authentication with maria DB +Requires: maria%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: tomcat%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +#%if 0%{?fedora} || 0%{?rhel} >= 7 +#Requires(post): systemd +#Requires(preun): systemd +#Requires(postun): systemd +#%endif + + +%prep +%autosetup + +%build + +%install +cp /usr/share/java/mysql-connector-java.jar /usr/share/tomcat/.guacamole/lib/ +mkdir -p /usr/share/tomcat/.guacamole/extensions +cp mysql/guacamole-auth-jdbc-mysql-1.0.0.jar /usr/share/tomcat/.guacamole/extensions/ + +%files +%defattr(-,root,root,-) + +%changelog +* Wed Apr 10 2019 kjg - 1.0.0-1 +- create version 1.0.0.