|
|
@ -1,10 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Fedora pkg review: http://bugzilla.redhat.com/429749
|
|
|
|
# Fedora pkg review: http://bugzilla.redhat.com/429749
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
|
|
|
|
%define system_minilzo 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Library to make writing a vnc server easy
|
|
|
|
Summary: Library to make writing a vnc server easy
|
|
|
|
Name: libvncserver
|
|
|
|
Name: libvncserver
|
|
|
|
Version: 0.9.7
|
|
|
|
Version: 0.9.7
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 2%{?dist}
|
|
|
|
# NOTE: --with-tightvnc-filetransfer => GPLv2
|
|
|
|
# NOTE: --with-tightvnc-filetransfer => GPLv2
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
Group: System Environment/Libraries
|
|
|
@ -15,6 +19,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
Patch1: libvncserver-0.9.7-system_minilzo.patch
|
|
|
|
Patch1: libvncserver-0.9.7-system_minilzo.patch
|
|
|
|
Patch2: libvncserver-0.9.1-multilib.patch
|
|
|
|
Patch2: libvncserver-0.9.1-multilib.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# safer LINUX platform detection (from opensuse)
|
|
|
|
|
|
|
|
Patch50: libvncserver-LINUX.patch
|
|
|
|
|
|
|
|
|
|
|
|
# upstream name
|
|
|
|
# upstream name
|
|
|
|
Obsoletes: LibVNCServer < %{version}-%{release}
|
|
|
|
Obsoletes: LibVNCServer < %{version}-%{release}
|
|
|
|
Provides: LibVNCServer = %{version}-%{release}
|
|
|
|
Provides: LibVNCServer = %{version}-%{release}
|
|
|
@ -22,7 +29,7 @@ Provides: LibVNCServer = %{version}-%{release}
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: findutils
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: lzo-minilzo lzo-devel
|
|
|
|
%{?system_minilzo:BuildRequires: lzo-minilzo lzo-devel}
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
LibVNCServer makes writing a VNC server (or more correctly, a program
|
|
|
|
LibVNCServer makes writing a VNC server (or more correctly, a program
|
|
|
@ -47,11 +54,14 @@ Provides: LibVNCServer-devel = %{version}-%{release}
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n LibVNCServer-%{version}
|
|
|
|
%setup -q -n LibVNCServer-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?system_minilzo}
|
|
|
|
%patch1 -p1 -b .system_minilzo
|
|
|
|
%patch1 -p1 -b .system_minilzo
|
|
|
|
#nuke bundled minilzo
|
|
|
|
#nuke bundled minilzo
|
|
|
|
find . -name minilzo\* -exec rm -f {} \;
|
|
|
|
find . -name minilzo\* -exec rm -f {} \;
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%patch2 -p1 -b .multilib
|
|
|
|
%patch2 -p1 -b .multilib
|
|
|
|
|
|
|
|
%patch50 -p0 -b .LINUX
|
|
|
|
|
|
|
|
|
|
|
|
# fix encoding
|
|
|
|
# fix encoding
|
|
|
|
mv AUTHORS AUTHORS.OLD && \
|
|
|
|
mv AUTHORS AUTHORS.OLD && \
|
|
|
@ -70,7 +80,7 @@ find -name "*.c" -o -name "*.h" | xargs chmod 644
|
|
|
|
# hack to omit unused-direct-shlib-dependencies
|
|
|
|
# hack to omit unused-direct-shlib-dependencies
|
|
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo"
|
|
|
|
make %{?_smp_mflags} %{?system_minilzo:CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
@ -108,6 +118,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-2
|
|
|
|
|
|
|
|
- fix detection of LINUX platform/define
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
|
|
|
|
* Mon May 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 0.9.7-1
|
|
|
|
- LibVNCServer-0.9.7
|
|
|
|
- LibVNCServer-0.9.7
|
|
|
|
|
|
|
|
|
|
|
|