[gpaste] Update to 2.5
Mohamed ElMorabity
melmorabity at fedoraproject.org
Sun Apr 1 12:30:31 UTC 2012
commit 9972b30dad89718725efa00dfbda245c1177efc5
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date: Sun Apr 1 13:51:31 2012 +0200
Update to 2.5
.gitignore | 1 +
gpaste.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
sources | 2 +-
3 files changed, 59 insertions(+), 8 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1d778ad..6b9e5cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/gpaste-2.0.tar.xz
/gpaste-2.1.tar.xz
/gpaste-2.2.1.tar.xz
+/gpaste-2.5.tar.xz
diff --git a/gpaste.spec b/gpaste.spec
index b995b71..f98f677 100644
--- a/gpaste.spec
+++ b/gpaste.spec
@@ -1,7 +1,7 @@
%global alt_name GPaste
Name: gpaste
-Version: 2.2.1
+Version: 2.5
Release: 1%{?dist}
Summary: Clipboard management system
@@ -10,17 +10,39 @@ License: GPLv3+
URL: https://github.com/Keruspe/GPaste
Source0: https://github.com/downloads/Keruspe/%{alt_name}/%{name}-%{version}.tar.xz
+BuildRequires: chrpath
BuildRequires: desktop-file-utils
-BuildRequires: dbus-devel
-BuildRequires: gtk3-devel
+BuildRequires: pkgconfig(dbus-1)
+BuildRequires: pkgconfig(gdk-3.0)
+BuildRequires: pkgconfig(gio-2.0)
+BuildRequires: pkgconfig(gobject-2.0)
+BuildRequires: pkgconfig(gobject-introspection-1.0)
+BuildRequires: pkgconfig(gtk+-3.0)
+BuildRequires: pkgconfig(libxml-2.0)
+BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: intltool
-BuildRequires: libxml2-devel
%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 libs
+Summary: Library to manage the clipboard history
+
+%description libs
+libgpaste is a library to manage the clipboard history (used by gpasted).
+
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}-libs%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
%package -n gnome-shell-extension-%{name}
Summary: GNOME Shell extension for GPaste
Group: User Interface/Desktops
@@ -48,6 +70,12 @@ make %{?_smp_mflags}
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
+
+# Fix Rpath issues
+chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/%{name}/gpasted
+chrpath --delete $RPM_BUILD_ROOT%{_libexecdir}/%{name}/gpaste-settings
+
# Install bash/zsh completion support
install -d $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
install -pm 0644 data/completions/%{name} -t $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d/
@@ -59,14 +87,20 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}-settings.d
%find_lang %{alt_name}
+%post libs -p /sbin/ldconfig
+
+
+%postun libs -p /sbin/ldconfig
+
+
%postun
-if [ $1 -eq 0 ] ; then
- glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+if [ $1 -eq 0 ]; then
+ /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
fi
%posttrans
-glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%files -f %{alt_name}.lang
@@ -76,16 +110,32 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%{_datadir}/applications/%{name}-settings.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
+%{_datadir}/vala/vapi/*
%{_datadir}/zsh/
%{_mandir}/man1/%{name}.1.*
%{_sysconfdir}/bash_completion.d/
+%files libs
+%{_libdir}/girepository-1.0/%{alt_name}-1.0.typelib
+%{_libdir}/*.so.*
+
+
+%files devel
+%{_datadir}/gir-1.0/*.gir
+%{_includedir}/%{name}/
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc
+
+
%files -n gnome-shell-extension-%{name}
%{_datadir}/gnome-shell/extensions/GPaste at gnome-shell-extensions.gnome.org/
%changelog
+* Fri Mar 30 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.5-1
+- Update to 2.5
+
* Sat Jan 07 2012 Mohamed El Morabity <melmorabity at fedoraproject.org> - 2.2.1-1
- Update to 2.2.1
diff --git a/sources b/sources
index 2c1b1e8..da301be 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-eb5cab739136d7feecc22fd2196790d3 gpaste-2.2.1.tar.xz
+44ddc08c5c03151867623da3cce06846 gpaste-2.5.tar.xz
More information about the scm-commits
mailing list