From ad505bc5eaddd37809f4707c949ad0ef5d6c5351 Mon Sep 17 00:00:00 2001 From: Christian Stadelmann Date: Sep 05 2018 12:09:00 +0000 Subject: Update to new stable release 1.0 from new upstream - Update to new stable release with new upstream URL at the Exaile project - Fallout: Drop old patch, update license, update description - Enable running tests --- diff --git a/moodbar-0.1.2-glib.patch b/moodbar-0.1.2-glib.patch deleted file mode 100644 index 21303c7..0000000 --- a/moodbar-0.1.2-glib.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -urNad moodbar-0.1.2~/analyzer/main.c moodbar-0.1.2/analyzer/main.c ---- moodbar-0.1.2~/analyzer/main.c 2006-10-12 01:43:30.000000000 -0400 -+++ moodbar-0.1.2/analyzer/main.c 2007-04-01 13:20:33.000000000 -0400 -@@ -262,6 +262,9 @@ - GOptionContext *ctx; - GError *err = NULL; - -+ // must be called before any other glib function is called -+ if (!g_thread_supported ()) g_thread_init(NULL); -+ - ctx = g_option_context_new ("[INFILE] - Run moodbar analyzer"); - g_option_context_add_group (ctx, gst_init_get_option_group ()); - g_option_context_add_main_entries (ctx, entries, NULL); diff --git a/moodbar.spec b/moodbar.spec index 61192e1..eda1a99 100644 --- a/moodbar.spec +++ b/moodbar.spec @@ -1,50 +1,67 @@ Name: moodbar -Version: 0.1.2 -Release: 20%{?dist} -Summary: Identifies the "mood" of your music files +Version: 1.0 +Release: 1%{?dist} +Summary: Audio timeline visualization Group: Applications/Multimedia -License: GPLv2+ -URL: http://amarok.kde.org/wiki/Moodbar -Source0: http://pwsp.net/~qbob/moodbar-%{version}.tar.gz +License: GPLv3 +URL: https://github.com/exaile/moodbar +Source0: https://github.com/exaile/moodbar/releases/download/v%{version}/moodbar-%{version}.tar.xz -# Fix a Glib crash, patch from Debian -Patch0: moodbar-0.1.2-glib.patch +BuildRequires: meson +BuildRequires: gcc-c++ +BuildRequires: pkgconfig(gstreamer-1.0) +BuildRequires: pkgconfig(gstreamer-audio-1.0) +BuildRequires: pkgconfig(fftw3) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gio-2.0) -BuildRequires: gcc -BuildRequires: gstreamer-devel, fftw-devel +# Requirements for testing the package +BuildRequires: python3 +BuildRequires: python3-numpy +BuildRequires: gstreamer1 %description -Moodbar is a program that takes a music file and generates a .mood file -identifying the "mood" of the music. -Amarok can then use it to figure out when something interesting happens -in the song. +Moodbar is a music visualization method that assigns colors to different parts +of a track and presents them as a timeline. +Applied to a music player, the main goal is to help the user navigate within a +particular track. +For example, if the user wants to skip to the first chorus of a song, a good +moodbar implementation should be able to provide a hint of where this might +occur in the timeline. %prep %setup -q -%patch0 -p1 -b .glib %build -%configure --disable-static -make %{?_smp_mflags} +%meson +%meson_build %install -rm -rf $RPM_BUILD_ROOT -make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT -rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-*/libmoodbar.la +%meson_install +%check +%meson_test + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + %files -%doc AUTHORS COPYING ChangeLog NEWS README TODO %{_bindir}/%{name} -%{_libdir}/gstreamer-*/libmoodbar.so %changelog +* Wed Sep 05 2018 Christian Stadelmann - 1.0-1 +- Update to new stable release with new upstream URL at the Exaile project +- Fallout: Drop old patch, update license, update description +- Run tests + * Fri Jul 13 2018 Fedora Release Engineering - 0.1.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild