%global commit c0e5087963c5cf6332fbb62d3cc9b2e4c270562c %global githash %(c=%{commit}; echo ${c:0:7}) %global gitdate 20160318 %global gittime 2057 %if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Name: radiotray Version: 0.7.4 Release: 10.%{gitdate}%{gittime}hg%{githash}%{?dist} Summary: Radio Tray is a streaming player for listening to online radios BuildArch: noarch Group: Applications/Multimedia License: GPL+ URL: http://radiotray.sourceforge.net Source0: https://bitbucket.org/carlmig/radio-tray/get/%{githash}.zip # Patches and additional files taken from this pr: # https://bitbucket.org/carlmig/radio-tray/pull-requests/6/fixes-for-gtk3/diff Source1: dbusutils.py Source2: MPRIS2.py Source3: XMediaKeysPlugin.py Source4: xmediakeys.plugin Patch0: radiotray_fix_docdir.patch Patch1: radiotray_fix_menu.patch Patch2: radiotray_fix_plugins.patch Patch3: radiotray_fix_statemediator.patch Patch4: radiotray_fix_context.patch Patch5: radiotray_mpris.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) # Explicit dependencies required because there is no automatic dependencies # resolution for the python modules. Requires: pyxdg Requires: gstreamer1-python Requires: python-lxml Requires: python-inotify Requires: keybinder3 BuildRequires: pkgconfig(python-2.7) BuildRequires: pkgconfig(pygobject-2.0) BuildRequires: pyxdg desktop-file-utils gettext %description Radio Tray is an online radio streaming player that runs on a Linux system tray. Its goal is to have the minimum interface possible, making it very straightforward to use. Radio Tray is not a full featured music player, there are plenty of excellent music players already. However, there was a need for a simple application with minimal interface just to listen to online radios. And that's the sole purpose of Radio Tray. %prep %setup -q -n carlmig-radio-tray-%(c=%{commit}; echo ${c:0:12}) %patch0 -p1 %patch1 %patch2 %patch3 %patch4 %patch5 # Remove unnecessary shebang sed -i -e '/^#!\//, 1d' src/RadioTray.py %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %{__install} -m 755 %SOURCE1 $RPM_BUILD_ROOT%{python_sitelib}/radiotray/ %{__install} -m 755 %SOURCE2 $RPM_BUILD_ROOT%{python_sitelib}/radiotray/ %{__install} -m 755 %SOURCE3 $RPM_BUILD_ROOT%{_datadir}/radiotray/plugins %{__install} -m 755 %SOURCE4 $RPM_BUILD_ROOT%{_datadir}/radiotray/plugins desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/radiotray.desktop %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %license COPYING %doc AUTHORS CONTRIBUTORS NEWS README %{_bindir}/radiotray %{_datadir}/radiotray/ %{_datadir}/applications/radiotray.desktop %{_datadir}/pixmaps/radiotray.png %{python_sitelib}/radiotray/ %{python_sitelib}/radiotray-0.?.?-py?.?.egg-info %changelog * Wed Jan 13 2016 Heiko Adams - 0.7.4-8 - fixed MPRIS2 integration * Fri Nov 06 2015 Heiko Adams - 0.7.4-7 - fixed some dependencies * Mon Jul 20 2015 Heiko Adams - 0.7.4-6 - fixed some dependencies * Fri Jun 26 2015 Heiko Adams - 0.7.4-3 - add support for MPRIS2 - add XMediaKeys plugin * Tue Jun 23 2015 Heiko Adams - 0.7.4-1 - update to latest hg snapshot - cleaned up specfile - added some upstream patches to complete gtk3 transition * Thu Jun 18 2015 Fedora Release Engineering - 0.7.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.7.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Aug 06 2013 Jean-Francois Saucier - 0.7.3-2 - Fix for the docdir change in F20 * Tue Aug 06 2013 Jean-Francois Saucier - 0.7.3-1 - Update to new upstream version * Sun Aug 04 2013 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Dec 15 2011 Jean-Francois Saucier - 0.7.1-1 - Update to new upstream version * Tue Aug 30 2011 Jean-Francois Saucier - 0.6.4-1 - Update to new upstream version * Wed Feb 09 2011 Fedora Release Engineering - 0.6.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 24 2011 Jean-Francois Saucier - 0.6.3-1 - Update to new upstream version * Tue Sep 21 2010 Jean-Francois Saucier - 0.6.1-1 - Update to new upstream version * Thu Jul 22 2010 David Malcolm - 0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Thu Jul 8 2010 Jean-Francois Saucier - 0.6-1 - Update to new upstream version * Tue May 25 2010 Jean-Francois Saucier - 0.5.1-3 - Change license to match COPYING - Add comments to SPEC file - Add comment for the explicit dependencies * Fri May 7 2010 Jean-Francois Saucier - 0.5.1-2 - Fix as per the recommendations of bug #583102 - Change the python_sitelib definition to the new way of doing it for >F-12 - Add build CFLAGS - Use the __python macro - Make some modifications to help not break when python version change * Wed Apr 14 2010 Jean-Francois Saucier - 0.5.1-1 - Initial build for Fedora