8f6dc44
Name:          gnome-music
8f6dc44
Summary:       Music player and management application for GNOME
5648aca
Version:       3.9.92
93840c0
Release:       1%{?dist}
8f6dc44
8f6dc44
# The sources are under the GPLv2+ license, except for:
8f6dc44
# - the bundled libgd which is LGPLv2+,
8f6dc44
# - the gnome-music icon which is CC-BY-SA
8f6dc44
#
8f6dc44
# Also: https://bugzilla.gnome.org/show_bug.cgi?id=706457
3843e1c
License:       (GPLv2+ with exceptions) and LGPLv2+ and CC-BY-SA
c0eb7bb
URL:           http://wiki.gnome.org/Apps/Music
8f6dc44
Source0:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.9/%{name}-%{version}.tar.xz
8f6dc44
2c4baf6
BuildRequires: desktop-file-utils
8f6dc44
BuildRequires: intltool
8f6dc44
BuildRequires: pkgconfig(gio-2.0)
8f6dc44
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.35.9
8f6dc44
BuildRequires: pkgconfig(grilo-0.2) >= 0.2.6
8f6dc44
BuildRequires: pkgconfig(gtk+-3.0) >= 3.8.0
8f6dc44
BuildRequires: python3-devel
8f6dc44
8f6dc44
Requires:      gdk-pixbuf2
8f6dc44
Requires:      gobject-introspection
8f6dc44
Requires:      grilo
8f6dc44
Requires:      gstreamer1
8f6dc44
Requires:      gstreamer1-plugins-base
8f6dc44
Requires:      gtk3
2601711
Requires:      libnotify >= 0.7.6
8f6dc44
Requires:      pango
8f6dc44
Requires:      python3-gobject
8f6dc44
Requires:      tracker
8f6dc44
8f6dc44
# Can't migrate to GDBus, the server-side support is not implemented yet:
8f6dc44
#     https://bugzilla.gnome.org/show_bug.cgi?id=656330
8f6dc44
Requires:      python3-dbus
8f6dc44
8f6dc44
# libgd is not meant to be installed as a system-wide shared library.
8f6dc44
# It is just a way for GNOME applications to share widgets and other common
8f6dc44
# code on an ad-hoc basis.
8f6dc44
Provides:      bundled(libgd)
8f6dc44
%global __provides_exclude_from ^%{_libdir}/%{name}/libgd\.so$
8f6dc44
8f6dc44
%description
8f6dc44
Music player and management application for GNOME.
8f6dc44
8f6dc44
8f6dc44
%prep
8f6dc44
%setup -q
8f6dc44
8f6dc44
8f6dc44
%build
2655ca4
%configure --disable-silent-rules
8f6dc44
make %{?_smp_mflags}
8f6dc44
8f6dc44
8f6dc44
%install
8f6dc44
make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"
8f6dc44
8f6dc44
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
8f6dc44
8f6dc44
%find_lang %{name}
8f6dc44
2c4baf6
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
2c4baf6
8f6dc44
8f6dc44
%post
8f6dc44
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
8f6dc44
8f6dc44
%postun
8f6dc44
if [ $1 -eq 0 ] ; then
8f6dc44
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
8f6dc44
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8f6dc44
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
8f6dc44
fi
8f6dc44
8f6dc44
%posttrans
8f6dc44
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
8f6dc44
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
8f6dc44
8f6dc44
8f6dc44
%files -f %{name}.lang
8f6dc44
%doc AUTHORS COPYING
8f6dc44
%{_bindir}/%{name}
8f6dc44
%{_datadir}/%{name}
5648aca
%{_datadir}/appdata/
8f6dc44
%{_datadir}/applications/%{name}.desktop
8f6dc44
%{_datadir}/glib-2.0/schemas/org.gnome.Music.gschema.xml
8f6dc44
%{_datadir}/icons/hicolor/*/apps/%{name}.png
8f6dc44
%{_libdir}/%{name}
8f6dc44
%{python3_sitelib}/gnomemusic
8f6dc44
8f6dc44
8f6dc44
%changelog
5648aca
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.92-1
5648aca
- Update to 3.9.92
5648aca
- Include the appdata file
5648aca
93840c0
* Tue Sep 03 2013 Kalev Lember <kalevlember@gmail.com> - 3.9.91-1
93840c0
- Update to 3.9.91
93840c0
d8687b7
* Wed Aug 21 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 3.9.90-2
d8687b7
- A couple of fixes, based on Ankur's feedback:
c0eb7bb
  - Fix the upstream URL
3843e1c
  - Fix the license tag
2c4baf6
  - Validate the desktop file
2655ca4
  - Make the build verbose
c0eb7bb
8f6dc44
* Wed Aug 21 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 3.9.90-1
8f6dc44
- Initial package for Fedora.