4e45821
%global gobject_introspection_version 1.35.9
db5881e
%global grilo_version 0.3.0
f572781
%global gtk3_version 3.19.3
4e45821
Mathieu Bridon 8f6dc44
Name:          gnome-music
Mathieu Bridon 8f6dc44
Summary:       Music player and management application for GNOME
f572781
Version:       3.20.2
Richard Hughes 124b935
Release:       1%{?dist}
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
# The sources are under the GPLv2+ license, except for:
Mathieu Bridon 8f6dc44
# - the bundled libgd which is LGPLv2+,
Mathieu Bridon 8f6dc44
# - the gnome-music icon which is CC-BY-SA
Mathieu Bridon 8f6dc44
#
Mathieu Bridon 8f6dc44
# Also: https://bugzilla.gnome.org/show_bug.cgi?id=706457
Mathieu Bridon 3843e1c
License:       (GPLv2+ with exceptions) and LGPLv2+ and CC-BY-SA
Mathieu Bridon c0eb7bb
URL:           http://wiki.gnome.org/Apps/Music
8c4a6d3
Source0:       https://download.gnome.org/sources/%{name}/3.20/%{name}-%{version}.tar.xz
Mathieu Bridon 8f6dc44
376e1b6
BuildRequires: /usr/bin/appstream-util
Mathieu Bridon 2c4baf6
BuildRequires: desktop-file-utils
Mathieu Bridon 8f6dc44
BuildRequires: intltool
4e45821
BuildRequires: itstool
Mathieu Bridon 8f6dc44
BuildRequires: pkgconfig(gio-2.0)
4e45821
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
db5881e
BuildRequires: pkgconfig(grilo-0.3) >= %{grilo_version}
0e4bd66
BuildRequires: pkgconfig(libmediaart-2.0)
4e45821
BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk3_version}
9c36086
BuildRequires: pkgconfig(tracker-sparql-1.0)
Mathieu Bridon 8f6dc44
BuildRequires: python3-devel
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Requires:      gdk-pixbuf2
4e45821
Requires:      gobject-introspection >= %{gobject_introspection_version}
4e45821
Requires:      grilo >= %{grilo_version}
4e45821
Requires:      grilo-plugins
Mathieu Bridon 8f6dc44
Requires:      gstreamer1
Mathieu Bridon 8f6dc44
Requires:      gstreamer1-plugins-base
4e45821
Requires:      gtk3 >= %{gtk3_version}
4e45821
Requires:      libmediaart
Mathieu Bridon 2601711
Requires:      libnotify >= 0.7.6
Mathieu Bridon 8f6dc44
Requires:      pango
Mathieu Bridon 8f6dc44
Requires:      python3-gobject
Mathieu Bridon 8f6dc44
Requires:      tracker
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
# Can't migrate to GDBus, the server-side support is not implemented yet:
Mathieu Bridon 8f6dc44
#     https://bugzilla.gnome.org/show_bug.cgi?id=656330
Mathieu Bridon 8f6dc44
Requires:      python3-dbus
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
# libgd is not meant to be installed as a system-wide shared library.
Mathieu Bridon 8f6dc44
# It is just a way for GNOME applications to share widgets and other common
Mathieu Bridon 8f6dc44
# code on an ad-hoc basis.
Mathieu Bridon 8f6dc44
Provides:      bundled(libgd)
Mathieu Bridon 8f6dc44
%global __provides_exclude_from ^%{_libdir}/%{name}/libgd\.so$
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%description
Mathieu Bridon 8f6dc44
Music player and management application for GNOME.
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%prep
Michael Catanzaro 84f85fc
%autosetup -p1
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%build
Mathieu Bridon 2655ca4
%configure --disable-silent-rules
Mathieu Bridon 8f6dc44
make %{?_smp_mflags}
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%install
c6d9e7d
%make_install
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
Mathieu Bridon 8f6dc44
Mathieu Bridon e76f62d
%find_lang %{name} --with-gnome
Mathieu Bridon 8f6dc44
376e1b6
376e1b6
%check
376e1b6
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.appdata.xml
Mathieu Bridon 2c4baf6
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
Mathieu Bridon 2c4baf6
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%post
Mathieu Bridon 8f6dc44
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
105d37d
/bin/touch --no-create %{_datadir}/icons/HighContrast &>/dev/null || :
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%postun
Mathieu Bridon 8f6dc44
if [ $1 -eq 0 ] ; then
Mathieu Bridon 8f6dc44
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
105d37d
    /bin/touch --no-create %{_datadir}/icons/HighContrast &>/dev/null
Mathieu Bridon 8f6dc44
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
105d37d
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
Mathieu Bridon 8f6dc44
    /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
