File gmtp.spec of Package gmtp

#
# spec file for package gmtp
#
# Copyright (c) 2020 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 https://bugs.opensuse.org/
#


Name:           gmtp
Version:        1.3.11
Release:        0
Summary:        A simple MP3 and Media player client
License:        BSD-3-Clause
Group:          Productivity/Multimedia/Sound/Players
URL:            http://gmtp.sourceforge.net/
Source0:        http://sourceforge.net/projects/gmtp/files/gMTP-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(flac)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(id3tag)
BuildRequires:  pkgconfig(libmtp)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(vorbis)
%glib2_gsettings_schema_requires

%description
gMTP is a client for accessing MTP devices.

%prep
%autosetup

%build
export CFLAGS="%{optflags} -fcommon"
%configure
%make_build

%install
%make_install
%find_lang %{name}
%suse_update_desktop_file -r %{name} AudioVideo Music
%fdupes -s %{buildroot}/%{_datadir}

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/gmtp.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gmtp.gschema.xml
%{_datadir}/%{name}
%{_datadir}/pixmaps/gmtpicon.png

%changelog
openSUSE Build Service is sponsored by