File movescreen.spec of Package movescreen
#
# spec file for package movescreen
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, 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 bumblebee.obs@gmail.com
#
%define realname movescreen
%define realver 1.0
%define srcext tar.gz
Name: movescreen
Version: 1.0
Release: 0
Summary: Moves the window with focus to an adjacent monitor
License: MIT
URL: https://github.com/Jonatas-Goncalves/movescreen
Source0: https://github.com/Jonatas-Goncalves/movescreen/archive/refs/tags/%{realver}.%{srcext}#/%{realname}-%{realver}%{?extraver}.%{srcext}
BuildRequires: python3-devel
Requires: xrandr xwininfo wmctrl xdotool
%description
This Python script moves the window with focus on an adjacent monitor.
%prep
%autosetup -n %{name}-%version -p1
%build
%install
mkdir -p %{buildroot}/usr/local/bin/
cp -a %{_builddir}/%{name}-%{version}/movescreen.py %{buildroot}/usr/local/bin/
chmod a+rx %{buildroot}/usr/local/bin/movescreen.py
mkdir -p %{buildroot}/usr/share/doc/%{name}
cp -a %{_builddir}/%{name}-%{version}/README.md %{buildroot}/usr/share/doc/%{name}/
%files
/usr/local/bin/movescreen.py
%dir /usr/share/doc/movescreen/
/usr/share/doc/movescreen/README.md
%changelog