[packages/mpdscribble] Up to 0.26
arekm
arekm at pld-linux.org
Fri Nov 27 21:37:17 CET 2026
commit 3bff8ab631c0a445687c0057be3751002c18e2a2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 17:06:24 2026 +0100
Up to 0.26
mpdscribble-path.patch | 65 +++++++++++++++++++++-----------------------------
mpdscribble.spec | 42 ++++++++++++++++----------------
2 files changed, 49 insertions(+), 58 deletions(-)
---
diff --git a/mpdscribble.spec b/mpdscribble.spec
index d17fa00..25e18c2 100644
--- a/mpdscribble.spec
+++ b/mpdscribble.spec
@@ -5,22 +5,26 @@
Summary: Scrobbler for mpd
Summary(pl.UTF-8): Scrobbler dla mpd
Name: mpdscribble
-Version: 0.21
-Release: 2
+Version: 0.26
+Release: 1
License: GPL v2+
Group: Daemons
-Source0: http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.gz
-# Source0-md5: 79792ed39b882857db0ec91e0f46628d
+Source0: https://www.musicpd.org/download/mpdscribble/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: 78981e91ae3793c7d17d87ad5764076e
Source1: %{name}.init
Source2: %{name}.sysconfig
Patch0: %{name}-path.patch
URL: http://mpd.wikia.com/wiki/Client:Mpdscribble
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake
-BuildRequires: glib2-devel >= 2.0
-BuildRequires: libmpdclient-devel >= 2.0
-BuildRequires: libsoup-devel >= 2.2
+BuildRequires: curl-devel >= 7.55
+BuildRequires: libfmt-devel >= 9
+BuildRequires: libgcrypt-devel
+BuildRequires: libmpdclient-devel >= 2.10
+BuildRequires: meson >= 1.2
+BuildRequires: ninja
BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 2.042
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
Requires(post,preun): /sbin/chkconfig
Requires: rc-scripts >= 0.4.0.10
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -38,24 +42,22 @@ informacje o odtwarzanych utworach do audioscrobblera.
%patch -P0 -p1
%build
-%{__aclocal} -I m4
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure \
- --with-http-client=soup
-%{__make}
+%meson \
+ -Dsystemd=disabled
+
+%meson_build
%install
rm -rf $RPM_BUILD_ROOT
install -d \
- $RPM_BUILD_ROOT%{_sysconfdir}/mpdscribble \
$RPM_BUILD_ROOT/etc/sysconfig \
$RPM_BUILD_ROOT/etc/rc.d/init.d \
$RPM_BUILD_ROOT/var/{log,cache/%{name}}
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+%meson_install
+
+# packaged via %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/mpdscribble
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/mpdscribble
@@ -79,7 +81,7 @@ fi
%files
%defattr(644,root,root,755)
-%doc AUTHORS NEWS README
+%doc AUTHORS NEWS README.rst
%attr(755,root,root) %{_bindir}/%{name}
%dir %{_sysconfdir}/mpdscribble
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mpdscribble/mpdscribble.conf
diff --git a/mpdscribble-path.patch b/mpdscribble-path.patch
index a414941..579eca5 100644
--- a/mpdscribble-path.patch
+++ b/mpdscribble-path.patch
@@ -1,45 +1,34 @@
---- mpdscribble-0.20/Makefile.am~ 2010-09-22 15:16:26.000000000 +0200
-+++ mpdscribble-0.20/Makefile.am 2010-09-29 09:53:36.468512333 +0200
-@@ -42,7 +42,7 @@
- $(libgcrypt_LIBS) \
- $(libglib_LIBS)
+diff -ru a/doc/meson.build b/doc/meson.build
+--- a/doc/meson.build 2026-06-26 21:25:13.000000000 +0200
++++ b/doc/meson.build 2026-11-27 15:04:34.102269757 +0100
+@@ -2,6 +2,6 @@
--AM_CPPFLAGS += -DFILE_CONF='"$(sysconfdir)/mpdscribble.conf"'
-+AM_CPPFLAGS += -DFILE_CONF='"$(sysconfdir)/mpdscribble/mpdscribble.conf"'
-
- SPARSE = sparse
- SPARSE_FLAGS =
-@@ -58,15 +58,15 @@
- INSTALL_SECURE = $(INSTALL) -m 600
-
- install-dist_sysconfDATA:
-- test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
-+ test -z "$(sysconfdir)/mpdscribble" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)/mpdscribble"
- @list='$(dist_sysconf_DATA)'; \
- for p in $$list; do \
-- dest=`echo $$p | sed -e 's|^.*/||'`; \
-- if test -f $(DESTDIR)$(sysconfdir)/$$dest; then \
-- echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/$$dest"; \
-+ $(am__strip_dir) \
-+ if test -f $(DESTDIR)$(sysconfdir)/mpdscribble/$$f; then \
-+ echo "$@ will not overwrite existing $(DESTDIR)$(sysconfdir)/mpdscribble/$$f"; \
- else \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-- echo " $(INSTALL_SECURE) $$d$$p $(DESTDIR)$(sysconfdir)/$$dest"; \
-- $(INSTALL_SECURE) $$d$$p $(DESTDIR)$(sysconfdir)/$$dest; \
-+ echo " $(INSTALL_SECURE) $$d$$p $(DESTDIR)$(sysconfdir)/mpdscribble/$$f"; \
-+ $(INSTALL_SECURE) $$d$$p $(DESTDIR)$(sysconfdir)/mpdscribble/$$f; \
- fi; \
- done
---- mpdscribble-0.20/doc/mpdscribble.conf~ 2010-09-22 15:16:26.000000000 +0200
-+++ mpdscribble-0.20/doc/mpdscribble.conf 2010-09-29 09:56:40.278512333 +0200
-@@ -14,7 +14,8 @@
- # "syslog" makes mpdscribble use the local syslog daemon. On most
+ install_data(
+ 'mpdscribble.conf',
+- install_dir: get_option('sysconfdir'),
++ install_dir: join_paths(get_option('sysconfdir'), 'mpdscribble'),
+ install_mode: 'rw-------',
+ )
+diff -ru a/doc/mpdscribble.conf b/doc/mpdscribble.conf
+--- a/doc/mpdscribble.conf 2026-06-26 21:25:13.000000000 +0200
++++ b/doc/mpdscribble.conf 2026-11-27 15:04:34.103333333 +0100
+@@ -15,6 +15,7 @@
# systems, log messages will appear in /var/log/daemon.log then.
# "-" means log to stderr (the current terminal).
--log = syslog
-+#log = syslog
+ #log = syslog
+log = /var/log/mpdscribble/mpdscribble.log
# How verbose mpdscribble's logging should be. Default is 1.
verbose = 1
+diff -ru a/meson.build b/meson.build
+--- a/meson.build 2026-06-26 21:25:13.000000000 +0200
++++ b/meson.build 2026-11-27 15:04:34.099306094 +0100
+@@ -58,7 +58,7 @@
+ conf = configuration_data()
+ conf.set_quoted('PACKAGE', meson.project_name())
+ conf.set_quoted('VERSION', meson.project_version())
+-conf.set_quoted('FILE_CONF', join_paths(get_option('prefix'), get_option('sysconfdir'), 'mpdscribble.conf'))
++conf.set_quoted('FILE_CONF', join_paths(get_option('prefix'), get_option('sysconfdir'), 'mpdscribble', 'mpdscribble.conf'))
+
+ if not get_option('syslog').disabled()
+ if compiler.has_function('syslog')
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mpdscribble.git/commitdiff/3bff8ab631c0a445687c0057be3751002c18e2a2
More information about the pld-cvs-commit
mailing list