- add man pages from Debian

- changed LICENSE file from %doc to %license

OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/autocutsel?expand=0&rev=18
This commit is contained in:
Stefan Dirsch 2024-11-27 14:54:43 +00:00 committed by Git OBS Bridge
commit fb89e3c448
7 changed files with 322 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

3
autocutsel-0.10.1.tar.gz Normal file
View File

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

105
autocutsel.1 Normal file
View File

@ -0,0 +1,105 @@
.TH "AUTOCUTSEL" "1" "5 December 2007" "autocutsel 0.9.0"
.SH "NAME"
autocutsel \- keep the X clipboard and the cutbuffer in sync
.SH "SYNOPSIS"
.na
.B autocutsel
.RB [ \-selection
.IR selection_name ]
.RB [ \-cutbuffer
.IR number ]
.RB [ \-debug ]
.RB [ \-verbose ]
.RB [ \-fork ]
.RB [ \-pause
.IR milliseconds ]
.RB [ \-buttonup ]
.LP
.SH "DESCRIPTION"
.PP
This manual page documents briefly the
.B autocutsel
command.
.PP
This manual page was written for the
.B Debian
distribution because the original
program does not have a manual page.
.PP
.B autocutsel
tracks changes in the server's
cutbuffer and clipboard selection.
When the clipboard is changed,
it updates the cutbuffer.
When the cutbuffer is changed,
it owns the clipboard selection.
The cutbuffer and clipboard
selection are always synchronized.
Since the VNC client synchronizes
the Windows' clipboard and the
server's cutbuffer,
all three "clipboards" are
always kept synchronized.
When you copy some text in Windows,
the cutbuffer and the clipboard
selection are updated.
When you copy text on the server
using either the cutbuffer or
the clipboard selection,
the Windows's clipboard is always
updated.
.SH "OPTIONS"
.TP
.B -selection, -select, -sel, -s {CLIPBOARD|PRIMARY}
Specify which selection to use.
Default is CLIPBOARD.
.TP
.B -cutbuffer <number>
(Details of this parameter unknown.)
.TP
.B -debug, -d
Run with debugging mode.
.TP
.B -verbose, -v
Be more verbose.
Reports the version and announces synchronizations.
.TP
.B -fork, -f
Run as a daemon program in the background.
This is recommended when used from an X startup script.
.TP
.B -pause, -p <milliseconds>
Wait some milliseconds before owning the selection.
.TP
.B -buttonup
Get the selection only when the
button 1 is not pressed.
This may help with OpenOffice Writer.
.SH "AUTHOR"
.PP
This manual page was written by
Elmar S. Heeb <elmar@heebs.ch> for the
.B Debian
system (but may be used by others).
Permission is granted to copy,
distribute and/or modify this
document under the terms of the
GNU General Public License,
Version 2 any later version published
by the Free Software Foundation.
.PP
On Debian systems,
the complete text of the
GNU General Public License
can be found in
/usr/share/common-licenses/GPL.

46
autocutsel.changes Normal file
View File

@ -0,0 +1,46 @@
-------------------------------------------------------------------
Tue Nov 26 21:52:59 UTC 2024 - Michael Pujos <pujos.michael@gmail.com>
- add man pages from Debian
- changed LICENSE file from %doc to %license
-------------------------------------------------------------------
Thu Jun 3 16:26:16 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>
- Update to version 0.10.1
+ fixed allocation error
-------------------------------------------------------------------
Thu Dec 18 11:15:22 UTC 2014 - p.drouand@gmail.com
- Update to version 0.10.0
+ set WM_NAME, _NET_WM_NAME, and _NET_WM_PID
+ support for UTF-8 strings
+ minor fixes
- Use download Url as source
-------------------------------------------------------------------
Thu Feb 6 10:57:13 UTC 2014 - sndirsch@suse.com
- added missing LICENSE file
-------------------------------------------------------------------
Sun Feb 12 18:51:58 UTC 2012 - jengelh@medozas.de
- Update dependencies to what is required by configure.ac
-------------------------------------------------------------------
Thu Feb 9 16:08:45 UTC 2012 - sndirsch@suse.com
- fixed buildreqs due to splitted xorg-x11-libs
-------------------------------------------------------------------
Sat Sep 17 13:43:07 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
-------------------------------------------------------------------
Thu Apr 28 18:04:59 UTC 2011 - mhopf@novell.com
- Initial release

