osc copypac from project:YaST:storage-ng package:libstorage-ng revision:223

OBS-URL: https://build.opensuse.org/package/show/YaST:Head/libstorage-ng?expand=0&rev=1
This commit is contained in:
Steffen Winterfeldt 2017-08-09 14:20:31 +00:00 committed by Git OBS Bridge
commit 78720e756c
5 changed files with 241 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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90a7a6041b04518802340f1ddd130cc80135839680600b9729a88d94f788f834
size 703733

17
libstorage-ng.changes Normal file
View File

@ -0,0 +1,17 @@
-------------------------------------------------------------------
Fri May 27 11:56:53 CEST 2016 - aschnell@suse.com
- call parted with --wipesignatures when creating partitions to
avoid auto-assembly of old MD RAIDs (fate#319893, bsc#943623)
-------------------------------------------------------------------
Fri Apr 19 12:34:56 CEST 2016 - aschnell@suse.com
- switched from cylinder to sector based sized for disks and
partitions
-------------------------------------------------------------------
Wed Feb 24 15:24:51 CET 2016 - aschnell@suse.com
- initial package with libstorage-ng, successor of libstorage

197
libstorage-ng.spec Normal file
View File

@ -0,0 +1,197 @@
#
# spec file for package libstorage-ng
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define libname %{name}1
Name: libstorage-ng
Version: 3.0.0
Release: 0
Summary: Library for storage management
License: GPL-2.0
Group: System/Libraries
Url: http://github.com/openSUSE/libstorage-ng
Source: libstorage-ng-%{version}.tar.bz2
%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
BuildRequires: swig >= 3.0.3
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(python)
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
Supplements: packageand(bundle-lang-other:%{name})
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
Requires: %{name}-lang
Requires: coreutils
Requires: cryptsetup
Requires: device-mapper
Requires: dmraid
Requires: lsscsi >= 0.26
Requires: lvm2
Requires: mdadm >= 3.3
Requires: multipath-tools
Requires: parted >= 3.1
Requires: pkgconfig
Requires: util-linux >= 2.16
Requires: pkgconfig(udev)
Obsoletes: %{libname} < %{version}
Obsoletes: yast2-storage-lib
Obsoletes: libstorage %(echo `seq -s " " -f "libstorage%.f" 9`)
%ifarch s390 s390x
Requires: s390-tools
%endif
%description -n %{libname}
This package contains libstorage-ng, a library for storage management.
%package -n libstorage-ng-devel
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)
%description -n libstorage-ng-devel
This package contains header files and documentation for developing with
libstorage-ng.
%package -n libstorage-ng-python
Summary: Python bindings for libstorage-ng
Group: System/Libraries
Requires: %{libname} = %{version}
%description python
This package contains Python bindings for libstorage-ng.
%package -n libstorage-ng-ruby
Summary: Ruby bindings for libstorage-ng
Group: System/Libraries
Requires: %{libname} = %{version}
%description ruby
This package contains Ruby bindings for libstorage-ng.
%package -n libstorage-ng-integration-tests
Summary: Integration tests for libstorage-ng
Group: Development/Tools/Other
Requires: libstorage-ng-python
%description -n libstorage-ng-integration-tests
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
make %{?_smp_mflags} check LOCALEDIR=%{buildroot}%{_datadir}/locale
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
install -d -m 755 %{buildroot}/run/libstorage
touch %{buildroot}/run/libstorage/lock
%fdupes -s %{buildroot}
%find_lang libstorage-ng
%post -n %{libname}
/sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{name}-lang -f libstorage-ng.lang
%defattr(-,root,root)
%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS LICENSE
%{_libdir}/libstorage-ng.so.*
%ghost /run/libstorage
%files -n libstorage-ng-devel
%defattr(-,root,root)
%{_libdir}/libstorage-ng.so
%{_includedir}/storage
%dir %{_docdir}/%{name}/
%doc %{_docdir}/%{name}/*
%files -n libstorage-ng-python
%defattr(-,root,root)
%{python_sitelib}/storage.py*
%attr(755,root,root) %{python_sitearch}/_storage.so
%files -n libstorage-ng-ruby
%defattr(-,root,root)
%{rb_vendorarch}/storage.so
%files integration-tests
%defattr(-,root,root)
%{python_sitelib}/storageitu.py*
%dir %{_libexecdir}/libstorage-ng
%{_libexecdir}/libstorage-ng/integration-tests
%changelog