%global snapshot_rev 822 %global date 20220325 %bcond_without snapshot %if %{with snapshot} %global sver .%{date}svn%{snapshot_rev} %endif Name: ario Version: 1.6 Release: 2%{?sver}%{?dist} Summary: Ario MPD Client License: GPL-2.0-or-later URL: http://ario-player.sourceforge.net/index.php %if %{with snapshot} # To regenerate a snapshot: # Use your regular webbrowser to open https://sourceforge.net/p/qmp3gain/code/ci/%%{snapshot_rev}/tarball # This triggers the SourceForge instructure to generate a snapshot # After that you can pull in the archive with: # spectool -g ario.spec Source0: https://sourceforge.net/code-snapshots/svn/a/ar/%{name}-player/code/%{name}-player-code-r%{snapshot_rev}-trunk.zip#/%{name}-r%{snapshot_rev}.zip %else Source0: https://downloads.sourceforge.net/%{name}-player/%{name}-%{version}.tar.gz %endif BuildRequires: pkgconfig(avahi-client) BuildRequires: pkgconfig(avahi-glib) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libmpdclient) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(taglib) BuildRequires: gcc BuildRequires: intltool BuildRequires: make BuildRequires: desktop-file-utils #BuildRequires: gettext #BuildRequires: perl(XML::Parser) %if %{with snapshot} BuildRequires: autoconf automake libtool intltool %endif %description Ario is a GTK2 client for MPD (Music player daemon). The interface used to browse the library is inspired by Rhythmbox but Ario aims to be much lighter and faster. It runs on Linux and Microsoft Windows %prep %autosetup %{?sver:-n %{name}-player-code-r%{snapshot_rev}-trunk} -p1 sed -i -e 's|||g' src/ario-profiles.c sed -i -e 's|||g' src/ario-profiles.h sed -e 's|$srcdir/configure|true|g' -i ./autogen.sh %{?sver:./autogen.sh} %build %configure \ --enable-static=no \ --disable-silent-rules \ --enable-libmpdclient2 \ --disable-python \ --disable-dbus sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install %make_install INSTALL="install -p" %if %{with snapshot} mv %{buildroot}%{_libdir}/ario/*.so* %{buildroot}%{_libdir}/ rm -f %{buildroot}%{_libdir}/*.so %endif find %{buildroot} -name '*.la' -delete %find_lang ario %check desktop-file-validate %{buildroot}/%{_datadir}/applications/ario.desktop %files -f ario.lang %defattr(-,root,root,-) %doc ChangeLog TODO AUTHORS %license COPYING %{_bindir}/ario %if %{with snapshot} %{_libdir}/*.so.* %endif %{_libdir}/ario %{_datadir}/applications/ario.desktop %{_datadir}/ario %{_datadir}/icons/hicolor/*/apps/ario.* %changelog * Wed Sep 14 2022 Phantom X - 1.6-2.20220325svn822 - Snapshot * Thu Dec 17 2020 Phantom X - 1.6-1 - 1.6 * Wed Sep 18 2019 Phantom X - 1.5.1-3 - Disable python plugin support, needs python 2 * Thu Jun 15 2017 Phantom X - 1.5.1-2 - Update BR format and Requires * Tue Dec 27 2016 Phantom X - 1.5.1-1 - Updated to 1.5.1 * Fri Mar 25 2011 John Ford - 1.5-1 - Updated source to ario-1.5 * Mon Feb 07 2011 Fedora Release Engineering - 1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Feb 16 2010 Adam Jackson 1.1-9 - ario-1.1-add-needed.patch: Fix FTBFS from --no-add-needed * Fri Jul 24 2009 Fedora Release Engineering - 1.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Feb 23 2009 Fedora Release Engineering - 1.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Dec 20 2008 - 1.1-6 - Bumped release because I forgot to import specfile before - running make tag * Sun Nov 09 2008 - 1.1-5 - Removed gettext-devel from BuildRequires - Removed gettext from Requires - Modified sed routine on desktop files - Removed .la libtool files - Clean up of code * Sat Nov 08 2008 johnhford@gmail.com - 1.1-4 - Corrected issue as per Mamoru Tasaka recomendations - *license tag correction - *Removed redundant BuildRequires and Requires - *Corrected perl dependancies - *Timestamp preservation - *Using find_lang macro now - *No static libraries - *Removed unneeded documents - *Fixed desktop file *Fri Oct 10 2008 John Ford 1.1-3 - Ran mock build, added two build requirements *Sun Sep 28 2008 John Ford 1.1-2 - Inserted %%post and %%postun for gtk-update-icon-cache *Sun Sep 28 2008 John Ford 1.1-1 - Initial specfile written