78345db
%bcond_with enc_x264
ff57c84
%bcond_with dec_avcodec2
78345db
%bcond_with csc_swscale
78345db
78345db
# These are nececessary as the _with_foo is *not* defined if the
78345db
# --with flag isn't specifed, and we need to have the --without
78345db
# specified option in that case.
78345db
%if !%{with enc_x264}
78345db
%define _with_enc_x264 --without-enc_x264
78345db
%endif
78345db
ff57c84
%if !%{with dec_avcodec2}
ff57c84
%define _with_dec_avcodec2 --without-dec_avcodec2
78345db
%endif
78345db
78345db
%if !%{with csc_swscale}
78345db
%define _with_csc_swscale --without-csc_swscale
78345db
%endif
78345db
78345db
# Remove private provides from .so files in the python_sitearch directory
78345db
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so$
78345db
78345db
Name:           xpra
e3e7440
Version:        0.15.5
e3e7440
Release:        1%{?dist}
78345db
Summary:        Remote display server for applications and desktops
78345db
78345db
License:        GPLv2+ and BSD and LGPLv3+ and MIT
78345db
URL:            https://www.xpra.org/
78345db
Source0:        https://xpra.org/src/%{name}-%{version}.tar.xz
78345db
1b26b2d
78345db
BuildRequires:  python2-devel pygobject2-devel pygtk2-devel
78345db
BuildRequires:  libXtst-devel
78345db
BuildRequires:  libxkbfile-devel
78345db
BuildRequires:  Cython
78345db
BuildRequires:  desktop-file-utils
78345db
BuildRequires:  libvpx-devel
78345db
BuildRequires:  libwebp-devel
faf3329
BuildRequires:  libappstream-glib
ff57c84
BuildRequires:  cups-devel
1196876
BuildRequires:  redhat-lsb-core
ff57c84
78345db
%if %{with enc_x264}
78345db
BuildRequires:  x264-devel
78345db
%endif
ff57c84
%if %{with dec_avcodec2} || %{with csc_swscale}
ff57c84
%BuildRequires:  ffmpeg-devel
78345db
%endif
78345db
78345db
Requires:       python-imaging
78345db
Requires:       dbus-python
2b4af44
Requires:       xorg-x11-server-utils
0f8624a
Requires:       xorg-x11-drv-dummy
78345db
Requires:       PyOpenGL pygtkglext
78345db
Requires:       python-numeric numpy
78345db
Requires:       gstreamer gstreamer-python
78345db
Requires:       gstreamer-plugins-base gstreamer-plugins-good
78345db
Requires:       pulseaudio pulseaudio-utils
78345db
Requires:       python-rencode
78345db
Requires:       js-web-socket-js
78345db
Requires:       js-jquery
ff57c84
Requires:       cups-filesystem
9ac5dd0
Requires:       shared-mime-info
67247c7
Requires:       python-cups
67247c7
Requires:       python-lz4
78345db
78345db
Provides:       bundled(js-jquery-ui) = 1.10.4
78345db
%if 0%{?fedora} >= 21
78345db
Requires:       js-zlib
78345db
%else
78345db
Provides:       bundled(js-zlib)
78345db
%endif
78345db
78345db
78345db
%description
78345db
Xpra is "screen for X": it allows you to run X programs, usually on a remote
78345db
host, direct their display to your local machine, and then to disconnect from
78345db
these programs and reconnect from the same or another machine, without losing
78345db
any state. It gives you remote access to individual applications.
78345db
78345db
Xpra is "rootless" or "seamless": programs you run under it show up on your
78345db
desktop as regular programs, managed by your regular window manager.
78345db
Sessions can be accessed over SSH, or password protected over plain TCP sockets.
78345db
Xpra is usable over reasonably slow links and does its best to adapt to changing
78345db
network bandwidth constraints.
78345db
ff57c84
%global cupslibdir %(cups-config --serverbin)
78345db
78345db
%prep
78345db
%setup -q
78345db
78345db
%build
78345db
CFLAGS="%{optflags}" %{__python} setup.py build \
1196876
    --verbose \
78345db
    --with-vpx \
78345db
    --with-webp \
78345db
    %{?_with_enc_x264} \
ff57c84
    %{?_with_dec_avcodec2} \
78345db
    %{?_with_csc_swscale} \
