File arandr.spec of Package arandr

# spec file for package arandr
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2012 Pascal Bleser <>
# Copyright (c) 2013,2019 B1 Systems GmbH, Vohburg, Germany <>
# 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

Name:           arandr
Version:        0.1.11
Release:        0
Summary:        Visual Front End for XRandR
License:        GPL-3.0-only
Patch1:         arandr-fix_desktop_icon.patch
BuildRequires:  gobject-introspection
BuildRequires:  make
BuildRequires:  python3
BuildRequires:  python3-docutils
Requires:       python3-gobject
Requires:       python3-gobject-Gdk
Requires:       python3-pycairo
BuildRequires:  update-desktop-files
BuildArch:      noarch
%if 0%{?suse_version} >= 1220
Requires:       xrandr
Requires:       xorg-x11

ARandR is designed to provide a simple visual front end for XRandR. Relative
monitor positions are shown graphically and can be changed in a drag-and-drop

%setup -q

python3 ./ build

python3 ./ install \
    --prefix="%{_prefix}" \

%suse_update_desktop_file -r "%{name}" Settings DesktopSettings

%find_lang "%{name}"

chmod 0755 "%{buildroot}%{_bindir}"/*

%files -f "%{name}.lang"
%license COPYING

openSUSE Build Service is sponsored by