Accepting request 75496 from home:vuntz:branches:GNOME:Factory
New package: quick previewer for nautilus, kind of part of 3.2 OBS-URL: https://build.opensuse.org/request/show/75496 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/sushi?expand=0&rev=1
This commit is contained in:
commit
1850c4b677
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
sushi-0.0.3.tar.bz2
Normal file
3
sushi-0.0.3.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62b5538c2d299e660fa721a46816313f6a581792d97bbf61f51e1997c1d78d70
|
||||
size 363557
|
32
sushi-fix-warnings.patch
Normal file
32
sushi-fix-warnings.patch
Normal file
@ -0,0 +1,32 @@
|
||||
diff --git a/src/libsushi/sushi-sound-player.c b/src/libsushi/sushi-sound-player.c
|
||||
index d275ac8..6406cee 100644
|
||||
--- a/src/libsushi/sushi-sound-player.c
|
||||
+++ b/src/libsushi/sushi-sound-player.c
|
||||
@@ -131,6 +131,8 @@ sushi_sound_player_ensure_discoverer (SushiSoundPlayer *player)
|
||||
G_CALLBACK (discoverer_discovered_cb), player);
|
||||
gst_discoverer_start (priv->discoverer);
|
||||
gst_discoverer_discover_uri_async (priv->discoverer, priv->uri);
|
||||
+
|
||||
+ return TRUE;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -143,8 +145,7 @@ sushi_sound_player_set_uri (SushiSoundPlayer *player,
|
||||
|
||||
priv = SUSHI_SOUND_PLAYER_GET_PRIVATE (player);
|
||||
|
||||
- if (priv->uri &&
|
||||
- !strcmp (priv->uri, uri))
|
||||
+ if (!g_strcmp0 (priv->uri, uri))
|
||||
return;
|
||||
|
||||
g_free (priv->uri);
|
||||
@@ -588,7 +589,7 @@ sushi_sound_player_get_playing (SushiSoundPlayer *player)
|
||||
GstState state, pending;
|
||||
gboolean playing;
|
||||
|
||||
- g_return_if_fail (SUSHI_IS_SOUND_PLAYER (player));
|
||||
+ g_return_val_if_fail (SUSHI_IS_SOUND_PLAYER (player), FALSE);
|
||||
|
||||
priv = SUSHI_SOUND_PLAYER_GET_PRIVATE (player);
|
||||
|
7
sushi.changes
Normal file
7
sushi.changes
Normal file
@ -0,0 +1,7 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 3 18:11:14 CEST 2011 - vuntz@opensuse.org
|
||||
|
||||
- Initial package (version 0.0.3).
|
||||
- sushi-fix-warnings.patch fixes build warnings that break the
|
||||
build.
|
||||
|
103
sushi.spec
Normal file
103
sushi.spec
Normal file
@ -0,0 +1,103 @@
|
||||
#
|
||||
# spec file for package sushi
|
||||
#
|
||||
# Copyright (c) 2011 SUSE LINUX Products 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: sushi
|
||||
Version: 0.0.3
|
||||
Release: 1
|
||||
License: GPLv3
|
||||
Summary: Quick Previewer for Nautilus
|
||||
Url: http://www.gnome.org
|
||||
Group: Productivity/File utilities
|
||||
Source0: http://download.gnome.org/sources/sushi/0.3/%{name}-%{version}.tar.bz2
|
||||
# PATCH-FIX-UPSTREAM sushi-fix-warnings.patch vuntz@opensuse.org -- Fix build warnings breaking the build; sent upstream by mail
|
||||
Patch0: sushi-fix-warnings.patch
|
||||
BuildRequires: gobject-introspection-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: unoconv
|
||||
BuildRequires: pkgconfig(clutter-1.0)
|
||||
BuildRequires: pkgconfig(clutter-gst-1.0)
|
||||
BuildRequires: pkgconfig(clutter-gtk-1.0)
|
||||
BuildRequires: pkgconfig(evince-document-3.0)
|
||||
BuildRequires: pkgconfig(evince-view-3.0)
|
||||
BuildRequires: pkgconfig(gjs-1.0)
|
||||
BuildRequires: pkgconfig(gjs-dbus-1.0)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gstreamer-0.10)
|
||||
BuildRequires: pkgconfig(gstreamer-pbutils-0.10)
|
||||
BuildRequires: pkgconfig(gstreamer-tag-0.10)
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
BuildRequires: pkgconfig(gtksourceview-3.0)
|
||||
BuildRequires: pkgconfig(libmusicbrainz3)
|
||||
BuildRequires: pkgconfig(webkitgtk-3.0)
|
||||
Recommends: %{name}-lang
|
||||
Supplements: nautilus
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.
|
||||
|
||||
%package -n libsushi-1_0-0
|
||||
License: GPLv3
|
||||
Summary: Quick Previewer for Nautilus -- Library
|
||||
Group: System/Libraries
|
||||
# When built with unoconv support, the library will use unoconv to
|
||||
# read LibreOffice files
|
||||
Recommends: unoconv
|
||||
|
||||
%description -n libsushi-1_0-0
|
||||
Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.
|
||||
|
||||
%lang_package
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
||||
%find_lang %{name} %{?no_lang_C}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post -n libsushi-1_0-0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libsushi-1_0-0 -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS COPYING NEWS README
|
||||
%{_bindir}/sushi
|
||||
%{_libexecdir}/sushi-start
|
||||
%{_datadir}/dbus-1/services/org.gnome.Sushi.service
|
||||
%{_datadir}/sushi/
|
||||
|
||||
%files -n libsushi-1_0-0
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libsushi-1.0.so.*
|
||||
%{_libdir}/girepository-1.0/Sushi-1.0.typelib
|
||||
# devel files, but we really have no need for a devel subpackage
|
||||
%{_libdir}/libsushi-1.0.so
|
||||
%{_datadir}/gir-1.0/Sushi-1.0.gir
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user