vnc/vnc.spec

72 lines
2.4 KiB
RPMSpec

%define pkgver %(echo %version | tr . _)
Name: vnc
Version: 4.1.3
Release: 1mamba
Summary: VNC 4 remote access software for desktop and mobile platforms
Group: Applications/Networking
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.realvnc.com/
# WARNING: needs to be downloaded from site
Source: http://www.realvnc.com/download/binary/785/vnc-%{pkgver}-unixsrc.tar.gz
Patch0: vnc-4.1.3-glibc-2.19.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXtst-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
VNC allows you to access and control your desktop applications wherever you are in the world, whenever you need to. VNC has a widespread user base, from individuals to the world's largest multi-national companies, utilizing the technology for a range of applications.
%debug_package
%prep
%setup -q -n %{name}-%{pkgver}-unixsrc
%patch0 -p1
%build
cd unix
%configure
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd unix
install -d %{buildroot}{%{_bindir},%{_mandir}/man1}
install -m0755 vncconfig/vncconfig %{buildroot}%{_bindir}/vnc4config
install -m0644 vncconfig/vncconfig.man %{buildroot}%{_mandir}/man1/vnc4config.1
install -m0755 vncviewer/vncviewer %{buildroot}%{_bindir}/vnc4viewer
install -m0644 vncviewer/vncviewer.man %{buildroot}%{_mandir}/man1/vnc4viewer.1
install -m0755 vncpasswd/vncpasswd %{buildroot}%{_bindir}/vnc4passwd
install -m0644 vncpasswd/vncpasswd.man %{buildroot}%{_mandir}/man1/vnc4passwd.1
install -m0755 x0vncserver/x0vncserver %{buildroot}%{_bindir}/vnc4server
install -m0644 x0vncserver/x0vncserver.man %{buildroot}%{_mandir}/man1/vnc4server.1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/vnc4config
%{_bindir}/vnc4passwd
%{_bindir}/vnc4server
%{_bindir}/vnc4viewer
%{_mandir}/man1/vnc4config.1*
%{_mandir}/man1/vnc4passwd.1*
%{_mandir}/man1/vnc4server.1*
%{_mandir}/man1/vnc4viewer.1*
%doc LICENCE.txt
%changelog
* Wed May 14 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 4.1.3-1mamba
- package created by autospec