From e8582bd951cb5b105e08cd36637f5f39d4c62b5240cc29dd91bd614b8a9ac836 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 23 Aug 2021 08:35:24 +0000 Subject: [PATCH] Accepting request 913042 from GNOME:Next - 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. OBS-URL: https://build.opensuse.org/request/show/913042 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gsound?expand=0&rev=11 --- gsound-1.0.2.tar.xz | 3 --- gsound-1.0.3.tar.xz | 3 +++ gsound-gsound-play-Call-setlocale.patch | 28 ------------------------- gsound.changes | 9 ++++++++ gsound.spec | 21 +++++++++---------- 5 files changed, 22 insertions(+), 42 deletions(-) delete mode 100644 gsound-1.0.2.tar.xz create mode 100644 gsound-1.0.3.tar.xz delete mode 100644 gsound-gsound-play-Call-setlocale.patch diff --git a/gsound-1.0.2.tar.xz b/gsound-1.0.2.tar.xz deleted file mode 100644 index e9e1153..0000000 --- a/gsound-1.0.2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53 -size 282068 diff --git a/gsound-1.0.3.tar.xz b/gsound-1.0.3.tar.xz new file mode 100644 index 0000000..b600bf7 --- /dev/null +++ b/gsound-1.0.3.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca2d039e1ebd148647017a7f548862350bc9af01986d39f10cfdc8e95f07881a +size 22592 diff --git a/gsound-gsound-play-Call-setlocale.patch b/gsound-gsound-play-Call-setlocale.patch deleted file mode 100644 index 2dcfd23..0000000 --- a/gsound-gsound-play-Call-setlocale.patch +++ /dev/null @@ -1,28 +0,0 @@ -From ef94719d7ec2adfd72b38418754786d4e3346176 Mon Sep 17 00:00:00 2001 -From: Ting-Wei Lan -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 - diff --git a/gsound.changes b/gsound.changes index 5acec5f..1f560ca 100644 --- a/gsound.changes +++ b/gsound.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Aug 19 08:15:55 UTC 2021 - Bjørn Lie + +- 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 diff --git a/gsound.spec b/gsound.spec index ec8415c..4a8f58e 100644 --- a/gsound.spec +++ b/gsound.spec @@ -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