please add clipscreen to X11:Utilities

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/clipscreen?expand=0&rev=1
This commit is contained in:
Martin Pluskal 2024-11-27 10:33:42 +00:00 committed by Git OBS Bridge
commit ced00b644f
7 changed files with 116 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

13
_service Normal file
View File

@ -0,0 +1,13 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/splitbrain/clipscreen.git</param>
<param name="scm">git</param>
<param name="versionformat">0+git.%cd</param>
</service>
<service name="tar" mode="disabled" />
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled" />
</services>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f41aec232cabc36c8a08148d4e218cd9c0da6c584f0b2f7449cfa1d79e72189e
size 3980

4
clipscreen.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Nov 27 08:34:05 UTC 2024 - Adam Mizerski <adam@mizerski.pl>
- new package

59
clipscreen.spec Normal file
View File

@ -0,0 +1,59 @@
#
# spec file for package clipscreen
#
# Copyright (c) 2024 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: clipscreen
Version: 0+git.20241113
Release: 0
Summary: Mirror a portion of your screen to a virtual monitor for easier screen sharing
License: MIT
URL: https://github.com/splitbrain/clipscreen
Source0: %{name}-%{version}.tar.xz
Source1: meson.build
BuildRequires: meson
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrandr)
Recommends: slop
%description
clipscreen is a simple application that creates a virtual monitor that mirrors
a portion of your screen. A green rectangle highlights the specified area.
Why's this useful? You can use any screen sharing tool (Google Meet, Microsoft
Teams, Jitsi Meet, etc.) to share the virtual monitor instead of your entire
screen. No need to share individual windows and having to switch between them,
just move any window you want to share into the green border.
%prep
%setup -q
cp %{SOURCE1} ./
%build
%meson
%meson_build
%install
%meson_install
%files
%{_bindir}/%{name}
%doc README.md
%changelog

13
meson.build Normal file
View File

@ -0,0 +1,13 @@
project('clipscreen', 'c')
executable(
'clipscreen',
'clipscreen.c',
dependencies: [
dependency('cairo'),
dependency('x11'),
dependency('xext'),
dependency('xfixes'),
dependency('xrandr'),
],
install: true,
)