File clipboard-daemon.spec of Package clipboard-daemon
#
# spec file for package clipboard-daemon
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: clipboard-daemon
Version: 1.0
Release: 0
Summary: Keeper of your X clipboard content
License: GPL-1.0+
Group: System/X11/Utilities
Url: http://members.chello.nl/~h.lai/gnome-clipboard-daemon
Source: http://members.chello.nl/~h.lai/gnome-%{name}/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM clipboard-daemon-gtk3.patch sor.alexei@meowr.ru -- Port to Gtk3.
Patch0: %{name}-gtk3.patch
BuildRequires: pkg-config
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(x11)
%description
Program that keeps the content of your X clipboard in memory, so the
clipboard will not get lost even after you close the application you
copied from.
%prep
%setup -q
%patch0 -p1
# XDG autostart.
cat > %{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Clipboard Daemon
Comment=Start the Clipboard Daemon
Categories=Utility;
Exec=%{name}
Icon=preferences-system
StartupNotify=false
NoDisplay=true
EOF
%build
make %{?_smp_mflags} \
CFLAGS="%{optflags}"
%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{name}.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_sysconfdir}/xdg/autostart/
%changelog