Accepting request 898392 from multimedia:libs

OBS-URL: https://build.opensuse.org/request/show/898392
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcddb?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2021-06-13 21:05:31 +00:00 committed by Git OBS Bridge
commit 6cc6159b83
4 changed files with 29 additions and 31 deletions

View File

@ -1,5 +1,11 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 11 14:17:58 UTC 2013 - mmeister@suse.com 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. - Added url as source.
Please see http://en.opensuse.org/SourceUrls Please see http://en.opensuse.org/SourceUrls

View File

@ -1,7 +1,7 @@
# #
# spec file for package libcddb-utils # spec file for package libcddb-utils
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -25,9 +25,9 @@ Name: libcddb-utils
%define _name libcddb %define _name libcddb
Version: 1.3.2 Version: 1.3.2
Release: 0 Release: 0
Url: http://libcddb.sourceforge.net/ URL: http://libcddb.sourceforge.net/
Summary: CDDB Access Library Utilities Summary: CDDB Access Library Utilities
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other Group: Productivity/Multimedia/Other
%if %BUILD_CORE %if %BUILD_CORE
# bug437293 # bug437293
@ -38,7 +38,6 @@ Obsoletes: libcddb-64bit
Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}/%{version}/%{_name}-%{version}.tar.bz2 Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}/%{version}/%{_name}-%{version}.tar.bz2
Source1: %{_name}_spec-prepare.sh Source1: %{_name}_spec-prepare.sh
Source2: baselibs.conf Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkg-config
%if %BUILD_UTILS %if %BUILD_UTILS
@ -117,26 +116,22 @@ sed -i 's:\(\.\.\|\$(top_builddir)\)/[^/]*/lib\([^ ]*\)\.la:-l\2:g' */Makefile.a
autoreconf -f -i autoreconf -f -i
%configure\ %configure\
--disable-rpath\ --disable-rpath\
--disable-static\ --disable-static
--with-pic
%if !%BUILD_CORE %if !%BUILD_CORE
cd examples cd examples
%endif %endif
make %{?jobs:-j%jobs} %make_build
%install %install
%if !%BUILD_CORE %if !%BUILD_CORE
cd examples cd examples
%endif %endif
make DESTDIR=$RPM_BUILD_ROOT install %make_install
%{__rm} -f %{buildroot}%{_libdir}/libcddb.la rm -f %{buildroot}%{_libdir}/libcddb.la
%clean
rm -rf $RPM_BUILD_ROOT
%if %BUILD_UTILS %if %BUILD_UTILS
%files -n libcddb-utils %files -n libcddb-utils
%defattr (-, root, root)
%{_bindir}/* %{_bindir}/*
%endif %endif
%if %BUILD_CORE %if %BUILD_CORE
@ -146,11 +141,9 @@ rm -rf $RPM_BUILD_ROOT
%postun -n libcddb2 -p /sbin/ldconfig %postun -n libcddb2 -p /sbin/ldconfig
%files -n libcddb2 %files -n libcddb2
%defattr (-, root, root)
%{_libdir}/*.so.2* %{_libdir}/*.so.2*
%files devel %files devel
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
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 Thu Apr 11 14:17:46 UTC 2013 - mmeister@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package libcddb # spec file for package libcddb
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -25,9 +25,9 @@ Name: libcddb
%define _name libcddb %define _name libcddb
Version: 1.3.2 Version: 1.3.2
Release: 0 Release: 0
Url: http://libcddb.sourceforge.net/ URL: http://libcddb.sourceforge.net/
Summary: CDDB Access Library Utilities Summary: CDDB Access Library Utilities
License: LGPL-2.1+ License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Other Group: Productivity/Multimedia/Other
%if %BUILD_CORE %if %BUILD_CORE
# bug437293 # bug437293
@ -38,7 +38,6 @@ Obsoletes: libcddb-64bit
Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}/%{version}/%{_name}-%{version}.tar.bz2 Source: http://downloads.sourceforge.net/project/%{_name}/%{_name}/%{version}/%{_name}-%{version}.tar.bz2
Source1: %{_name}_spec-prepare.sh Source1: %{_name}_spec-prepare.sh
Source2: baselibs.conf Source2: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libtool BuildRequires: libtool
BuildRequires: pkg-config BuildRequires: pkg-config
%if %BUILD_UTILS %if %BUILD_UTILS
@ -117,26 +116,22 @@ sed -i 's:\(\.\.\|\$(top_builddir)\)/[^/]*/lib\([^ ]*\)\.la:-l\2:g' */Makefile.a
autoreconf -f -i autoreconf -f -i
%configure\ %configure\
--disable-rpath\ --disable-rpath\
--disable-static\ --disable-static
--with-pic
%if !%BUILD_CORE %if !%BUILD_CORE
cd examples cd examples
%endif %endif
make %{?jobs:-j%jobs} %make_build
%install %install
%if !%BUILD_CORE %if !%BUILD_CORE
cd examples cd examples
%endif %endif
make DESTDIR=$RPM_BUILD_ROOT install %make_install
%{__rm} -f %{buildroot}%{_libdir}/libcddb.la rm -f %{buildroot}%{_libdir}/libcddb.la
%clean
rm -rf $RPM_BUILD_ROOT
%if %BUILD_UTILS %if %BUILD_UTILS
%files -n libcddb-utils %files -n libcddb-utils
%defattr (-, root, root)
%{_bindir}/* %{_bindir}/*
%endif %endif
%if %BUILD_CORE %if %BUILD_CORE
@ -146,11 +141,9 @@ rm -rf $RPM_BUILD_ROOT
%postun -n libcddb2 -p /sbin/ldconfig %postun -n libcddb2 -p /sbin/ldconfig
%files -n libcddb2 %files -n libcddb2
%defattr (-, root, root)
%{_libdir}/*.so.2* %{_libdir}/*.so.2*
%files devel %files devel
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO %doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc %{_libdir}/pkgconfig/*.pc