[gpaste] First import
Mohamed ElMorabity
melmorabity at fedoraproject.org
Fri Jul 8 20:46:36 UTC 2011
commit 1ab897b4d9e538068c424349049bd59e02c25ff0
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date: Fri Jul 8 22:45:11 2011 +0200
First import
.gitignore | 1 +
gpaste-0.99-remove_applet_refs.patch | 82 +++++++++++++++++++++++++++++
gpaste-generate-tarball.sh | 10 ++++
gpaste.spec | 96 ++++++++++++++++++++++++++++++++++
sources | 1 +
5 files changed, 190 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8ffae37 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gpaste-17dd47.tar.xz
diff --git a/gpaste-0.99-remove_applet_refs.patch b/gpaste-0.99-remove_applet_refs.patch
new file mode 100644
index 0000000..6b945ac
--- /dev/null
+++ b/gpaste-0.99-remove_applet_refs.patch
@@ -0,0 +1,82 @@
+diff -up GPaste/completions/_gpaste.orig GPaste/completions/_gpaste
+--- GPaste/completions/_gpaste.orig 2011-03-29 14:26:24.000000000 +0200
++++ GPaste/completions/_gpaste 2011-06-25 14:53:08.682090764 +0200
+@@ -8,7 +8,6 @@ _describe 'gpaste command' '(
+ start:start\ the\ daemon
+ daemon:alias\ for\ start
+ quit:shutdown\ the\ daemon
+- applet:launch\ the\ applet
+ settings:launch\ the\ configuration\ tool
+ preferences:alias\ for\ settings
+ version:display\ the\ version
+diff -up GPaste/completions/gpaste.orig GPaste/completions/gpaste
+--- GPaste/completions/gpaste.orig 2011-03-29 14:26:24.000000000 +0200
++++ GPaste/completions/gpaste 2011-06-25 14:53:04.571090755 +0200
+@@ -3,7 +3,7 @@ _gpaste()
+ local cur opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[${COMP_CWORD}]}"
+- opts="add set delete empty start daemon quit applet preferences settings version help -h --help"
++ opts="add set delete empty start daemon quit preferences settings version help -h --help"
+ COMPREPLY=( $(compgen -W "$opts" -- $cur ) )
+ }
+
+diff -up GPaste/data/gpaste.pod.orig GPaste/data/gpaste.pod
+--- GPaste/data/gpaste.pod.orig 2011-03-29 14:26:24.000000000 +0200
++++ GPaste/data/gpaste.pod 2011-06-25 14:52:23.914090762 +0200
+@@ -48,10 +48,6 @@ Start tracking clipboard changes
+
+ Stop tracking clipboard changes
+
+-=item B<gpaste applet>
+-
+-Launch the applet
+-
+ =item B<gpaste settings>
+
+ Launch the configuration tool
+@@ -66,44 +62,4 @@ Display the help
+
+ =back
+
+-=head1 APPLET USAGE
+-
+-=over 8
+-
+-=back
+-
+-=head2 B<left clic>
+-
+-Display the history, the first element is the one in the clipboard
+-
+-=over 8
+-
+-=item B<left clic>
+-
+-Select the item
+-
+-=item B<right clic>
+-
+-Delete the item
+-
+-=back
+-
+-=head2 B<right clic>
+-
+-Display the options
+-
+-=over 8
+-
+-=item B<Settings>
+-
+-Launch the configuration tool
+-
+-=item B<Empty history>
+-
+-Empty the history
+-
+-=item B<Quit>
+-
+-Exit the applet
+-
+ =cut
diff --git a/gpaste-generate-tarball.sh b/gpaste-generate-tarball.sh
new file mode 100644
index 0000000..212086e
--- /dev/null
+++ b/gpaste-generate-tarball.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+VERSION=$1
+
+rm -rf GPaste/
+git clone git://github.com/Keruspe/GPaste.git
+cd GPaste/
+git checkout $VERSION
+git archive --format=tar --prefix=GPaste/ $VERSION | xz >../gpaste-$VERSION.tar.xz
+cd -
diff --git a/gpaste.spec b/gpaste.spec
new file mode 100644
index 0000000..18f211f
--- /dev/null
+++ b/gpaste.spec
@@ -0,0 +1,96 @@
+%global commit 17dd47
+%global alt_name GPaste
+
+Name: gpaste
+Version: 0.99
+Release: 1.%{commit}git%{?dist}
+Summary: Clipboard management system
+
+Group: User Interface/Desktops
+License: GPLv3+
+URL: https://github.com/Keruspe/GPaste
+Source0: %{name}-%{commit}.tar.xz
+# Sources are available from the project git repository. To retrieve them,
+# invoke this script
+Source1: %{name}-generate-tarball.sh
+# Remove references to the GNOME 2 applet in the man page and the shell
+# completion files since it is disabled
+Patch0: %{name}-0.99-remove_applet_refs.patch
+
+BuildRequires: gtk3-devel
+BuildRequires: intltool
+BuildRequires: vala
+
+%description
+gpasted is a clipboard management daemon with DBus interface. gpaste is its CLI
+client and gpaste-settings is a tool to edit gpasted settings.
+
+
+%package -n gnome-shell-extension-%{name}
+Summary: GNOME Shell extension for GPaste
+Group: User Interface/Desktops
+Requires: gnome-shell
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description -n gnome-shell-extension-%{name}
+%{summary}.
+
+
+%prep
+%setup -q -n %{alt_name}
+%patch0 -p1 -b .disable_applet_refs
+
+# Don't call configure in autogen.bash
+sed -i "/^.\/configure/d" autogen.bash
+
+
+%build
+[ -f autogen.bash ] && ./autogen.bash
+# Applet disabled since it is unusable in GNOME 3
+%configure --disable-schemas-compile
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+# Install bash/zsh completion support
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
+install -pm 0644 completions/%{name} -t $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
+install -d $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/
+install -pm 0644 completions/_%{name} -t $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/
+
+%find_lang %{alt_name}
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+fi
+
+
+%posttrans
+glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+
+%files -f %{alt_name}.lang
+%doc COPYING NEWS README
+%{_bindir}/%{name}
+%{_libexecdir}/%{name}/
+%{_datadir}/dbus-1/services/*.service
+%{_datadir}/glib-2.0/schemas/*.xml
+%{_datadir}/zsh/
+%{_mandir}/man1/%{name}.1.*
+%{_sysconfdir}/bash_completion.d
+%{_sysconfdir}/xdg/autostart/%{name}-applet.desktop
+
+
+%files -n gnome-shell-extension-%{name}
+%{_datadir}/gnome-shell/extensions/GPaste at gnome.org/
+
+
+%changelog
+* Sat Jun 25 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 0.99-1.17dd47git
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..8098ef5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+99754e6356919a24ac057361a9e2aa92 gpaste-17dd47.tar.xz
More information about the scm-commits
mailing list