File soundconverter.spec of Package soundconverter

#
# spec file for package soundconverter
#
# Copyright (c) 2017 SUSE LINUX 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/
#

%global __requires_exclude typelib\\(Unity\\)

%define _rev    b101a833fbc55ec43811691338e1e67789d23b98
Name:           soundconverter
Version:        2.9.0~beta2
Release:        0
Summary:        Sound Converter Application for the GNOME Desktop
License:        GPL-3.0+
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://soundconverter.org/
Source:         https://github.com/kassoulet/soundconverter/archive/%{_rev}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  gobject-introspection-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python3
BuildRequires:  python3-gobject
BuildRequires:  update-desktop-files
BuildRequires:  typelib(Gst) = 1.0
BuildRequires:  typelib(Gtk) = 3.0
Requires:       gstreamer
Requires:       python3-gobject
Recommends:     %{name}-lang
Recommends:     gstreamer-plugins-bad
Recommends:     gstreamer-plugins-base
Recommends:     gstreamer-plugins-good
Recommends:     gstreamer-plugins-ugly
Suggests:       gstreamer-plugins-ugly-orig-addon
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
BuildRequires:  python3-gobject-Gdk
Requires:       python3-gobject-Gdk
%endif

%description
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.

%lang_package

%prep
%setup -q -n %{name}-%{_rev}

%build
NOCONFIGURE=1 ./autogen.sh
%configure
make %{?_smp_mflags} V=1

%install
%make_install
chmod a+x %{buildroot}%{_libdir}/%{name}/python/%{name}/*py

%find_lang %{name}
%suse_update_desktop_file -r %{name} AudioVideo AudioVideoEditing
%fdupes %{buildroot}%{_prefix}/

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc COPYING ChangeLog README TODO
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%dir %{_datadir}/appdata/
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1%{?ext_man}

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by