rpms/tightvnc/devel tightvnc.spec,NONE,1.1

Adam Tkac atkac at fedoraproject.org
Fri Oct 17 12:12:57 UTC 2008


Author: atkac

Update of /cvs/pkgs/rpms/tightvnc/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17152

Added Files:
	tightvnc.spec 
Log Message:
Really added specfile



--- NEW FILE tightvnc.spec ---
%define		revision	3022
%define		date		20081015
%define		releasetag	%{date}svn%{revision}

Name:		tightvnc
Version:	1.5.0
Release:	0.7.%{releasetag}%{?dist}
Summary:	A TightVNC remote display system

Group:		User Interface/Desktops
License:	GPLv2+
URL:		http://www.tightvnc.com

# The source for this package was pulled from upstream's svn.  Use the
# following commands to generate the tarball:
#
#  $ svn export -r%{revison} \
#      https://vnc-tight.svn.sourceforge.net/svnroot/vnc-tight/trunk \
#      tightvnc-%{version}-%{releasetag}
#  $ tar cjf tightvnc-%{version}-%{releasetag}.tar.bz2 \
#      tightvnc-%{version}-%{releasetag}

Source0:	%{name}-%{version}-%{releasetag}.tar.bz2
Source1:	vncserver.init
Source2:	vncserver.sysconfig
Source3:	vnc-16x16.png
Source4:	vnc-24x24.png
Source5:	vnc-48x48.png
Source6:	vncviewer.desktop
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	libX11-devel, automake, autoconf, libtool, gettext, cvs
BuildRequires:	libXext-devel, xorg-x11-server-source
BuildRequires:	xorg-x11-xtrans-devel, xorg-x11-util-macros, libXtst-devel
BuildRequires:	libdrm-devel, libXt-devel, pixman-devel libXfont-devel
BuildRequires:	libxkbfile-devel, openssl-devel, libpciaccess-devel
BuildRequires:	libjpeg-devel
BuildRequires:	desktop-file-utils

Provides:	vnc = 4.1.2-36, vnc-libs = 4.1.2-36
Obsoletes:	vnc < 4.1.2-36, vnc-libs < 4.1.2-36

%description
Virtual Network Computing (VNC) is a remote display system which
allows you to view a computing 'desktop' environment not only on the
machine where it is running, but from anywhere on the Internet and
from a wide variety of machine architectures.  This package contains a
client which will allow you to connect to other desktops running a VNC
server.

%package server
Summary:	A TightVNC server
Group:		User Interface/X
Provides:	vnc-server = 4.1.2-36, vnc-libs = 4.1.2-36
Obsoletes:	vnc-server < 4.1.2-36, vnc-libs < 4.1.2-36
Requires(post):	chkconfig
Requires(preun):chkconfig
Requires(preun):initscripts
Requires(postun):initscripts

%description server
The VNC system allows you to access the same desktop from a wide
variety of platforms.  This package is a TightVNC server, allowing
others to access the desktop on your machine.

%package server-module
Summary:	TightVNC module to Xorg
Group:		User Interface/X
Provides:	vnc-server = 4.1.2-36, vnc-libs = 4.1.2-36
Obsoletes:	vnc-server < 4.1.2-36, vnc-libs < 4.1.2-36
Requires:	xorg-x11-server-Xorg

%description server-module
This package contains libvnc.so module to X server, allowing others
to access the desktop on your machine.

%prep
%setup -q -n %{name}-%{version}-%{releasetag}

