Init libmpd package
This commit is contained in:
parent
5803f02759
commit
6ac932818d
15
libmpd-11.8.17-strndup.patch
Normal file
15
libmpd-11.8.17-strndup.patch
Normal file
@ -0,0 +1,15 @@
|
||||
In file included from /usr/include/string.h:630:0,
|
||||
from libmpd-strfsong.c:29:
|
||||
libmpd-internal.h:210:10: error: expected identifier or '(' before '__extension__'
|
||||
char * strndup (const char *s, size_t n);
|
||||
|
||||
--- a/src/libmpd-strfsong.c
|
||||
+++ b/src/libmpd-strfsong.c
|
||||
@@ -28,6 +28,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
+#include "config.h"
|
||||
#include "libmpd.h"
|
||||
#include "libmpd-internal.h"
|
||||
|
||||
BIN
libmpd-11.8.17.tar.gz
Normal file
BIN
libmpd-11.8.17.tar.gz
Normal file
Binary file not shown.
49
libmpd.spec
Normal file
49
libmpd.spec
Normal file
@ -0,0 +1,49 @@
|
||||
Name: libmpd
|
||||
Version: 11.8.17
|
||||
Release: 1%{?dist}
|
||||
Summary: Music Player Daemon Library
|
||||
Group: Development/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://gmpc.wikia.com/wiki/Gnome_Music_Player_Client
|
||||
Source: http://download.sarine.nl/Programs/gmpc/11.8/libmpd-11.8.17.tar.gz
|
||||
Patch0: libmpd-11.8.17-strndup.patch
|
||||
BuildRequires: gcc
|
||||
BuildRequires: glib2-devel >= 2.16
|
||||
%description
|
||||
libmpd is an abstraction around libmpdclient. It provides an easy and reliable callback based interface to mpd.
|
||||
|
||||
%package devel
|
||||
Requires: %{name} = %{version}
|
||||
Requires: pkgconfig
|
||||
|
||||
Summary: Development files for %{name}
|
||||
%description devel
|
||||
libmpd-devel contains libraries and header files for developing applications that use %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .strndup
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%{__make} DESTDIR="$RPM_BUILD_ROOT" install
|
||||
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/%{name}.la
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%doc ChangeLog COPYING README
|
||||
%{_libdir}/libmpd.so.1*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libmpd.so
|
||||
%{_libdir}/pkgconfig/libmpd.pc
|
||||
%{_includedir}/libmpd-1.0
|
||||
|
||||
%changelog
|
||||
* Wed Jul 8 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 11.8.17-1
|
||||
- Init Package
|
||||
- history 0.20.0, next 11.8.17
|
||||
Loading…
x
Reference in New Issue
Block a user