summaryrefslogtreecommitdiff
path: root/move-to-next-monitor/move-to-next-monitor.spec
blob: 332b8b9ce5c4815ba27c21b0889277c3bead8720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%global  dummy_package   0
%global  use_git  1
%if 0%{use_git}
%global tarballdir %{name}-master
%else
%global tarballdir %{name}-%{version}
%endif
%define license_files %{srcdir}/License.txt

# turn off debug package
%define debug_package %{nil}

Name:		move-to-next-monitor
Version:	0.0.1
Release:	2
BuildArch: noarch
Summary:	Script that facilitates moving a window to the next monitor

Group:	Utility
License:	GPL-3.0
URL:		https://gitlab.com/bgstack15/move-to-next-monitor
%if 0%{use_git}
# Source0: https://github.com/vanaoff/move-to-next-monitor/archive/master.zip
Source0: https://gitlab.com/bgstack15/%{name}/-/archive/master/%{name}-master.tar.gz
%else
Source0: https://gitlab.com/bgstack15/%{name}/-/archive/%{version}/%{name}-master.tar.gz
%endif
Source1: move-to-next-monitor.Makefile
Source2: README.md
#Patch1:  none.patch

Packager:	Bgstack15 <bgstack15@gmail.com>
BuildRequires:	coreutils
Requires: python3
Requires: wmctrl
Requires: xdotool
Requires: (xorg-x11-utils or ((xprop and xrandr) and xwininfo))

%description
move-to-next-monitor is a small script that makes it easy for display managers without this native functionality to provide it. You can assign a shortcut key in the display manager settings to the script to use it.

%prep
%setup -q -c
# copy in custom Makefile and adjust to use tarball directory as source directory
%{__cp} -p %{SOURCE1} ./Makefile
%{__sed} -i -r -e '/^SRCDIR\s*=/s:\$\(CURDIR\)\s*$:$(CURDIR)/'"%{tarballdir}"':;' ./Makefile

#pushd %{tarballdir}
#%patch0 -p1
#popd

%build
:

%install
%make_install

# man page
%{__mkdir_p} %{buildroot}%{_pkgdocdir}
%{__cp} -p "%{SOURCE2}" %{buildroot}%{_pkgdocdir}/

%clean
%{__rm} -rf %{buildroot} || :

%post
:

%preun
# is it a final removal?
#if test "$1" = "0" ;
#then
#fi   
:

%postun
:

%posttrans
:

%files
%license LICENSE
%doc %{_pkgdocdir}/*
%{_bindir}/%{name}

%changelog
* Tue Nov 30 2021 B. Stack <bgstack15@gmail.com> 0.0.1-2
- rebuild for Fedora 34 with split x utils packages

* Fri Nov 30 2018 B. Stack <bgstack15@gmail.com> 0.0.1-1
- initial package built
bgstack15