Sync from SUSE:SLFO:Main libcddb revision 956642b3b9ac2bdcfb008ecffa0f2916

This commit is contained in:
Adrian Schröter 2024-05-03 14:41:46 +02:00
commit a7ecd364af
7 changed files with 307 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

4
_multibuild Normal file
View File

@ -0,0 +1,4 @@
<multibuild>
<package>utils</package>
</multibuild>

1
baselibs.conf Normal file
View File

@ -0,0 +1 @@
libcddb2

BIN
libcddb-1.3.2.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

11
libcddb-no-examples.patch Normal file
View File

@ -0,0 +1,11 @@
Index: Makefile.am
===================================================================
--- Makefile.am.orig 2003-05-28 17:55:14.000000000 +0200
+++ Makefile.am 2007-10-09 08:08:47.000000000 +0200
@@ -1,5 +1,5 @@
-SUBDIRS = include lib examples tests
+SUBDIRS = include lib tests
EXTRA_DIST = doc/doxygen.conf misc/$(PACKAGE).ebuild
dist-hook:

146
libcddb.changes Normal file
View File

@ -0,0 +1,146 @@
-------------------------------------------------------------------
Thu May 4 09:53:33 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- Transform into a proper _multibuild package: the spec is already
prepared and uses a few variables to distinguish flavors.
-------------------------------------------------------------------
Mon Jun 7 15:02:24 UTC 2021 - Jan Engelhardt <jengelh@inai.de>
- Drop --with-pic (no effect with --disable-static)
- Trim old/redundant rpm constructs
-------------------------------------------------------------------
Thu Apr 11 14:17:46 UTC 2013 - mmeister@suse.com
- Added url as source.
Please see http://en.opensuse.org/SourceUrls
-------------------------------------------------------------------
Thu Feb 16 21:09:31 UTC 2012 - coolo@suse.com
- move license outside a %if to fix build of libcddb-utils
-------------------------------------------------------------------
Thu Jan 19 07:51:46 UTC 2012 - coolo@suse.com
- fix pre_checkin.sh
-------------------------------------------------------------------
Thu Dec 1 16:59:06 UTC 2011 - coolo@suse.com
- add libtool as buildrequire to avoid implicit dependency
-------------------------------------------------------------------
Sun Jan 31 21:09:13 CET 2010 - jengelh@medozas.de
- Package baselibs.conf
-------------------------------------------------------------------
Thu Aug 6 15:00:44 CEST 2009 - sbrabec@suse.cz
- Updated to version 1.3.2:
* ported to more platforms
* new functions in the API
* minor fixes
- Build in two stages to break build loop without removing
utilities.
-------------------------------------------------------------------
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
(bnc#437293)
-------------------------------------------------------------------
Thu Dec 4 12:34:56 CET 2008 - olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
-------------------------------------------------------------------
Thu Nov 27 14:14:33 CET 2008 - ro@suse.de
- update baselibs.conf
-------------------------------------------------------------------
Thu Apr 10 12:54:45 CEST 2008 - ro@suse.de
- added baselibs.conf file to build xxbit packages
for multilib support
-------------------------------------------------------------------
Tue Oct 9 08:23:50 CEST 2007 - crrodriguez@suse.de
- fix build using library packaging policy
- remove static libraries and useless libtool archive
- permanently break build loop by removing the example code that caused it
-------------------------------------------------------------------
Tue Sep 11 12:46:28 CEST 2007 - sbrabec@suse.cz
- Break build loop libcddb -> libcdio -> libcddb.
-------------------------------------------------------------------
Fri Oct 20 15:26:57 CEST 2006 - sbrabec@suse.cz
- Updated to version 1.3.0:
* Support for the 'album' command of the freedb2.org.
* Functions to set or reset some flags.
-------------------------------------------------------------------
Fri Oct 6 16:23:58 CEST 2006 - sbrabec@suse.cz
- Updated to version 1.2.2:
* Correct character set is specified when submitting data.
-------------------------------------------------------------------
Fri Jun 30 13:18:50 CEST 2006 - sbrabec@suse.cz
- Fixed cyclic dependencies in a correct way.
-------------------------------------------------------------------
Thu Jun 22 18:36:21 CEST 2006 - sbrabec@suse.cz
- Simpler solution of cyclic dependencies.
-------------------------------------------------------------------
Tue Jan 31 14:20:12 CET 2006 - sbrabec@suse.cz
- Enabled parallel build.
- Fixed devel splitting.
-------------------------------------------------------------------
Wed Jan 25 21:42:30 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Oct 26 13:32:11 CEST 2005 - sbrabec@suse.cz
- Build with libcdio-0.76.
-------------------------------------------------------------------
Fri Aug 5 11:00:12 CEST 2005 - sbrabec@suse.cz
- Updated to version 1.2.1.
-------------------------------------------------------------------
Fri Jul 29 15:57:55 CEST 2005 - sbrabec@suse.cz
- Updated to version 1.2.0.
-------------------------------------------------------------------
Mon May 9 13:07:34 CEST 2005 - sbrabec@suse.cz
- Updated to version 1.0.2.
-------------------------------------------------------------------
Tue Apr 26 13:23:02 CEST 2005 - sbrabec@suse.cz
- Updated to version 1.0.1.
-------------------------------------------------------------------
Tue Nov 09 14:52:28 CET 2004 - sbrabec@suse.cz
- New SuSE package, version 0.9.6.

119
libcddb.spec Normal file
View File

@ -0,0 +1,119 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define flavor @BUILD_FLAVOR@%{nil}
%define BUILD_UTILS 0
%if "%{flavor}" == "utils"
%define BUILD_UTILS 1
%define nsuffix -utils
%endif
# To break libcddb<->libcdio dependency loop, this package is built in two stages.
%define _name libcddb
Name: libcddb%{?nsuffix}
Version: 1.3.2
Release: 0
Summary: CDDB Access Library Utilities
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other
URL: https://libcddb.sourceforge.net/
Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}/%{version}/%{_name}-%{version}.tar.bz2
Source2: baselibs.conf
Patch0: libcddb-no-examples.patch
BuildRequires: libtool
BuildRequires: pkgconfig
%if %{BUILD_UTILS}
BuildRequires: libcddb-devel
BuildRequires: libcdio-devel
%endif
%description
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, and SMTP) to access data on a CDDB server (http://freedb.org). It
tries to be as cross-platform as possible.
%if ! %{BUILD_UTILS}
%package -n libcddb2
Summary: CDDB Access Library
Group: System/Libraries
#
Provides: %{_name} = %{version}
#opensuse 10.3
Obsoletes: %{_name} <= 1.3.0
%description -n libcddb2
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, and SMTP) to access data on a CDDB server (http://freedb.org). It
tries to be as cross-platform as possible.
%package devel
Summary: CDDB Access Library
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libcddb2 = %{version}
%description devel
Libcddb is a library that implements the different protocols (CDDBP,
HTTP, and SMTP) to access data on a CDDB server (http://freedb.org). It
tries to be as cross-platform as possible.
%endif
%prep
%setup -q -n %{_name}-%{version}
%if !%{BUILD_UTILS}
%patch0
%else
sed -i 's:\(\.\.\|\$(top_builddir)\)/[^/]*/lib\([^ ]*\)\.la:-l\2:g' */Makefile.am
%endif
%build
autoreconf -f -i
%configure\
--disable-rpath\
--disable-static
%if %{BUILD_UTILS}
cd examples
%endif
%make_build
%install
%if %{BUILD_UTILS}
cd examples
%endif
%make_install
rm -f %{buildroot}%{_libdir}/libcddb.la
%if %{BUILD_UTILS}
%files
%{_bindir}/*
%else
%ldconfig_scriptlets -n libcddb2
%files -n libcddb2
%{_libdir}/*.so.2*
%files devel
%license COPYING
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/cddb
%endif
%changelog