File clipit.spec of Package clipit
#
# spec file for package clipit
#
# Copyright (c) 2020 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: clipit
Version: @SERVICE@
Release: 0
Summary: A lightweight GTK+ clipboard manager
License: GPL-3.0-only
Group: Productivity/Other
URL: https://github.com/CristianHenzel/ClipIt
Source0: %{name}-%{version}.tar.xz
BuildRequires: automake
BuildRequires: intltool >= 0.23
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gtk+-3.0)
Requires: xdotool
Recommends: %{name}-lang
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150200
BuildRequires: rsvg-convert
%else
BuildRequires: rsvg-view
%endif
%description
ClipIt is a lightweight, fully featured GTK+ clipboard manager. It was
forked from Parcellite (http://parcellite.sourceforge.net), adding
additional features and bugfixes to the project.
Features:
- Automatically paste selected item
- Save a history of your last copied items
- Search through the history
- Declare static items
- Global hotkeys for most used functions
- Execute actions with clipboard items
- Exclude specific items from history
%lang_package
%prep
%autosetup
%build
NOCONFIGURE=1 ./autogen.sh
%configure \
--with-gtk3
%make_build
%install
%make_install
for n in %{name}-trayicon-offline %{name}-trayicon; do
for i in 16 24 32 48; do
install -dm 0755 %{buildroot}%{_datadir}/icons/hicolor/$i\x$i/apps
rsvg-convert -h $i -w $i data/${n}.svg -o %{buildroot}%{_datadir}/icons/hicolor/$i\x$i/apps/${n}.png
done
done
%suse_update_desktop_file -u -r -G "Clipboard Manager" %{name} GTK GNOME Utility X-SuSE-DesktopUtility
%suse_update_desktop_file -r -G "Clipboard Manager" %{name}-startup GTK GNOME Utility X-SuSE-DesktopUtility TrayIcon
%find_lang %{name}
%files
%doc AUTHORS ChangeLog README.md
%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*.??g
%{_mandir}/man?/%{name}.?%{?ext_man}
%license COPYING
%files lang -f %{name}.lang
%changelog