78345db
    --with-Xdummy \
78345db
    --with-Xdummy_wrapper
78345db
78345db
%install
1196876
%{__python} setup.py install \
1196876
    --skip-build \
1196876
    --root %{buildroot} \
1196876
    --with-Xdummy \
1196876
    --with-Xdummy_wrapper
1196876
78345db
78345db
#move icon to proper directory
78345db
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
78345db
mv %{buildroot}%{_datadir}/icons/xpra.png \
78345db
    %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
78345db
78345db
#remove doc stuff from /usr/share
78345db
rm -f \
78345db
    %{buildroot}%{_datadir}/xpra/README \
78345db
    %{buildroot}%{_datadir}/xpra/COPYING
78345db
78345db
#drop shebangs from python_sitearch
78345db
find %{buildroot}%{python_sitearch}/xpra -name '*.py' \
78345db
    -exec sed -i '1{\@^#!/usr/bin/env python@d}' {} \;
78345db
78345db
#fix permissions on shared objects
78345db
find %{buildroot}%{python_sitearch}/xpra -name '*.so' \
78345db
    -exec chmod 0755 {} \;
78345db
78345db
# delete any bundled SWFs - binary content forbidden by packaging
78345db
# guidelines
78345db
find %{buildroot}%{_datadir}/xpra -name '*.swf' -exec rm {} \;
78345db
78345db
# Use system js-query rather than the bundled one
78345db
ln -sf ../../../javascript/jquery/2/jquery.min.js \
78345db
    %{buildroot}%{_datadir}/xpra/www/include/jquery.min.js
78345db
78345db
# Use system web-socket-js rather than the bundled one
78345db
rm -rf %{buildroot}%{_datadir}/xpra/www/include/web-socket-js
78345db
ln -sf ../../../javascript/web-socket-js \
78345db
    %{buildroot}%{_datadir}/xpra/www/include/web-socket-js
78345db
78345db
# Use system js-zlib instead of bundled one on Fedora >= 21
78345db
%if 0%{?fedora} >= 21
78345db
for file in deflate.min.js inflate.min.js ; do
78345db
    ln -sf ../../../javascript/zlib/$file \
78345db
       %{buildroot}%{_datadir}/xpra/www/include/$file
78345db
done
78345db
%endif
78345db
78345db
# Ensure all .js files are not executeable
78345db
find %{buildroot}%{_datadir}/xpra/www/include -name '*.js' \
78345db
    -exec chmod 0644 {} \;
