automatic rebuild by autodist [release 2.1.5-2mamba;Wed Jul 31 2013]

This commit is contained in:
Automatic Build System 2024-01-06 05:07:04 +01:00
parent 640364e389
commit 6b74a49444
3 changed files with 146 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libmusicbrainz2
The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server.

View File

@ -0,0 +1,57 @@
diff -Naur libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp libmusicbrainz-2.1.4/lib/c_wrapper.cpp
--- libmusicbrainz-2.1.4-orig/lib/c_wrapper.cpp 2003-10-16 16:21:10.000000000 -0600
+++ libmusicbrainz-2.1.4/lib/c_wrapper.cpp 2007-12-16 09:45:21.000000000 -0600
@@ -24,6 +24,7 @@
#include "musicbrainz.h"
#include "trm.h"
#include "mb_c.h"
+#include <cstring>
extern "C"
{
diff -Naur libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp libmusicbrainz-2.1.4/lib/comhttpsocket.cpp
--- libmusicbrainz-2.1.4-orig/lib/comhttpsocket.cpp 2006-05-11 12:46:54.000000000 -0600
+++ libmusicbrainz-2.1.4/lib/comhttpsocket.cpp 2007-12-16 09:46:28.000000000 -0600
@@ -20,6 +20,7 @@
#endif
#include <stdlib.h>
#include <assert.h>
+#include <cstring>
const char* g_strCOMVer = "libmusicbrainz/"VERSION;
diff -Naur libmusicbrainz-2.1.4-orig/lib/comsocket.cpp libmusicbrainz-2.1.4/lib/comsocket.cpp
--- libmusicbrainz-2.1.4-orig/lib/comsocket.cpp 2006-05-11 12:46:54.000000000 -0600
+++ libmusicbrainz-2.1.4/lib/comsocket.cpp 2007-12-16 09:46:08.000000000 -0600
@@ -37,6 +37,7 @@
#include <netinet/tcp.h>
#include <errno.h>
#include <stdio.h>
+#include <cstring>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
diff -Naur libmusicbrainz-2.1.4-orig/lib/http.cpp libmusicbrainz-2.1.4/lib/http.cpp
--- libmusicbrainz-2.1.4-orig/lib/http.cpp 2007-12-16 09:52:48.000000000 -0600
+++ libmusicbrainz-2.1.4/lib/http.cpp 2007-12-16 09:52:36.000000000 -0600
@@ -31,6 +31,8 @@
#endif
#include <fcntl.h>
#include <errno.h>
+#include <cstring>
+#include <cstdlib>
#ifdef WIN32
#include <winsock.h>
diff -Naur libmusicbrainz-2.1.4-orig/lib/sigclient.cpp libmusicbrainz-2.1.4/lib/sigclient.cpp
--- libmusicbrainz-2.1.4-orig/lib/sigclient.cpp 2006-05-11 12:46:54.000000000 -0600
+++ libmusicbrainz-2.1.4/lib/sigclient.cpp 2007-12-16 09:54:48.000000000 -0600
@@ -33,6 +33,8 @@
#pragma warning(disable:4786)
#endif
+#include <cstring>
+
#include "sigclient.h"
#include "comhttpsocket.h"

87
libmusicbrainz2.spec Normal file
View File

@ -0,0 +1,87 @@
Name: libmusicbrainz2
Version: 2.1.5
Release: 2mamba
Summary: MusicBrainz Client Library
Group: System/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.musicbrainz.org/
Source: ftp://ftp.musicbrainz.org/pub/musicbrainz/libmusicbrainz-%{version}.tar.gz
Patch0: libmusicbrainz-2.1.4-gcc43-includes.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libexpat-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server.
%package devel
Group: Development/Libraries
Summary: MusicBrainz Client Development Library
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
The MusicBrainz client is a library which can be built into other programs. The library allows you to access the data held on the MusicBrainz server.
This package contains static libraries and header files need for development.
%prep
%setup -q -n libmusicbrainz-%{version}
%patch0 -p1
%build
%configure \
--enable-cpp-headers
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libmusicbrainz.so.*
%doc AUTHORS COPYING README TODO
%files devel
%defattr(-,root,root)
%{_includedir}/musicbrainz/*.h
%{_libdir}/libmusicbrainz.a
%{_libdir}/libmusicbrainz.la
%{_libdir}/libmusicbrainz.so
%{_libdir}/pkgconfig/libmusicbrainz.pc
%changelog
* Wed Jul 31 2013 Automatic Build System <autodist@mambasoft.it> 2.1.5-2mamba
- automatic rebuild by autodist
* Sat Jan 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.5-1mamba
- update to 2.1.5
- created from libmusicbrainz as a legacy package
* Mon Apr 09 2007 Tiziano Pratellesi <tiziano.pratellesi@openmamba.org> 2.1.4-1mamba
- update to 2.1.4
* Wed Jun 14 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.1.2-1qilnx
- update to version 2.1.2 by autospec
* Thu Jun 09 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.1-3qilnx
- specfile updates/fixes
* Wed Jul 28 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.1-2qilnx
- added the missing %%post and %%postun scripts
* Thu Apr 29 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.1-1qilnx
- new version rebuild