gtk-vnc/gtk-vnc.spec

377 lines
10 KiB
RPMSpec
Raw Normal View History

2007-08-17 19:19:12 +00:00
# -*- rpm-spec -*-
# This spec file assumes you are building for Fedora 26 or newer,
2016-10-06 13:06:46 +00:00
# or for RHEL 6 or newer. It may need some tweaks for other distros.
2013-02-22 12:54:51 +00:00
%global with_gir 0
2016-10-06 13:06:46 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 7
2013-02-22 12:54:51 +00:00
%global with_gir 1
2010-07-11 21:10:33 +00:00
%endif
%global with_gtk2 1
%if 0%{?rhel} >= 8
%global with_gtk2 0
%endif
2013-02-22 12:54:51 +00:00
%global with_gtk3 0
2016-10-06 13:06:46 +00:00
%if 0%{?fedora} || 0%{?rhel} >= 7
2013-02-22 12:54:51 +00:00
%global with_gtk3 1
2010-11-05 12:27:38 +00:00
%endif
2013-02-22 12:54:51 +00:00
%global with_vala 0
2011-11-10 16:44:45 +00:00
%if 0%{with_gtk3}
2013-02-22 12:54:51 +00:00
%global with_vala 1
2011-11-10 16:44:45 +00:00
%endif
%if 0%{?fedora} || 0%{?rhel} >= 8
2016-10-06 13:06:46 +00:00
%global tls_priority "@LIBVIRT,SYSTEM"
%else
%global tls_priority "NORMAL"
2016-10-06 13:06:46 +00:00
%endif
2012-07-13 11:25:22 +00:00
2010-11-05 12:27:38 +00:00
Summary: A GTK2 widget for VNC clients
2007-08-17 19:19:12 +00:00
Name: gtk-vnc
Version: 0.9.0
Release: 2%{?dist}%{?extra_release}
2007-08-17 19:19:12 +00:00
License: LGPLv2+
2011-12-21 17:36:52 +00:00
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.5/%{name}-%{version}.tar.xz
Patch1: 0001-fix-crash-when-connection-fails-early.patch
2016-12-22 20:18:52 +00:00
URL: https://wiki.gnome.org/Projects/gtk-vnc
Requires: gvnc = %{version}-%{release}
%if %{with_gtk2}
2010-07-11 21:10:33 +00:00
BuildRequires: gtk2-devel >= 2.14
%endif
%if 0%{?fedora}
BuildRequires: python3
%else
%if 0%{?rhel} > 7
BuildRequires: python3-devel
%else
BuildRequires: python
%endif
%endif
BuildRequires: gnutls-devel libgcrypt-devel cyrus-sasl-devel zlib-devel intltool
2010-07-11 21:10:33 +00:00
%if %{with_gir}
BuildRequires: gobject-introspection-devel
%endif
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
BuildRequires: gtk3-devel
%endif
2011-11-10 16:44:45 +00:00
%if %{with_vala}
BuildRequires: vala-tools
%endif
2012-07-13 11:25:22 +00:00
BuildRequires: pulseaudio-libs-devel
2013-02-22 12:54:51 +00:00
BuildRequires: /usr/bin/pod2man
2007-08-17 19:19:12 +00:00
%description
2010-11-05 12:27:38 +00:00
gtk-vnc is a VNC viewer widget for GTK2. It is built using coroutines
2007-08-17 19:19:12 +00:00
allowing it to be completely asynchronous while remaining single threaded.
%if %{with_gtk2}
2007-08-17 19:19:12 +00:00
%package devel
2010-11-05 12:27:38 +00:00
Summary: Development files to build GTK2 applications with gtk-vnc
2010-07-11 21:10:33 +00:00
Requires: %{name} = %{version}-%{release}
2007-08-17 19:19:12 +00:00
Requires: pkgconfig
2010-11-05 12:27:38 +00:00
Requires: gtk2-devel
2007-08-17 19:19:12 +00:00
%description devel
2010-11-05 12:27:38 +00:00
gtk-vnc is a VNC viewer widget for GTK2. It is built using coroutines
2007-08-17 19:19:12 +00:00
allowing it to be completely asynchronous while remaining single threaded.
Libraries, includes, etc. to compile with the gtk-vnc library
%endif
2007-08-17 19:19:12 +00:00
2010-07-11 21:10:33 +00:00
%package -n gvnc
Summary: A GObject for VNC connections
%description -n gvnc
gvnc is a GObject for managing a VNC connection. It provides all the
infrastructure required to build a VNC client without having to deal
with the raw protocol itself.
%package -n gvnc-devel
Summary: Libraries, includes, etc. to compile with the gvnc library
Requires: gvnc = %{version}-%{release}
Requires: pkgconfig
%description -n gvnc-devel
gvnc is a GObject for managing a VNC connection. It provides all the
infrastructure required to build a VNC client without having to deal
with the raw protocol itself.
Libraries, includes, etc. to compile with the gvnc library
2012-07-13 11:25:22 +00:00
%package -n gvncpulse
Summary: A Pulse Audio bridge for VNC connections
Requires: gvnc = %{version}-%{release}
2012-07-13 11:25:22 +00:00
%description -n gvncpulse
gvncpulse is a bridge to the Pulse Audio system for VNC.
It allows VNC clients to play back audio on the local
system
%package -n gvncpulse-devel
Summary: Libraries, includes, etc. to compile with the gvncpulse library
Requires: gvncpulse = %{version}-%{release}
Requires: pkgconfig
%description -n gvncpulse-devel
gvncpulse is a bridge to the Pulse Audio system for VNC.
It allows VNC clients to play back audio on the local
system
Libraries, includes, etc. to compile with the gvnc library
2010-07-11 21:10:33 +00:00
%package -n gvnc-tools
Summary: Command line VNC tools
Requires: gvnc = %{version}-%{release}
2010-07-11 21:10:33 +00:00
%description -n gvnc-tools
Provides useful command line utilities for interacting with
VNC servers. Includes the gvnccapture program for capturing
screenshots of a VNC desktop
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
%package -n gtk-vnc2
Summary: A GTK3 widget for VNC clients
Requires: gvnc = %{version}-%{release}
2010-11-05 12:27:38 +00:00
%description -n gtk-vnc2
2013-02-22 12:54:51 +00:00
gtk-vnc is a VNC viewer widget for GTK3. It is built using coroutines
2010-11-05 12:27:38 +00:00
allowing it to be completely asynchronous while remaining single threaded.
%package -n gtk-vnc2-devel
Summary: Development files to build GTK3 applications with gtk-vnc
Requires: gtk-vnc2 = %{version}-%{release}
2010-11-05 12:27:38 +00:00
Requires: pkgconfig
Requires: gtk3-devel
%description -n gtk-vnc2-devel
gtk-vnc is a VNC viewer widget for GTK3. It is built using coroutines
allowing it to be completely asynchronous while remaining single threaded.
Libraries, includes, etc. to compile with the gtk-vnc library
%endif
2007-08-17 19:19:12 +00:00
%prep
2010-11-05 12:27:38 +00:00
%setup -q -n gtk-vnc-%{version} -c
cd gtk-vnc-%{version}
%patch1 -p1
cd ..
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
cp -a gtk-vnc-%{version} gtk-vnc2-%{version}
%endif
2007-08-17 19:19:12 +00:00
%build
2010-07-11 21:10:33 +00:00
%if %{with_gir}
%define gir_arg --enable-introspection=yes
%else
%define gir_arg --enable-introspection=no
%endif
%if %{with_gtk2}
2010-11-05 12:27:38 +00:00
cd gtk-vnc-%{version}
%configure --with-gtk=2.0 %{gir_arg} \
2016-10-06 13:06:46 +00:00
--with-tls-priority=%{tls_priority}
2010-11-05 12:27:38 +00:00
%__make %{?_smp_mflags} V=1
chmod -x examples/*.pl examples/*.js examples/*.py
2010-11-05 12:27:38 +00:00
cd ..
%endif
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
cd gtk-vnc2-%{version}
%configure --with-gtk=3.0 %{gir_arg} \
2016-10-06 13:06:46 +00:00
--with-tls-priority=%{tls_priority}
2010-07-11 21:10:33 +00:00
%__make %{?_smp_mflags} V=1
chmod -x examples/*.pl examples/*.js examples/*.py
2010-11-05 12:27:38 +00:00
cd ..
%endif
2007-08-17 19:19:12 +00:00
%install
rm -fr %{buildroot}
%if %{with_gtk2}
2010-11-05 12:27:38 +00:00
cd gtk-vnc-%{version}
%__make install DESTDIR=%{buildroot}
cd ..
%endif
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
cd gtk-vnc2-%{version}
2008-03-07 17:58:33 +00:00
%__make install DESTDIR=%{buildroot}
2010-11-05 12:27:38 +00:00
cd ..
%endif
2007-08-17 19:19:12 +00:00
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la
2010-11-05 12:27:38 +00:00
2010-07-11 21:10:33 +00:00
%find_lang %{name}
2009-11-02 04:31:00 +00:00
2007-08-17 19:19:12 +00:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n gvnc -p /sbin/ldconfig
%postun -n gvnc -p /sbin/ldconfig
%post -n gvncpulse -p /sbin/ldconfig
%postun -n gvncpulse -p /sbin/ldconfig
2016-10-06 13:06:46 +00:00
%if %{with_gtk3}
%post -n gtk-vnc2 -p /sbin/ldconfig
%postun -n gtk-vnc2 -p /sbin/ldconfig
2016-10-06 13:06:46 +00:00
%endif
%if %{with_gtk2}
2010-11-05 12:27:38 +00:00
%files
2010-07-11 21:10:33 +00:00
%{_libdir}/libgtk-vnc-1.0.so.*
%if %{with_gir}
%{_libdir}/girepository-1.0/GtkVnc-1.0.typelib
%endif
2007-08-17 19:19:12 +00:00
%files devel
2010-11-05 12:27:38 +00:00
%doc gtk-vnc-%{version}/examples/gvncviewer.c
2010-07-11 21:10:33 +00:00
%{_libdir}/libgtk-vnc-1.0.so
2007-08-17 19:19:12 +00:00
%dir %{_includedir}/%{name}-1.0/
%{_includedir}/%{name}-1.0/*.h
%{_libdir}/pkgconfig/%{name}-1.0.pc
2010-07-11 21:10:33 +00:00
%if %{with_gir}
%{_datadir}/gir-1.0/GtkVnc-1.0.gir
%endif
%endif
2007-08-17 19:19:12 +00:00
2010-11-05 12:27:38 +00:00
%files -n gvnc -f %{name}.lang
2010-07-11 21:10:33 +00:00
%{_libdir}/libgvnc-1.0.so.*
%if %{with_gir}
%{_libdir}/girepository-1.0/GVnc-1.0.typelib
%endif
2011-11-10 16:44:45 +00:00
%if %{with_vala}
%{_datadir}/vala/vapi/gvnc-1.0.deps
2011-11-10 16:44:45 +00:00
%{_datadir}/vala/vapi/gvnc-1.0.vapi
%endif
2010-07-11 21:10:33 +00:00
%files -n gvnc-devel
%{_libdir}/libgvnc-1.0.so
%dir %{_includedir}/gvnc-1.0/
%{_includedir}/gvnc-1.0/*.h
%{_libdir}/pkgconfig/gvnc-1.0.pc
%if %{with_gir}
%{_datadir}/gir-1.0/GVnc-1.0.gir
%endif
2012-07-13 11:25:22 +00:00
%files -n gvncpulse -f %{name}.lang
%{_libdir}/libgvncpulse-1.0.so.*
%if %{with_gir}
%{_libdir}/girepository-1.0/GVncPulse-1.0.typelib
%endif
%if %{with_vala}
%{_datadir}/vala/vapi/gvncpulse-1.0.deps
2012-07-13 11:25:22 +00:00
%{_datadir}/vala/vapi/gvncpulse-1.0.vapi
%endif
%files -n gvncpulse-devel
%{_libdir}/libgvncpulse-1.0.so
%dir %{_includedir}/gvncpulse-1.0/
%{_includedir}/gvncpulse-1.0/*.h
%{_libdir}/pkgconfig/gvncpulse-1.0.pc
%if %{with_gir}
%{_datadir}/gir-1.0/GVncPulse-1.0.gir
%endif
2010-07-11 21:10:33 +00:00
%files -n gvnc-tools
2010-11-05 12:27:38 +00:00
%doc gtk-vnc-%{version}/AUTHORS
%doc gtk-vnc-%{version}/ChangeLog
%doc gtk-vnc-%{version}/ChangeLog-old
%doc gtk-vnc-%{version}/NEWS
%doc gtk-vnc-%{version}/README
%doc gtk-vnc-%{version}/COPYING.LIB
2010-07-11 21:10:33 +00:00
%{_bindir}/gvnccapture
%{_mandir}/man1/gvnccapture.1*
2010-11-05 12:27:38 +00:00
%if %{with_gtk3}
%files -n gtk-vnc2
%{_libdir}/libgtk-vnc-2.0.so.*
%if %{with_gir}
%{_libdir}/girepository-1.0/GtkVnc-2.0.typelib
%endif
2011-11-10 16:44:45 +00:00
%if %{with_vala}
%{_datadir}/vala/vapi/gtk-vnc-2.0.deps
%{_datadir}/vala/vapi/gtk-vnc-2.0.vapi
%endif
2010-11-05 12:27:38 +00:00
%files -n gtk-vnc2-devel
%doc gtk-vnc2-%{version}/examples/gvncviewer.c
%if %{with_gir}
%doc gtk-vnc2-%{version}/examples/gvncviewer.js
%doc gtk-vnc2-%{version}/examples/gvncviewer.pl
%doc gtk-vnc2-%{version}/examples/gvncviewer.py
2010-11-05 12:27:38 +00:00
%endif
%{_libdir}/libgtk-vnc-2.0.so
%dir %{_includedir}/%{name}-2.0/
%{_includedir}/%{name}-2.0/*.h
%{_libdir}/pkgconfig/%{name}-2.0.pc
%if %{with_gir}
%{_datadir}/gir-1.0/GtkVnc-2.0.gir
%endif
%endif
2007-08-17 19:19:12 +00:00
%changelog
* Fri Aug 24 2018 Daniel P. Berrangé <berrange@redhat.com> - 0.9.0-2
- Fix crash if connection fails early (rhbz #1620203)
* Fri Aug 17 2018 Daniel P. Berrangé <berrange@redhat.com> - 0.9.0-1
- Update to 0.9.0 release
* Wed Aug 1 2018 Daniel P. Berrangé <berrange@redhat.com> - 0.8.0-1
- Update to 0.8.0 release
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Mar 23 2018 Daniel P. Berrangé <berrange@redhat.com> - 0.7.2-1
- Rebase to 0.7.2 release
- Disable python2 sub-RPM
* Wed Feb 14 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.7.1-7
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.1-5
- Add Provides for the old name without %%_isa
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.7.1-4
- Python 2 binary package renamed to python2-gtk-vnc
See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri May 19 2017 Daniel P. Berrange <berrange@redhat.com> - 0.7.1-1
- Update to 0.7.1 release
- Fix incompatibility with libvncserver/x11vnc (rhbz #1421785)
* Thu Feb 9 2017 Daniel P. Berrange <berrange@redhat.com> - 0.7.0-1
- Update to 0.7.0 release
- CVE-2017-5884 - fix bounds checking for RRE, hextile and
copyrect encodings
- CVE-2017-5885 - fix color map index bounds checking
2016-10-06 13:06:46 +00:00
* Thu Oct 6 2016 Daniel P. Berrange <berrange@redhat.com> - 0.6.0-1
- Update to 0.6.0 release
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild