SHA256
1
0
forked from pool/iodbc

Accepting request 972828 from home:jengelh:branches:devel:libraries:c_c++

- Resolve rpmlint report "libiodbc3.x86_64: E:
  shlib-policy-name-error SONAME: libiodbc.so.2, expected package
  suffix: 2"

OBS-URL: https://build.opensuse.org/request/show/972828
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/iodbc?expand=0&rev=19
This commit is contained in:
2022-04-26 10:53:23 +00:00
committed by Git OBS Bridge
parent 8163f2bf15
commit e130b97dfe
2 changed files with 31 additions and 25 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 26 10:39:10 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Resolve rpmlint report "libiodbc3.x86_64: E:
shlib-policy-name-error SONAME: libiodbc.so.2, expected package
suffix: 2"
-------------------------------------------------------------------
Mon May 31 16:04:11 UTC 2021 - Ferdinand Thiessen <rpm@fthiessen.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package iodbc
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# 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)
# 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/
#
@@ -20,55 +20,55 @@ Name: iodbc
Version: 3.52.14
Release: 0
Summary: ODBC compliant driver manager
License: LGPL-2.0 or BSD-3-Clause
License: BSD-3-Clause OR LGPL-2.0-only
Group: Development/Libraries/C and C++
Url: http://www.iodbc.org/
URL: http://www.iodbc.org/
Source: https://download.sourceforge.net/iodbc/libiodbc-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-nonvoid-return.diff -- https://github.com/openlink/iODBC/issues/58
Patch0: fix-nonvoid-return.diff
BuildRequires: pkgconfig(gtk+-2.0)
%description
The iODBC Driver Manager is a free implementation of the SAG CLI and
The iODBC Driver Manager is an implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.
%package -n libiodbc-devel
Summary: Include Files and Libraries mandatory for Development
Summary: Headers for iODBC
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: libiodbc3 = %{version}
Requires: libdrvproxy2 = %{version}
Requires: libiodbc2 = %{version}
Requires: libiodbcadm2 = %{version}
Requires: pkgconfig(gtk+-2.0)
%description -n libiodbc-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
This package contains headers for the iODBC Driver Manager.
%package -n libiodbc3
%package -n libiodbc2
Summary: Libraries needed to run iODBC
Group: Development/Libraries/C and C++
Group: System/Libraries
Conflicts: libiodbc3 <= 3.52.14
%description -n libiodbc3
The iODBC Driver Manager is a free implementation of the SAG CLI and
%description -n libiodbc2
The iODBC Driver Manager is an implementation of the SAG CLI andx
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.
This package provides the shared libraries needed by iODBC
This package provides the shared libraries needed by iODBC.
%package -n libdrvproxy2
Summary: Administration library for iODBC
Group: Development/Libraries/C and C++
Group: System/Libraries
%description -n libdrvproxy2
This package provides libdrvproxy for administering iODBC
%package -n libiodbcadm2
Summary: Administration library for iODBC
Group: Development/Libraries/C and C++
Group: System/Libraries
%description -n libiodbcadm2
This package provides libiodbcadm for administering iODBC
@@ -78,16 +78,15 @@ Summary: Administration tools for iODBC
Group: Development/Libraries/C and C++
%description admin
The iODBC Driver Manager is a free implementation of the SAG CLI and
The iODBC Driver Manager is an implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.
This package provides tools for configuring and administering iODBC
This package provides tools for configuring and administering iODBC.
%prep
%setup -q -n libiodbc-%{version}
%patch0 -p1
%autosetup -n libiodbc-%{version} -p1
%build
%configure \
@@ -98,14 +97,14 @@ This package provides tools for configuring and administering iODBC
# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%make_build
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libiodbc3 -p /sbin/ldconfig
%postun -n libiodbc3 -p /sbin/ldconfig
%post -n libiodbc2 -p /sbin/ldconfig
%postun -n libiodbc2 -p /sbin/ldconfig
%post -n libiodbcadm2 -p /sbin/ldconfig
%postun -n libiodbcadm2 -p /sbin/ldconfig
%post -n libdrvproxy2 -p /sbin/ldconfig
@@ -148,7 +147,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_libdir}/pkgconfig/libiodbc.pc
%{_mandir}/man1/iodbc-config.1*
%files -n libiodbc3
%files -n libiodbc2
%license LICENSE
%{_libdir}/libiodbc.so.*
%{_libdir}/libiodbcinst.so.*