File disper.spec of Package disper
#
# spec file for package disper
#
# Copyright (c) 2011 Pascal Bleser pascal.bleser@opensuse.org
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: disper
Version: 0.3.0
Release: 1
License: GPL-3.0+
Summary: Display Switch Utility
Url: http://willem.engen.nl/projects/disper/
Group: Productivity/Publishing/Presentation
Source: http://ppa.launchpad.net/disper-dev/ppa/ubuntu/pool/main/d/disper/disper_0.3.0.tar.gz
# PATCH-FIX-OPENSUSE disper-use-lib-instead-of-share.patch pascal.bleser@opensuse.org -- Modify to use lib instead of share.
Patch1: disper-use-lib-instead-of-share.patch
# PATCH-FIX-OPENSUSE disper-remove-shebangs.patch pascal.bleser@opensuse.org -- Remove shebangs.
Patch2: disper-remove-shebangs.patch
BuildRequires: python
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}_%{version}-build
Requires: python-gtk
BuildArch: noarch
%py_requires
%description
Disper is an on-the-fly display switch utility. It is intended to be used just
before giving a presentation with a laptop, when all one wants is that the
beamer, which has just been connected, is able to show whatever you prepared.
Disper gives you the option to either clone all detected displays, or extend
the desktop to them. Resolutions are automatically detected. For cloning, the
highest common resolution supported by all displays is chosen; for extending
every display device gets its highest supported resolution. For special setups
requiring more detailed control, one can still use the standard display
configuration utilities.
At the moment nVidia cards are supported, and a basic XRandR backend is in
place.
%prep
%setup -q -n dispercur
%patch1
%patch2
%build
make
%install
%makeinstall
python -c "import compileall; compileall.compile_dir('%{buildroot}%{_prefix}/lib/disper', ddir='%{_prefix}/lib/disper', force=True)"
install -D -m0644 disper.1 "%{buildroot}%{_mandir}/man1/disper.1"
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc debian/changelog debian/copyright README TODO
%{_bindir}/disper
%{_prefix}/lib/disper
%{_datadir}/pixmaps/disper.svg
%doc %{_mandir}/man1/disper.1%{ext_man}