* Default to Lua 5.3, and permit use of other versions
* Add support for setting and deleting window properties
* Add get_process_name(), which returns the name of the process
owning the window (if possible)
* Add get_monitor_index() and get_monitor_geometry(); improve
monitor index/geometry discovery
* Add get_window_is_decorated() (which uses the Motif window hints)
* Alias center() as centre()
* Extend centre() to allow centring on a given monitor and to allow
horizontal or vertical only
* Extend set_window_position() to allow positioning on a given
monitor and control which corner is measured from.
(Behaviour with two parameters is unchanged.)
* Quote the option hyphens in the man page (preventing replacement)
* Various const & compiler warning (gcc -Wextra) fix-ups
* Support for UTF-8 strings in window properties
* Allow replacements for pkg-config at compile time
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/devilspie2?expand=0&rev=20
63 lines
1.8 KiB
RPMSpec
63 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package devilspie2
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: devilspie2
|
|
Version: 0.44
|
|
Release: 0
|
|
Summary: A window matching utility
|
|
License: GPL-3.0-or-later
|
|
URL: https://www.nongnu.org/devilspie2/
|
|
Source0: http://download.savannah.nongnu.org/releases/devilspie2/devilspie2-%{version}.tar.xz
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
BuildRequires: pkgconfig(libwnck-3.0)
|
|
BuildRequires: pkgconfig(lua5.3)
|
|
|
|
%description
|
|
Devilspie 2 is based on the excellent program Devil's Pie by Ross Burton, and
|
|
takes a folder as in-data, and checks that folder for LUA scripts. These
|
|
scripts are run each time a window is opened, and the rules in them are applied
|
|
on the window.
|
|
|
|
Unfortunately the rules of the original Devil's Pie are not supported.
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
%build
|
|
%make_build CC="cc %{optflags}"
|
|
|
|
%install
|
|
%make_install PREFIX=%{_usr}
|
|
install -D -p -m 644 %{name}.1 \
|
|
%{buildroot}/%{_mandir}/man1/%{name}.1
|
|
|
|
%find_lang %{name}
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc AUTHORS README
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%changelog
|