Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
playground
>
guacamole
> guacamole.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File guacamole.spec of Package guacamole (Revision 5)
Currently displaying revision
5
,
show latest
Summary: Guacamole Clientless Remote Desktop Name: guacamole Version: 0.6.1 Release: 1 License: AGPL Group: System Environment/Daemons BuildArch: noarch %if 0%{?suse_version} BuildRequires: fastjar %endif Requires: guacd >= 0.6 Requires: guacd < 0.7 Requires: tomcat6 Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This is the main Guacamole webapp which provides basic authentication and an AJAX tunnel to the native Guacamole proxy (guacd). %prep %setup %build #mvn package true %install export NO_BRP_CHECK_BYTECODE_VERSION=true rm -rf %{buildroot} mkdir -p %{buildroot}/var/lib/guacamole cp target/*.war %{buildroot}/var/lib/guacamole/guacamole.war mkdir -p %{buildroot}/etc/guacamole cp doc/example/* %{buildroot}/etc/guacamole sed -i 's/basic-user-mapping:.*/basic-user-mapping: \/etc\/guacamole\/user-mapping.xml/' %{buildroot}/etc/guacamole/*.properties %files %defattr(-,root,root,-) %dir /etc/guacamole %config(noreplace) /etc/guacamole/guacamole.properties %config(noreplace) /etc/guacamole/user-mapping.xml %dir /var/lib/guacamole /var/lib/guacamole/guacamole.war %post ln -sf /var/lib/guacamole/guacamole.war /usr/share/tomcat6/webapps/ || : ln -sf /etc/guacamole/guacamole.properties /usr/share/tomcat6/lib/ || : %postun rm -f /usr/share/tomcat6/webapps/guacamole.war || : rm -f /usr/share/tomcat6/lib/guacamole.properties || : %changelog