diff --git a/SPECS/guacamole-jdbc.spec b/SPECS/guacamole-jdbc.spec index 51146ef..a184bb9 100644 --- a/SPECS/guacamole-jdbc.spec +++ b/SPECS/guacamole-jdbc.spec @@ -16,25 +16,23 @@ 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/ +mkdir -p %{buildroot}/usr/share/tomcat/.guacamole/extensions +mkdir -p %{buildroot}/usr/share/tomcat/.guacamole/lib +install -m 644 /usr/share/java/mysql-connector-java.jar %{buildroot}/usr/share/tomcat/.guacamole/lib/ +install -m 644 mysql/guacamole-auth-jdbc-mysql-1.0.0.jar %{buildroot}/usr/share/tomcat/.guacamole/extensions/ +install -m 644 mysql/schema/*.sql %{buildroot}/usr/share/tomcat/.guacamole/lib/ %files %defattr(-,root,root,-) +/usr/share/tomcat/.guacamole/lib/mysql-connector-java.jar +/usr/share/tomcat/.guacamole/extensions/guacamole-auth-jdbc-mysql-1.0.0.jar +/usr/share/tomcat/.guacamole/lib/*.sql %changelog * Wed Apr 10 2019 kjg - 1.0.0-1