74
autocutsel.spec Normal file
View File

@ -0,0 +1,74 @@
#
# spec file for package autocutsel
#
# 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: autocutsel
URL: https://www.nongnu.org/autocutsel/
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xmu)
BuildRequires: pkgconfig(xt)
Version: 0.10.1
Release: 0
Summary: Clipboard / Cutbuffer management helper
License: GPL-2.0-or-later
Group: System/X11/Utilities
Source: https://github.com/sigmike/autocutsel/releases/download/%{version}/%{name}-%{version}.tar.gz
Source100: autocutsel.1
Source101: cutsel.1
%description
X servers use two schemes to copy text between applications. The first one
(old and deprecated) is the cutbuffer. The other scheme is the selection.
Recent desktop applications (GNOME, KDE, ...) use two selections: the
PRIMARY and the CLIPBOARD. The PRIMARY selection is used when you select
some text with the mouse. You usually paste it using the middle button. The
CLIPBOARD selection is used when you copy text by using, for example,
the Edit/Copy menu. You may paste it using the Edit/Paste menu.
Windows VNC clients keep the Windows clipboard synchronized with the
cutbuffer, but not with the selections. And since recent applications
don't use the cutbuffer, the server's CLIPBOARD is never synchronized
with Windows' one.
Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD
selection. When the CLIPBOARD is changed, it updates the cutbuffer. When
the cutbuffer is changed, it owns the CLIPBOARD selection. The cutbuffer
and CLIPBOARD selection are always synchronized. Since the VNC client
synchronizes the Windows' clipboard and the server's cutbuffer, all
three "clipboards" are always kept synchronized.
%prep
%setup
%build
%configure
%make_build
%install
%make_install
install -m 644 -D -t %{buildroot}%{_mandir}/man1 %{SOURCE100} %{SOURCE101}
gzip %{buildroot}%{_mandir}/man1/*
%files
%license COPYING
%{_bindir}/cutsel
%{_bindir}/autocutsel
%{_mandir}/man1/*
%doc README
%changelog

70
cutsel.1 Normal file
View File

@ -0,0 +1,70 @@
.TH "CUTSEL" "1" "5 December 2007" "autocutsel 0.9.0"
.SH "NAME"
cutsel \- show information about the X clipboard and the cutbuffer in sync
.SH "SYNOPSIS"
.PP
.B cutsel
[\-selection \fIselection_name\fP]
[\-cutbuffer \fInumber\fP]
[\-debug]
[\-verbose]
{cut|sel}
.LP
.SH "DESCRIPTION"
.PP
This manual page documents briefly the
.B cutsel
command.
.PP
This manual page was written for the
.B Debian
distribution because the original
program does not have a manual page.
.TP
.B cutsel [\fIoptions\fP] cut
shows the contents of the cut buffer
and
.TP
.B cutsel [\fIoptions\fP] sel
shows the owner of the selection.
.SH "OPTIONS"
.TP
.B \-selection, \-select, \-sel, \-s {CLIPBOARD|PRIMARY}
Specify which selection to use.
Default is CLIPBOARD.
.TP
.B \-cutbuffer <number>
(Details of this parameter unknown.)
.TP
.B \-debug, \-d
Run with debugging mode.
.TP
.B \-verbose, \-v
Be more verbose.
Reports the version and announces synchronizations.
.SH "AUTHOR"
.PP
This manual page was written by
Elmar S. Heeb <elmar@heebs.ch> for the
.B Debian
system (but may be used by others).
Permission is granted to copy,
distribute and/or modify this
document under the terms of the
GNU General Public License,
Version 2 any later version published
by the Free Software Foundation.
.PP
On Debian systems,
the complete text of the
GNU General Public License
can be found in
/usr/share/common\-licenses/GPL.