cp -r %{_datadir}/xorg-x11-server-source/* unix/xserver
pushd unix/xserver
for all in `find . -type f -perm -001`; do
	chmod -x "$all"
done
patch -p1 -b -fuzz=0 --suffix .vnc < ../xserver.patch
popd

# Use newer gettext
sed -i 's/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_VERSION([0.17])/' \
	unix/configure.ac

%build
export CFLAGS="$RPM_OPT_FLAGS -O0"
export CXXFLAGS="$CFLAGS"

pushd unix
autoreconf -fiv
%configure \
	--disable-static

make %{?_smp_mflags}
popd

pushd unix/xserver
autoreconf -fiv
%configure \
	--disable-xorg --disable-xnest --disable-xvfb --disable-dmx \
	--disable-xwin --disable-xephyr --disable-kdrive --with-pic \
	--disable-xorgcfg --disable-xprint --disable-static \
	--disable-composite --disable-xtrap --enable-xcsecurity \
	--disable-{a,c,m}fb \
	--with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins" \
	--with-fontdir=%{_datadir}/X11/fonts \
	--with-os-name="Fedora" \
	--with-os-vendor="Red Hat, Inc." \
	--with-xkb-output=%{_localstatedir}/lib/xkb \
	--enable-install-libxf86config \
	--disable-xevie \
	--disable-dri2 \
	--enable-glx \
	--disable-config-dbus \
	--disable-config-hal \
	--with-dri-driver-path=%{_libdir}/dri

make %{?_smp_mflags}
popd

%install
rm -rf $RPM_BUILD_ROOT
pushd unix
make install DESTDIR=$RPM_BUILD_ROOT
popd

pushd unix/xserver/hw/vnc
make install DESTDIR=$RPM_BUILD_ROOT
popd

# Install Xvnc as service
mkdir -p $RPM_BUILD_ROOT%{_initddir}
install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initddir}/vncserver

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
install -m644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/vncservers

# Install desktop stuff
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps
install -m644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/vnc.png
install -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/24x24/apps/vnc.png
install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/vnc.png

mkdir $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install \
	--vendor fedora \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	%{SOURCE6}

%find_lang %{name} %{name}.lang

# remove unwanted files
rm -f  $RPM_BUILD_ROOT%{_libdir}/xorg/modules/extensions/libvnc.la

%clean
rm -rf $RPM_BUILD_ROOT

%post
touch -c %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
fi

%postun
touch -c %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
fi

%post server
/sbin/chkconfig --add vncserver

%preun server
if [ "$1" -eq 0 ]; then
	/sbin/service vncserver stop > /dev/null 2>&1
	/sbin/chkconfig --del vncserver
fi

%postun server
if [ "$1" -ge "1" ]; then
	/sbin/service vncserver condrestart > /dev/null 2>&1 || :
fi

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc LICENCE.TXT
%{_bindir}/vncviewer
%{_datadir}/icons/*
%{_datadir}/applications/*
%{_mandir}/man1/vncviewer.1*

%files server
%defattr(-,root,root,-)
%{_initddir}/vncserver
%config(noreplace) %{_sysconfdir}/sysconfig/vncservers
%{_bindir}/vncconfig
%{_bindir}/vncpasswd
%{_bindir}/x0vncserver
%{_bindir}/Xvnc
%{_bindir}/vncserver
%{_mandir}/man1/Xvnc.1*
%{_mandir}/man1/vncpasswd.1*
%{_mandir}/man1/vncconfig.1*
%{_mandir}/man1/vncserver.1*
%{_mandir}/man1/x0vncserver.1*

%files server-module
%defattr(-,root,root,-)
%{_libdir}/xorg/modules/extensions/libvnc.so

%changelog
* Wed Oct 15 2008 Adam Tkac <atkac redhat com> 1.5.0-0.7.20081015svn3022
- r3022 - xserver.patch change was incomplete

* Wed Oct 15 2008 Adam Tkac <atkac redhat com> 1.5.0-0.6.20081015svn3021
- next package review related fixes
- updated to r3021 (updated xserver.patch)

* Wed Oct 15 2008 Adam Tkac <atkac redhat com> 1.5.0-0.5.20081015svn3019
- next package review related fixes
- updated to r3019 (fix libvnc.so building)

* Fri Oct 10 2008 Adam Tkac <atkac redhat com> 1.5.0-0.4.svn2975
- updated to r2975
- Package review related fixes

* Mon Sep 29 2008 Adam Tkac <atkac redhat com> 1.5.0-0.3.svn2831
- dropped mesa-source build dependency
- don't use %%_sbindir/{chkconfig,service}, use /sbin/ instead
- updated to rev 2831

* Wed Jul 07 2008 Adam Tkac <atkac redhat com> 1.5.0-0.2.svn2562
- correct perms on icons
- fixed rpmlint warnings

* Tue May 06 2008 Adam Tkac <atkac redhat com> 1.5.0-0.1.svn2562
- initial release (trunk + 1.5-xserver branches, Fedora vnc devel branch)




More information about the scm-commits mailing list