Mathieu Bridon 8f6dc44
fi
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%posttrans
Mathieu Bridon 8f6dc44
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
105d37d
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/HighContrast &>/dev/null || :
Mathieu Bridon 8f6dc44
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%files -f %{name}.lang
c95e09c
%doc AUTHORS NEWS
c95e09c
%license COPYING
Mathieu Bridon 8f6dc44
%{_bindir}/%{name}
Mathieu Bridon 8f6dc44
%{_datadir}/%{name}
c96b91d
%{_datadir}/appdata/gnome-music.appdata.xml
Mathieu Bridon 8f6dc44
%{_datadir}/applications/%{name}.desktop
Mathieu Bridon 8f6dc44
%{_datadir}/glib-2.0/schemas/org.gnome.Music.gschema.xml
Mathieu Bridon 8f6dc44
%{_datadir}/icons/hicolor/*/apps/%{name}.png
Michael Catanzaro 3fac70c
%{_datadir}/icons/hicolor/*/apps/gnome-music-symbolic.svg
Mathieu Bridon 8f6dc44
%{_libdir}/%{name}
5994569
%{_mandir}/man1/%{name}.1*
Mathieu Bridon 8f6dc44
%{python3_sitelib}/gnomemusic
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
Mathieu Bridon 8f6dc44
%changelog
f572781
* Tue May 10 2016 Kalev Lember <klember@redhat.com> - 3.20.2-1
f572781
- Update to 3.20.2
f572781
8c4a6d3
* Tue Mar 22 2016 Kalev Lember <klember@redhat.com> - 3.20.0-1
8c4a6d3
- Update to 3.20.0
8c4a6d3
72b9c66
* Wed Mar 16 2016 Kalev Lember <klember@redhat.com> - 3.19.92-1
72b9c66
- Update to 3.19.92
72b9c66
Richard Hughes f63b973
* Fri Mar 04 2016 Richard Hughes <rhughes@redhat.com> - 3.19.91-1
Richard Hughes f63b973
- Update to 3.19.91
Richard Hughes f63b973
Richard Hughes 124b935
* Tue Feb 16 2016 Richard Hughes <rhughes@redhat.com> - 3.19.90-1
Richard Hughes 124b935
- Update to 3.19.90
Richard Hughes 124b935
1f9a0ea
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.19.4-2
1f9a0ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1f9a0ea
9c36086
* Wed Jan 20 2016 Kalev Lember <klember@redhat.com> - 3.19.4-1
9c36086
- Update to 3.19.4
9c36086
Michael Catanzaro 84f85fc
* Sun Dec 27 2015 Michael Catanzaro <mcatanzaro@gnome.org> - 3.18.2-4
Michael Catanzaro 84f85fc
- Add more grilo 0.3 patches
Michael Catanzaro 84f85fc
Michael Catanzaro 3fac70c
* Sat Dec 26 2015 Michael Catanzaro <mcatanzaro@gnome.org> - 3.18.2-3
Michael Catanzaro 3fac70c
- Add symbolic icon
Michael Catanzaro 3fac70c
db5881e
* Fri Dec 18 2015 Kalev Lember <klember@redhat.com> - 3.18.2-2
db5881e
- Build with grilo 0.3
db5881e
2c72503
* Mon Nov 16 2015 Kalev Lember <klember@redhat.com> - 3.18.2-1
2c72503
- Update to 3.18.2
2c72503
4c30b36
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18.0-2
4c30b36
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
4c30b36
d56b0f6
* Tue Sep 22 2015 Kalev Lember <klember@redhat.com> - 3.18.0-1
d56b0f6
- Update to 3.18.0
d56b0f6
a16d11e
* Mon Sep 14 2015 Kalev Lember <klember@redhat.com> - 3.17.92-1
a16d11e
- Update to 3.17.92
a16d11e
bdeaf97
* Tue Sep 01 2015 Kalev Lember <klember@redhat.com> - 3.17.91-1
bdeaf97
- Update to 3.17.91
bdeaf97
7799e72
* Tue Aug 18 2015 Kalev Lember <klember@redhat.com> - 3.17.90-1
7799e72
- Update to 3.17.90
c6d9e7d
- Use make_install macro
7799e72
a830dcf
* Mon Jul 20 2015 David King <amigadave@amigadave.com> - 3.17.4-1
a830dcf
- Update to 3.17.4
a830dcf
2830869
* Wed Jun 24 2015 David King <amigadave@amigadave.com> - 3.17.3-1
2830869
- Update to 3.17.3
2830869
b18f133
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.1-2
b18f133
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b18f133
45c37e1
* Tue Apr 14 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.1-1
45c37e1
- Update to 3.16.1
45c37e1
f69c592
* Mon Mar 23 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
f69c592
- Update to 3.16.0
f69c592
c7039d2
* Mon Mar 16 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.92-1
c7039d2
- Update to 3.15.92
c7039d2
ca89664
* Tue Mar 03 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.91-1
ca89664
- Update to 3.15.91
ca89664
0f5dc8a
* Mon Feb 16 2015 David King <amigadave@amigadave.com> - 3.15.90-1
0f5dc8a
- Update to 3.15.90
c95e09c
- Use license macro for COPYING
0f5dc8a
0e4bd66
* Tue Jan 27 2015 David King <amigadave@amigadave.com> - 3.15.4-1
Richard Hughes 4f7ca93
- Update to 3.15.4
5994569
- Update man page glob in files section
376e1b6
- Validate AppData during check
Richard Hughes 4f7ca93
869333c
* Tue Nov 25 2014 Kalev Lember <kalevlember@gmail.com> - 3.15.2-1
869333c
- Update to 3.15.2
869333c
0ec96a2
* Wed Nov 12 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.2-1
0ec96a2
- Update to 3.14.2
0ec96a2
08d74ef
* Mon Oct 13 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.1-1
08d74ef
- Update to 3.14.1
08d74ef
1515990
* Mon Sep 22 2014 Kalev Lember <kalevlember@gmail.com> - 3.14.0-1
1515990
- Update to 3.14.0
1515990
02478d7
* Mon Sep 15 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.92-1
02478d7
- Update to 3.13.92
02478d7
ac42aa5
* Tue Aug 19 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.90-1
ac42aa5
- Update to 3.13.90
105d37d
- Include HighContrast icons
ac42aa5
2604a94
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13.4-2
2604a94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2604a94
d73e2a2
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.4-1
d73e2a2
- Update to 3.13.4
d73e2a2
1b4e11c
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.3-2
1b4e11c
- Rebuilt for gobject-introspection 1.41.4
1b4e11c
Richard Hughes 95a9ad8
* Tue Jun 24 2014 Richard Hughes <rhughes@redhat.com> - 3.13.3-1
Richard Hughes 95a9ad8
- Update to 3.13.3
Richard Hughes 95a9ad8
e6a6d55
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.13.2-3
e6a6d55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e6a6d55
af7e103
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.2-2
af7e103
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
af7e103
8e5e23e
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 3.13.2-1
8e5e23e
- Update to 3.13.2
8e5e23e
Richard Hughes 8648239
* Mon Apr 28 2014 Richard Hughes <rhughes@redhat.com> - 3.13.1-1
Richard Hughes 8648239
- Update to 3.13.1
Richard Hughes 8648239
cf8c158
* Tue Apr 15 2014 Kalev Lember <kalevlember@gmail.com> - 3.12.1-1
cf8c158
- Update to 3.12.1
cf8c158
Richard Hughes db114d8
* Mon Mar 24 2014 Richard Hughes <rhughes@redhat.com> - 3.12.0-1
Richard Hughes db114d8
- Update to 3.12.0
Richard Hughes db114d8
Richard Hughes 5d84800
* Tue Mar 18 2014 Richard Hughes <rhughes@redhat.com> - 3.11.92-1
Richard Hughes 5d84800
- Update to 3.11.92
Richard Hughes 5d84800
Mathieu Bridon e76f62d
* Wed Mar 05 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 3.11.91-2
Mathieu Bridon e76f62d
- Fix handling of the help files.
Mathieu Bridon e76f62d
Richard Hughes 019a067
* Tue Mar 04 2014 Richard Hughes <rhughes@redhat.com> - 3.11.91-1
Richard Hughes 019a067
- Update to 3.11.91
Richard Hughes 019a067
Richard Hughes b76aff4
* Mon Feb 17 2014 Richard Hughes <rhughes@redhat.com> - 3.11.90-1
Richard Hughes b76aff4
- Update to 3.11.90
Richard Hughes b76aff4
Richard Hughes 1cdf25e
* Mon Nov 25 2013 Richard Hughes <rhughes@redhat.com> - 3.11.2-1
Richard Hughes 1cdf25e
- Update to 3.11.2
Richard Hughes 1cdf25e
Richard Hughes b892274
* Tue Oct 29 2013 Richard Hughes <rhughes@redhat.com> - 3.10.1-1
Richard Hughes b892274
- Update to 3.10.1
Richard Hughes b892274
61cbf23
* Wed Sep 25 2013 Kalev Lember <kalevlember@gmail.com> - 3.10.0-1
61cbf23
- Update to 3.10.0
61cbf23
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
Mathieu Bridon d8687b7
* Wed Aug 21 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 3.9.90-2
Mathieu Bridon d8687b7
- A couple of fixes, based on Ankur's feedback:
Mathieu Bridon c0eb7bb
  - Fix the upstream URL
Mathieu Bridon 3843e1c
  - Fix the license tag
Mathieu Bridon 2c4baf6
  - Validate the desktop file
Mathieu Bridon 2655ca4
  - Make the build verbose
Mathieu Bridon c0eb7bb
Mathieu Bridon 8f6dc44
* Wed Aug 21 2013 Mathieu Bridon <bochecha@fedoraproject.org> - 3.9.90-1
Mathieu Bridon 8f6dc44
- Initial package for Fedora.