73be06136e
- Split udev rules into a separate package - Obsolete libvpd2 by udev rules - Obsolete 32bit devel package OBS-URL: https://build.opensuse.org/request/show/970876 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvpd?expand=0&rev=3
105 lines
3.0 KiB
RPMSpec
105 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package libvpd
|
|
#
|
|
# 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
|
|
# 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 soversion -2_2-3
|
|
|
|
Name: libvpd
|
|
Version: 2.2.9
|
|
Release: 0
|
|
Summary: VPD Database access library for lsvpd
|
|
License: LGPL-2.1-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/power-ras/libvpd
|
|
Source: https://github.com/power-ras/libvpd/archive/v%{version}.tar.gz#/%{name}2-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
Patch1: libvpd2.makefile.patch
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(sqlite3)
|
|
BuildRequires: pkgconfig(udev)
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
%description
|
|
The libvpd package contains classes that are used to access a Vital
|
|
Product Data (VPD) database created by vpdupdate in the lsvpd package.
|
|
|
|
%package -n %{name}%{soversion}
|
|
Summary: VPD Database access library for lsvpd
|
|
Group: System/Libraries
|
|
Requires: %{name}-base
|
|
|
|
%description -n %{name}%{soversion}
|
|
The libvpd package contains classes that are used to access a Vital
|
|
Product Data (VPD) database created by vpdupdate in the lsvpd package.
|
|
|
|
%package base
|
|
Summary: Udev rules for VPD Database access library
|
|
Group: System/Libraries
|
|
Obsoletes: libvpd2 < 2.2.9
|
|
|
|
%description base
|
|
Udev rules for libvpd library used to access a vpd database created by
|
|
vpdupdate in the lsvpd package.
|
|
|
|
%package devel
|
|
Summary: VPD Database access library for lsvpd
|
|
Group: Development/Languages/C and C++
|
|
Requires: %{name}%{soversion} = %{version}-%{release}
|
|
Requires: pkgconfig(sqlite3)
|
|
Obsoletes: libvpd2-devel < 2.2.9
|
|
Obsoletes: libvpd2-devel-32bit < 2.2.9
|
|
|
|
%description devel
|
|
The libvpd-devel package contains development libraries and header
|
|
files that are used to access a vpd database created by vpdupdate in
|
|
the lsvpd package.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf -fiv
|
|
%configure \
|
|
--disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%post -n %{name}%{soversion} -p /sbin/ldconfig
|
|
%postun -n %{name}%{soversion} -p /sbin/ldconfig
|
|
|
|
%files -n %{name}%{soversion}
|
|
%{_libdir}/*.so.*
|
|
|
|
%files base
|
|
%{_udevrulesdir}/90-vpdupdate.rules
|
|
|
|
%files devel
|
|
%license COPYING
|
|
%doc README
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%changelog
|