- Update to version 0.7 (commit dbdce91bfd7954616731e47f97f82b8e10586101): * Remove susepaste.org from output, use paste.opensuse.org exclusively * Repair X11 clipboard copy (use clipboard instead of XA_CLIPBOARD) * Support Wayland clipboard copy - Drop upstreamed patches: * 0001-susepaste-Fix-parsing-of-returned-Location-header.patch * 0002-susepaste-add-image-paste-info.patch * 0003-susepaste-use-paste-opensuse.org.patch - Disable submodules in service, linked forge is offline OBS-URL: https://build.opensuse.org/request/show/1178185 OBS-URL: https://build.opensuse.org/package/show/devel:tools/susepaste?expand=0&rev=26
81 lines
2.3 KiB
RPMSpec
81 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package susepaste
|
|
#
|
|
# 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: susepaste
|
|
Version: 0.7
|
|
Release: 0
|
|
Summary: Script for using openSUSE paste
|
|
License: GPL-3.0-only
|
|
Group: Productivity/Other
|
|
URL: https://github.com/openSUSE/paste
|
|
Source0: susepaste-script-%{version}.tar.xz
|
|
Requires: bash
|
|
Requires: curl
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A script for using the openSUSE paste service.
|
|
You can paste either the file or input from stdin.
|
|
|
|
%package screenshot
|
|
Summary: Script for pasting screenshots
|
|
Group: Productivity/Other
|
|
Requires: ImageMagick
|
|
Requires: curl
|
|
Requires: wmctrl
|
|
Recommends: xclip
|
|
BuildArch: noarch
|
|
|
|
%description screenshot
|
|
A script for using the openSUSE paste service.
|
|
You can paste screenshot of the window or whole desktop.
|
|
|
|
%prep
|
|
%autosetup -n susepaste-script-%{version} -p 1
|
|
mv script/gpl-3.0.txt COPYING
|
|
|
|
%build
|
|
|
|
%install
|
|
pushd script
|
|
install -Dpm 0755 susepaste \
|
|
%{buildroot}%{_bindir}/susepaste
|
|
install -Dpm 0755 susepaste-screenshot \
|
|
%{buildroot}%{_bindir}/susepaste-screenshot
|
|
install -Dpm 0644 susepaste.1 \
|
|
%{buildroot}%{_mandir}/man1/susepaste.1
|
|
install -Dpm 0644 susepaste-screenshot.1 \
|
|
%{buildroot}%{_mandir}/man1/susepaste-screenshot.1
|
|
install -Dpm 0644 lang-mappings.sed \
|
|
%{buildroot}%{_datadir}/susepaste/lang-mappings.sed
|
|
popd
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/susepaste/lang-mappings.sed
|
|
%dir %{_datadir}/susepaste
|
|
%{_mandir}/man1/%{name}.1%{?ext_man}
|
|
|
|
%files screenshot
|
|
%license COPYING
|
|
%{_bindir}/%{name}-screenshot
|
|
%{_mandir}/man1/%{name}-screenshot.1%{?ext_man}
|
|
|
|
%changelog
|