78345db
faf3329
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/xpra.appdata.xml
faf3329
faf3329
78345db
%check
78345db
desktop-file-validate %{buildroot}%{_datadir}/applications/xpra.desktop
78345db
desktop-file-validate %{buildroot}%{_datadir}/applications/xpra_launcher.desktop
78345db
78345db
78345db
%post
78345db
/usr/bin/update-desktop-database &> /dev/null || :
78345db
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
78345db
78345db
78345db
%postun
78345db
/usr/bin/update-desktop-database &> /dev/null || :
78345db
78345db
if [ $1 -eq 0 ] ; then
78345db
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
78345db
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
78345db
fi
78345db
78345db
78345db
%posttrans
78345db
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
78345db
78345db
78345db
%files
78345db
%dir %{_sysconfdir}/xpra
78345db
%config(noreplace) %{_sysconfdir}/xpra/xorg.conf
78345db
%config(noreplace) %{_sysconfdir}/xpra/xpra.conf
78345db
%{_bindir}/xpra
78345db
%{_bindir}/xpra_Xdummy
78345db
%{_bindir}/xpra_launcher
78345db
%{python_sitearch}/xpra
78345db
%{python_sitearch}/*.egg-info
78345db
%{_datadir}/applications/xpra*.desktop
78345db
%{_datadir}/icons/hicolor/48x48/apps/xpra.png
78345db
%{_mandir}/man1/xpra.1.*
78345db
%{_mandir}/man1/xpra_launcher.1.*
78345db
%{_datadir}/xpra
faf3329
%{_datadir}/appdata/xpra.appdata.xml
9ac5dd0
%{_datadir}/mime/packages/application-x-xpraconfig.xml
ff57c84
%{cupslibdir}/backend/xpraforwarder
1196876
#{_prefix}/lib/tmpfiles.d/xpra.conf
78345db
%doc README COPYING NEWS
78345db
78345db
78345db
%changelog
e3e7440
* Wed Sep  2 2015 Jonathan Underwood <jonathan.underwood@gmail.com> - 0.15.5-1
e3e7440
- Update to 0.15.5
e3e7440
- Drop patches related to color encoding
e3e7440
9c424fc
* Fri Aug 21 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.4-4
9c424fc
- Remove xpra-r10393.patch and add xpra-r10396.patch and xpra-r10399.patch
9c424fc
  as second attempt to fix the color encoding issues
9c424fc
246bd21
* Fri Aug 21 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.4-3
246bd21
- No longer revert r9983, but include xpra-r10393.patch to fix the
246bd21
  color encoding
246bd21
14015e1
* Wed Aug  5 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.4-2
1b26b2d
- Add patch to revert upstream commit r9983 which breaks color encodding
1b26b2d
35e2363
* Tue Aug  4 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.4-1
35e2363
- Update to 0.15.4
35e2363
- Add missing release tag to previous rpm changelog entry
35e2363
35e2363
* Tue Jul 14 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.3-1
1196876
- Update to 0.15.3
1196876
- Remove xpra-0.15.2-9768.patch
1196876
- Add BuildRequires for redhat-lsb-core to make lsb_release available
1196876
  at build time (used to detect system type)
1196876
- Add --with-Xdummy and --with-Xdummy_wrapper to install options to
1196876
  ensure Xdummy is used
1196876
5d639e6
* Thu Jul  2 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.2-2
5d639e6
- Add small fix from upsteam (rev 9768)
5d639e6
67247c7
* Thu Jul  2 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.2-1
67247c7
- Update to 0.15.2
67247c7
- Add Requires for python-lz4 and python-cups
67247c7
9ac5dd0
* Mon Jun 22 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.1-1
9ac5dd0
- Update to 0.15.1
9ac5dd0
- Add Requires shared-mime-info for (/usr/share/mime/packages ownership)
9ac5dd0
- Add /usr/share/mime/packages/application-x-xpraconfig.xml file
9ac5dd0
17e5519
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.0-3
17e5519
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
17e5519
1a26bb3
* Thu Jun  4 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.0-2
1a26bb3
- Remove extraneous second definition of cupslibdir
1a26bb3
ff57c84
* Mon Jun  1 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.15.0-1
ff57c84
- Update to 0.15.0
ff57c84
- Add BuildRequires for cups-devel and Requires for cups-filesystem
ff57c84
- Replace mention of avcodec with avcodec2
ff57c84
- Drop xpra-unbundle-rencode.patch, and no longer patch to use system
ff57c84
  rencode
ff57c84
- Drop xpra-0.14-stop-using-void-driver.patch
ff57c84
- Drop xpra-0.14.22-fedora22-xorg.patch
ff57c84
2b4af44
* Wed May 27 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.24-1
2b4af44
- Update to 0.14.24
2b4af44
- Remove Requires for xorg-x11-server-Xvfb
2b4af44
- Remove upstreamed appdata patch
2b4af44
644a86f
* Tue May 26 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.22-5
644a86f
- Add patch to correctly locate Xorg binary in Fedora 22 onwards (BZ 1224678)
644a86f
cf33176
* Tue Apr 28 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.22-4
cf33176
- Patch appdata file to have more information and proper paragraph
cf33176
  ending period so validation works
cf33176
0f8624a
* Mon Apr 27 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.22-3
0f8624a
- Remove Requires for xorg-x11-drv-void
0f8624a
faf3329
* Mon Apr 27 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.22-2
faf3329
- Validate and own /usr/share/appdata/xpra.appdata.xml
faf3329
- Add BuildRequires libappstream-glib
faf3329
7ac90bc
* Mon Apr 27 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.22-1
7ac90bc
- Update to 0.14.22
7ac90bc
0bb264d
* Mon Apr 27 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.21-5
0bb264d
- Add patch to remove reference to the xorg void driver in xorg.conf (BZ #1215527)
0bb264d
5fb82e2
* Mon Apr  6 2015 Tom Callaway <spot@fedoraproject.org> - 0.14.21-4
5fb82e2
- rebuild for libvpx 1.4.0
5fb82e2
78345db
* Tue Mar 24 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.21-3
78345db
- Update license tag from GPLv2+ to GPLv2+ and BSD and LGPLv3+ and MIT
78345db
78345db
* Mon Mar 23 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.21-2
78345db
- Add conditionals for building with ffmpeg and x264 support, disabled
78345db
  by default
78345db
- Remove Provides for bundled(js-web-socket-js)
78345db
- Use system js-zlib on Fedora >= 21
78345db
- On Fedora < 21 add Provides for bundled(js-zlib)
78345db
78345db
* Wed Mar 18 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.21-1
78345db
- Update to 0.14.21
78345db
78345db
* Wed Mar 18 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-6
78345db
- Unbundle js-query even on Fedora 20
78345db
78345db
* Wed Mar 18 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-5
78345db
- Unbundle web-socket-js
78345db
78345db
* Tue Mar  3 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-4
78345db
- Add --with-Xdummy and --with-Xdummy_wrapper build options since Xorg
78345db
  not installed at build time so autodetection fails
78345db
78345db
* Tue Mar  3 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-3
78345db
- Use js-jquery package only on F22 or later - not available on
78345db
  earlier distros
78345db
78345db
* Tue Mar  3 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-2
78345db
- Update Summary to be more descriptive of package
78345db
- Use packaged js-jquery
78345db
- Add provides for bundled(js-jquery-ui) and bundled(js-web-socket-js)
78345db
- Build with vpx and webp support enabled
78345db
- Remove any installed SWF files
78345db
- Remove executable flag for all .js files
78345db
- Remove Requires for python-webm
78345db
78345db
* Tue Mar  3 2015 Jonathan G. Underwood <jonathan.underwood@gmail.com> - 0.14.19-1
78345db
- Update to upstream 0.14.19
78345db
- Add BuildRequires for libxkbfile-devel
78345db
- No longer need to unbundle webp
78345db
- Rework and rename patch for unbundling of rencode
78345db
78345db
* Fri Oct 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.6-1
78345db
- new upstream release 0.10.6
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-October/000726.html
78345db
78345db
* Tue Oct 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.4-2
78345db
- reenable webp support
78345db
- fix webm unbundling to support importing all modules in the webm package
78345db
- require latest python-webm so it matches what's bundled upstream
78345db
78345db
* Mon Oct 07 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.10.4-1
78345db
- rebase to 0.10.4
78345db
- don't ship webm stuff that doesn't work without ffmpeg anyway
78345db
78345db
* Thu Aug 01 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.8-1
78345db
- new upstream release 0.9.8
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-July/000615.html
78345db
- use HTTPS for URL and Source0
78345db
78345db
* Wed Jul 03 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.6-1
78345db
- new upstream release 0.9.6
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-June/000552.html
78345db
78345db
* Thu Jun 27 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-1
78345db
- new upstream release 0.9.5
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-June/000549.html
78345db
78345db
* Thu May 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.4-1
78345db
- new upstream release 0.9.4
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-May/000539.html
78345db
78345db
* Mon May 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.2-1
78345db
- new upstream release 0.9.2
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-May/000525.html
78345db
78345db
* Fri May 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.1-1
78345db
- new upstream release 0.9.1
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-May/000522.html
78345db
78345db
* Tue May 07 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.0-2
78345db
- fix rencode __version__ importing
78345db
78345db
* Thu May 02 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.0-1
78345db
- new upstream release 0.9.0
78345db
  http://lists.devloop.org.uk/pipermail/shifter-users/2013-April/000479.html
78345db
- delete the bundled code in prep instead of inside the patches
78345db
- don't bother including parti; it's going away upstream soon
78345db
- merge python-wimpiggy into main xpra package; it won't be seperated upstream soon
78345db
78345db
* Thu Apr 18 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.8-4
78345db
- unbundle rencode and webm
78345db
- fix equality operator in Requires
78345db
- drop unnecessary multiple copies of NEWS
78345db
- don't remove buildroot
78345db
78345db
* Thu Apr 11 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.8-3
78345db
- drop unmet dependency on gstreamer-plugins-ugly
78345db
- fix permissions on shared objects
78345db
- add scriptlets necessary for icon/desktop file
78345db
78345db
* Thu Mar 28 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.8-2
78345db
- disable codecs prohibited in Fedora
78345db
78345db
* Thu Mar 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.8.8-1
78345db
- initial package