File soundconverter.spec of Package soundconverter

# spec file for package soundconverter
# Copyright (c) 2021 SUSE LLC
# 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

%global __requires_exclude typelib\\(GConf\\)|typelib\\(Unity\\)
%define skip_python2 1
Name:           soundconverter
Version:        4.0.0
Release:        0
Summary:        Sound Converter Application for the GNOME Desktop
License:        GPL-3.0-or-later
Group:          Productivity/Multimedia/Video/Editors and Convertors
BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  python-rpm-macros
BuildRequires:  python3-distutils-extra
BuildRequires:  python3-gobject
BuildRequires:  python3-gobject-Gdk
BuildRequires:  python3-pytest
BuildRequires:  typelib(Gst) = 1.0
BuildRequires:  typelib(GstPbutils) = 1.0
BuildRequires:  typelib(Gtk) = 3.0
Requires:       gstreamer
Requires:       gstreamer-plugins-base
Requires:       gstreamer-plugins-good
#Requires:       python3-gobject
#Requires:       python3-gobject-Gdk
Recommends:     gstreamer-plugins-bad
Recommends:     gstreamer-plugins-ugly
Suggests:       gstreamer-plugins-bad-orig-addon
Suggests:       gstreamer-plugins-ugly-orig-addon

A sound converter application for the GNOME environment.

It reads anything the GStreamer library can read, and offers writing
to WAV, FLAC, MP3, AAC, and Ogg Vorbis, also with the help of GStreamer.


%autosetup -p1



mkdir -p %{buildroot}/usr/share/locale
mv build/mo/* %{buildroot}/usr/share/locale/
%find_lang %{name}

desktop-file-install \
  --dir %{buildroot}%{_datadir}/applications \
  --add-category X-OutputGeneration \
  --delete-original \

rm -f %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled
rm -rf %{buildroot}/usr/share/doc/soundconverter

%fdupes %{buildroot}%{_prefix}

#%%pytest tests

%license COPYING
%dir %{_datadir}/metainfo

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by