Accepting request 913699 from GNOME:Factory

- Update to version 1.0.3:
  + No upstream changes provided, please check upstream git log.
- Drop gsound-gsound-play-Call-setlocale.patch: Fixed upstream.
- Add gtk-doc and meson BuildRequires and macros following
  upstreams port. (forwarded request 913042 from iznogood)

OBS-URL: https://build.opensuse.org/request/show/913699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gsound?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2021-08-25 18:56:23 +00:00 committed by Git OBS Bridge
commit 9f6332d73c
5 changed files with 22 additions and 42 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53
size 282068

BIN
gsound-1.0.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,28 +0,0 @@
From ef94719d7ec2adfd72b38418754786d4e3346176 Mon Sep 17 00:00:00 2001
From: Ting-Wei Lan <lantw@src.gnome.org>
Date: Mon, 11 Jan 2016 14:14:30 +0800
Subject: [PATCH] gsound-play: Call setlocale in main function
It is required to correctly show translated messages on some locales.
https://bugzilla.gnome.org/show_bug.cgi?id=760429
---
tools/gsound-play.vala | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/gsound-play.vala b/tools/gsound-play.vala
index 298ba20..e3a5268 100644
--- a/tools/gsound-play.vala
+++ b/tools/gsound-play.vala
@@ -55,6 +55,8 @@ async void play() throws Error
int main(string[] args)
{
+ Intl.setlocale (LocaleCategory.ALL, "");
+
Environment.set_application_name("gsound-play");
var opt_ctx = new OptionContext();
--
2.18.1

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Thu Aug 19 08:15:55 UTC 2021 - Bjørn Lie <bjorn.lie@gmail.com>
- Update to version 1.0.3:
+ No upstream changes provided, please check upstream git log.
- Drop gsound-gsound-play-Call-setlocale.patch: Fixed upstream.
- Add gtk-doc and meson BuildRequires and macros following
upstreams port.
-------------------------------------------------------------------
Thu Feb 21 11:30:48 UTC 2019 - bjorn.lie@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package gsound
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2014 Bjørn Lie, Bryne, Norway.
#
# All modifications and additions to the file contributed by third parties
@ -20,16 +20,16 @@
%define soname lib%{name}0
Name: gsound
Version: 1.0.2
Version: 1.0.3
Release: 0
Summary: A library for playing system sounds
License: LGPL-2.1-only
Group: Development/Libraries/GNOME
URL: https://wiki.gnome.org/Projects/GSound
Source0: https://download.gnome.org/sources/gsound/1.0/gsound-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gsound-gsound-play-Call-setlocale.patch -- gsound-play: Call setlocale in main function
Patch0: gsound-gsound-play-Call-setlocale.patch
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libcanberra)
@ -78,15 +78,13 @@ applications with gsound.
%autosetup -p1
%build
%configure \
--disable-static \
--enable-vala \
%meson \
-Dgtk_doc=true \
%{nil}
%make_build
%meson_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%meson_install
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
@ -94,6 +92,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files
%doc ChangeLog README
%{_bindir}/gsound-play
%{_mandir}/man1/gsound-play.1%{ext_man}
%files -n %{soname}
%license COPYING
@ -101,7 +100,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files devel
%{_datadir}/gir-1.0/GSound-1.0.gir
%{_datadir}/gtk-doc/html/gsound/
%{_datadir}/gtk-doc/html/gsound-%{version}/
%{_datadir}/vala/vapi/gsound.deps
%{_datadir}/vala/vapi/gsound.vapi
%{_includedir}/gsound.h