2017-08-09 16:20:31 +02:00
|
|
|
#
|
|
|
|
# spec file for package libstorage-ng
|
|
|
|
#
|
2021-01-04 17:40:24 +01:00
|
|
|
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
|
2017-08-09 16:20:31 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-04-20 17:18:17 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2017-08-09 16:20:31 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define libname %{name}1
|
|
|
|
Name: libstorage-ng
|
2021-03-14 23:00:30 +01:00
|
|
|
Version: 4.3.92
|
2017-08-09 16:20:31 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for storage management
|
2018-08-22 14:55:29 +02:00
|
|
|
License: GPL-2.0-only
|
2017-08-09 16:20:31 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://github.com/openSUSE/libstorage-ng
|
2017-08-17 10:32:03 +02:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-08-09 16:20:31 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
|
|
|
BuildRequires: libboost_headers-devel
|
|
|
|
BuildRequires: libboost_test-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: boost-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: graphviz
|
|
|
|
BuildRequires: grep
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: ruby
|
|
|
|
BuildRequires: ruby-devel
|
|
|
|
%if 0%{?suse_version} == 1315
|
|
|
|
# Using rubygem(test-unit) does not work since ruby2.1-stdlib claims to
|
|
|
|
# provide rubygem(test-unit). But that is plain wrong. The version in
|
|
|
|
# ruby2.1-stdlib does not provide the function assert_raise_kind_of.
|
|
|
|
BuildRequires: ruby2.1-rubygem-test-unit
|
|
|
|
%endif
|
|
|
|
%if 0%{?fedora}
|
|
|
|
BuildRequires: rubygem-test-unit
|
|
|
|
%endif
|
2017-09-26 14:51:08 +02:00
|
|
|
BuildRequires: libjson-c-devel
|
2017-08-09 16:20:31 +02:00
|
|
|
BuildRequires: swig >= 3.0.3
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2017-12-19 15:10:10 +01:00
|
|
|
BuildRequires: pkgconfig(python3)
|
2017-08-09 16:20:31 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains libstorage-ng, a library for storage management.
|
|
|
|
|
|
|
|
%package lang
|
|
|
|
Summary: Languages for package %{name}
|
|
|
|
Group: System/Localization
|
2018-03-26 15:48:19 +02:00
|
|
|
Supplements: %{name}
|
2017-08-09 16:20:31 +02:00
|
|
|
Provides: %{name}-lang-all = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description lang
|
|
|
|
Provides translations to the package %{name}
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library for storage management
|
|
|
|
Group: System/Libraries
|
2018-01-24 11:24:08 +01:00
|
|
|
Recommends: %{name}-lang
|
2017-08-09 16:20:31 +02:00
|
|
|
Requires: coreutils
|
2017-09-07 10:12:31 +02:00
|
|
|
Suggests: cryptsetup
|
2017-08-09 16:20:31 +02:00
|
|
|
Requires: device-mapper
|
2017-09-07 10:12:31 +02:00
|
|
|
Suggests: dmraid
|
2017-08-09 16:20:31 +02:00
|
|
|
Requires: lsscsi >= 0.26
|
2017-09-07 10:12:31 +02:00
|
|
|
Suggests: lvm2
|
|
|
|
Suggests: mdadm >= 3.3
|
|
|
|
Suggests: multipath-tools
|
|
|
|
Requires: parted >= 3.2
|
2017-08-09 16:20:31 +02:00
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: util-linux >= 2.16
|
|
|
|
Requires: pkgconfig(udev)
|
|
|
|
Obsoletes: %{libname} < %{version}
|
|
|
|
Obsoletes: libstorage %(echo `seq -s " " -f "libstorage%.f" 9`)
|
|
|
|
%ifarch s390 s390x
|
|
|
|
Requires: s390-tools
|
|
|
|
%endif
|
2018-05-18 12:23:19 +02:00
|
|
|
# Old version of libdmraid cannot be used. Upgrading from SLE11 to SLE15
|
|
|
|
# does not remove old version, so it needs to be marked as conflict.
|
|
|
|
# For more info, see https://bugzilla.suse.com/show_bug.cgi?id=1088570#c35
|
|
|
|
Conflicts: libdmraid.so.1.0.0.rc16(libdmraid.so.1.0.0.rc16)(64bit)
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
This package contains libstorage-ng, a library for storage management.
|
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%package devel
|
2017-08-09 16:20:31 +02:00
|
|
|
Summary: Header files and documentation for libstorage-ng
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
Requires: gcc-c++
|
|
|
|
Requires: libstdc++-devel
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: pkgconfig(libxml-2.0)
|
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%description devel
|
2017-08-09 16:20:31 +02:00
|
|
|
This package contains header files and documentation for developing with
|
|
|
|
libstorage-ng.
|
|
|
|
|
2017-12-19 15:10:10 +01:00
|
|
|
%package python3
|
2017-08-09 16:20:31 +02:00
|
|
|
Summary: Python bindings for libstorage-ng
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{libname} = %{version}
|
2017-12-20 16:14:15 +01:00
|
|
|
Obsoletes: libstorage-python
|
2017-08-09 16:20:31 +02:00
|
|
|
|
2017-12-19 15:10:10 +01:00
|
|
|
%description python3
|
2017-08-09 16:20:31 +02:00
|
|
|
This package contains Python bindings for libstorage-ng.
|
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%package ruby
|
2017-08-09 16:20:31 +02:00
|
|
|
Summary: Ruby bindings for libstorage-ng
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{libname} = %{version}
|
2017-12-20 16:14:15 +01:00
|
|
|
Obsoletes: libstorage-ruby
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%description ruby
|
|
|
|
This package contains Ruby bindings for libstorage-ng.
|
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%package utils
|
|
|
|
Summary: Utils for libstorage-ng
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Recommends: graphviz
|
|
|
|
Recommends: ImageMagick
|
|
|
|
|
|
|
|
%description utils
|
|
|
|
This package contains utils for libstorage-ng.
|
|
|
|
|
|
|
|
%package integration-tests
|
2017-08-09 16:20:31 +02:00
|
|
|
Summary: Integration tests for libstorage-ng
|
|
|
|
Group: Development/Tools/Other
|
2017-12-19 15:10:10 +01:00
|
|
|
Requires: libstorage-ng-python3
|
2017-08-09 16:20:31 +02:00
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%description integration-tests
|
2017-08-09 16:20:31 +02:00
|
|
|
This package contains integration tests for libstorage-ng.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -DNDEBUG"
|
|
|
|
export CXXFLAGS="%{optflags} -DNDEBUG"
|
|
|
|
|
|
|
|
autoreconf -fvi
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--disable-silent-rules
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
2019-02-27 14:33:00 +01:00
|
|
|
make %{?_smp_mflags} check VERBOSE=1 LOCALEDIR=%{buildroot}%{_datadir}/locale
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2017-12-19 15:10:10 +01:00
|
|
|
find %{buildroot} -type f -name "*.pyc" -delete -print
|
2017-08-09 16:20:31 +02:00
|
|
|
|
2018-03-23 10:36:42 +01:00
|
|
|
install -d -m 755 %{buildroot}/run/libstorage-ng
|
|
|
|
touch %{buildroot}/run/libstorage-ng/lock
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%fdupes -s %{buildroot}
|
|
|
|
|
|
|
|
%find_lang libstorage-ng
|
|
|
|
|
2017-09-26 14:51:08 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}-lang -f libstorage-ng.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%defattr(-,root,root)
|
2018-10-29 13:04:35 +01:00
|
|
|
%doc AUTHORS
|
|
|
|
%license LICENSE
|
2017-08-09 16:20:31 +02:00
|
|
|
%{_libdir}/libstorage-ng.so.*
|
2018-03-23 10:36:42 +01:00
|
|
|
%ghost /run/libstorage-ng
|
2017-08-09 16:20:31 +02:00
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%files devel
|
2017-08-09 16:20:31 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libstorage-ng.so
|
|
|
|
%{_includedir}/storage
|
|
|
|
%dir %{_docdir}/%{name}/
|
|
|
|
%doc %{_docdir}/%{name}/*
|
|
|
|
|
2017-12-19 15:10:10 +01:00
|
|
|
%files python3
|
2017-08-09 16:20:31 +02:00
|
|
|
%defattr(-,root,root)
|
2017-12-19 15:10:10 +01:00
|
|
|
%{python3_sitelib}/storage.py*
|
|
|
|
%attr(755,root,root) %{python3_sitearch}/_storage.so
|
2017-08-09 16:20:31 +02:00
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%files ruby
|
2017-08-09 16:20:31 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{rb_vendorarch}/storage.so
|
|
|
|
|
2017-12-04 17:23:38 +01:00
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root)
|
2020-06-30 14:40:23 +02:00
|
|
|
%dir %{_prefix}/lib/libstorage-ng
|
|
|
|
%{_prefix}/lib/libstorage-ng/utils
|
2017-12-04 17:23:38 +01:00
|
|
|
|
2017-08-09 16:20:31 +02:00
|
|
|
%files integration-tests
|
|
|
|
%defattr(-,root,root)
|
2017-12-19 15:10:10 +01:00
|
|
|
%{python3_sitelib}/storageitu.py*
|
2020-06-30 14:40:23 +02:00
|
|
|
%dir %{_prefix}/lib/libstorage-ng
|
|
|
|
%{_prefix}/lib/libstorage-ng/integration-tests
|
2017-08-09 16:20:31 +02:00
|
|
|
|
|
|
|
%changelog
|