parent
3f48dcf21f
commit
b2a02bb7f1
@ -0,0 +1 @@
|
|||||||
|
LibVNCServer-0.9.1.tar.gz
|
@ -0,0 +1,20 @@
|
|||||||
|
diff -up LibVNCServer-0.9.1/libvncserver-config.in.multilib LibVNCServer-0.9.1/libvncserver-config.in
|
||||||
|
--- LibVNCServer-0.9.1/libvncserver-config.in.multilib 2007-05-26 21:28:25.000000000 -0500
|
||||||
|
+++ LibVNCServer-0.9.1/libvncserver-config.in 2008-01-22 14:51:08.000000000 -0600
|
||||||
|
@@ -4,7 +4,6 @@ prefix=@prefix@
|
||||||
|
exec_prefix=@exec_prefix@
|
||||||
|
exec_prefix_set=no
|
||||||
|
includedir=@includedir@
|
||||||
|
-libdir=@libdir@
|
||||||
|
|
||||||
|
# if this script is in the same directory as libvncserver-config.in, assume not installed
|
||||||
|
if [ -f "`dirname "$0"`/libvncserver-config.in" ]; then
|
||||||
|
@@ -63,7 +62,7 @@ while test $# -gt 0; do
|
||||||
|
libs="$libs -R$dir"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
- echo "$libs" -lvncserver -lvncclient @LIBS@ @WSOCKLIB@
|
||||||
|
+ echo "$libs" -lvncserver -lvncclient
|
||||||
|
;;
|
||||||
|
--link)
|
||||||
|
echo @CC@
|
@ -0,0 +1,117 @@
|
|||||||
|
|
||||||
|
Summary: Library to make writing a vnc server easy
|
||||||
|
Name: libvncserver
|
||||||
|
Version: 0.9.1
|
||||||
|
Release: 2%{?dist}
|
||||||
|
# NOTE: --with-tightvnc-filetransfer => GPLv2
|
||||||
|
License: GPLv2+
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
URL: http://libvncserver.sourceforge.net/
|
||||||
|
Source0: http://downloads.sf.net/libvncserver/LibVNCServer-%{version}.tar.gz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
# FIXME/TODO
|
||||||
|
#Patch1: libvncserver-0.9.1-pkgconfig.patch
|
||||||
|
# until patch1 works, this will do
|
||||||
|
Patch2: libvncserver-0.9.1-multilib.patch
|
||||||
|
|
||||||
|
# upstream name
|
||||||
|
Obsoletes: LibVNCServer < %{version}-%{release}
|
||||||
|
Provides: LibVNCServer = %{version}-%{release}
|
||||||
|
|
||||||
|
#BuildRequires: automake libtool
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
#BuildRequires: libICE-devel libXdamage-devel libXfixes-devel libXinerama-devel libXrandr-devel
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
LibVNCServer makes writing a VNC server (or more correctly, a program
|
||||||
|
exporting a framebuffer via the Remote Frame Buffer protocol) easy.
|
||||||
|
|
||||||
|
It hides the programmer from the tedious task of managing clients and
|
||||||
|
compression schemata.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
# libvncserver-config deps
|
||||||
|
Requires: coreutils
|
||||||
|
# upstream name
|
||||||
|
Obsoletes: LibVNCServer-devel < %{version}-%{release}
|
||||||
|
Provides: LibVNCServer-devel = %{version}-%{release}
|
||||||
|
%description devel
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n LibVNCServer-%{version}
|
||||||
|
|
||||||
|
#patch1 -p1 -b .pkgconfig
|
||||||
|
#aclocal
|
||||||
|
#automake
|
||||||
|
|
||||||
|
%patch2 -p1 -b .multilib
|
||||||
|
|
||||||
|
# fix encoding
|
||||||
|
mv AUTHORS AUTHORS.OLD && \
|
||||||
|
iconv -f ISO_8859-1 -t UTF8 AUTHORS.OLD > AUTHORS && \
|
||||||
|
touch --reference AUTHORS.OLD AUTHORS
|
||||||
|
|
||||||
|
# fix source perms
|
||||||
|
find -name "*.c" -o -name "*.h" | xargs chmod 644
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--without-tightvnc-filetransfer
|
||||||
|
|
||||||
|
# hack to omit unused-direct-shlib-dependencies
|
||||||
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
# unpackaged files
|
||||||
|
rm -f %{buildroot}%{_bindir}/LinuxVNC
|
||||||
|
rm -f %{buildroot}%{_libdir}/lib*.a
|
||||||
|
rm -f %{buildroot}%{_libdir}/lib*.la
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc AUTHORS ChangeLog COPYING NEWS README TODO
|
||||||
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/*-config
|
||||||
|
%{_includedir}/rfb/
|
||||||
|
%{_libdir}/lib*.so
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
|
||||||
|
- hack libtool to omit unused shlib dependencies
|
||||||
|
- fix AUTHORS encoding
|
||||||
|
- fix src perms
|
||||||
|
|
||||||
|
* Mon Jan 21 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-1
|
||||||
|
- 0.9.1
|
Loading…
Reference in new issue