Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 628eca5af3fa17f257a793cb88bde2e1 > files > 8

rfb-0.6.1-10mdv2008.0.src.rpm

%define name rfb
%define version 0.6.1
%define release %mkrel 10

Summary:	Rfb is a set of remote desktop tools
Name:		%{name}
Version:	%{version}
Release:	%{release}

Source0:	http://download.hexonet.com/software/rfb/%{name}-%{version}.tar.bz2
Source1:	genpassHex.cc.bz2
#Patch0:	rfb-0.1.2-gcc296.patch.bz2
Patch1:		rfb-0.1.2-makefile.patch
Patch2:		rfb-0.6.1-c++fixes.patch
Patch3:		rfb-0.6.1-socklen_t.patch
Patch4:		rfb-0.6.1-gcc3_4.patch
# From Debian / Andreas Jochens:
Patch5:		rfb-0.6.1-gcc41.patch
URL:		http://www.hexonet.de/	
License:	GPL
Group:		Networking/Remote access
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:	libxclass-devel X11-devel xpm-devel zlib-devel 

%description
The heXoNet RFB Software package includes many different projects. 
The goal of this package is to provide a comprehensive collection of 
rfb enabled tools and applications. One application, x0rfbserver, was 
(and maybe still is) the only complete remote control solution for 
the X Window System.


%prep
%setup -q
#%patch0 -p1 -b .296
%patch1 -p1 
%patch2 -p1 -b .c++fixes
%patch3 -p1 -b .socklen_t
%patch4 -p1 -b .gcc3_4
%patch5 -p1 -b .gcc41
bzcat %{SOURCE1} > x0rfbserver/genpassHex.cc

%build
make depend
%make CXXFLAGS="$RPM_OPT_FLAGS -DUSE_ZLIB_WARREN `xc-config --cflags` -I../include -finline-functions -funroll-loops -O3 -Wall" 
(cd x0rfbserver
%make CXXFLAGS="$RPM_OPT_FLAGS -DUSE_ZLIB_WARREN `xc-config --cflags` -I../include -finline-functions -funroll-loops -O3 -Wall")

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_mandir}/man1

install -m 755 x0rfbserver/x0rfbserver x0rfbserver/genpassHex xrfbviewer/xplayfbs xrfbviewer/xrfbviewer $RPM_BUILD_ROOT%{_bindir}
install -m 644 man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README INSTALL COPYING 
%{_bindir}/*
%{_mandir}/man1/*



%changelog
* Sun May 13 2007 Adam Williamson <awilliamson@mandriva.com> 0.6.1-10mdv2008.0
+ Revision: 26533
- clean spec, add patch from Debian to fix build with modern gcc, rebuild for new era and new xclass


* Sun May 07 2006 Stefan van der Eijk <stefan@eijk.nu> 0.6.1-9mdk
- rebuild for sparc

* Wed Jul 21 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 0.6.1-8mdk
- rebuild with gcc 3.4 (patch4)

* Mon Jul 21 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.6.1-7mdk
- rebuild
- cosmetics
- use $RPM_OPT_FLAGS
- extract S0 in %%prep