do not use bundled copy of minilzo

epel9
Manuel Wolfshant 17 years ago
parent b6e57290fe
commit 257c22b779

@ -1 +1,2 @@
LibVNCServer-0.9.1.tar.gz
libvnc-minilzo.patch

@ -4,12 +4,13 @@
Summary: Library to make writing a vnc server easy
Name: libvncserver
Version: 0.9.1
Release: 2%{?dist}
Release: 3%{?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
Patch0: libvnc-minilzo.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# FIXME/TODO
@ -26,6 +27,7 @@ BuildRequires: findutils
BuildRequires: libjpeg-devel
#BuildRequires: libICE-devel libXdamage-devel libXfixes-devel libXinerama-devel libXrandr-devel
BuildRequires: zlib-devel
BuildRequires: lzo-minilzo lzo-devel
%description
LibVNCServer makes writing a VNC server (or more correctly, a program
@ -49,6 +51,9 @@ Provides: LibVNCServer-devel = %{version}-%{release}
%prep
%setup -q -n LibVNCServer-%{version}
#nuke bundled minilzo
%patch0 -p1
find . -name minilzo\* -exec rm -f {} \;
#patch1 -p1 -b .pkgconfig
#aclocal
@ -70,11 +75,10 @@ find -name "*.c" -o -name "*.h" | xargs chmod 644
%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}
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -I %{_includedir}/lzo" LDFLAGS="$LDFLAGS -lminilzo"
%install
@ -110,6 +114,9 @@ rm -rf %{buildroot}
%changelog
* Thu Apr 10 2008 Manuel Wolfshant <wolfy@fedoraproject.org> 0.9.1-3
- do not use bundled copy of minilzo
* Sun Jan 27 2008 Rex Dieter <rdieter@fedoraproject.org> 0.9.1-2
- hack libtool to omit unused shlib dependencies
- fix AUTHORS encoding

@ -1 +1,2 @@
aa00efc3dabde82fde9509bfbab0aba4 LibVNCServer-0.9.1.tar.gz
0e0db2560a08d993306442294121c3b7 libvnc-minilzo.patch

Loading…
Cancel
Save