File novnc.spec of Package novnc
Name: novnc
Version: 0.6.2
Release: 1%{?dist}
Summary: VNC client using HTML5 (Web Sockets, Canvas) with encryption support
License: MPLv2.0
URL: https://github.com/kanaka/noVNC
Source0: https://github.com/kanaka/noVNC/archive/v%{version}.tar.gz
BuildArch: noarch
%description
Websocket implementation of VNC client
%prep
%setup -q -n noVNC-%{version}
%build
%install
%{__install} -d %{buildroot}%{_datadir}/novnc/utils
%{__install} -m 444 *html %{buildroot}%{_datadir}/novnc
#provide an index file to prevent default directory browsing
%{__install} -m 444 vnc.html %{buildroot}%{_datadir}/novnc/index.html
%{__install} -d %{buildroot}%{_datadir}/novnc/include/
%{__install} -m 444 include/*.* %{buildroot}%{_datadir}/novnc/include
%{__install} -d %{buildroot}%{_datadir}/novnc/images
%{__install} -m 444 images/*.* %{buildroot}%{_datadir}/novnc/images
%files
%defattr(-,root,root,-)
%doc README.md LICENSE.txt
%{_usr}/share/novnc
%changelog
* Fri Dec 22 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.6.2-1
- Upgrade to 0.6.2.
* Thu Sep 15 2017 Yunfei Shi <shiyf2@lenovo.com> - 0.6.1-1
- Initial RPM release.