Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
qclib-devel.2591
qclib-devel.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qclib-devel.spec of Package qclib-devel.2591
# Copyright (c) 2015 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 pkgname qclib Name: %{pkgname}-devel Version: 1.0.0 Release: 0 Url: http://www.ibm.com/developerworks/linux/linux390/qclib.html Summary: Query Capacity library License: BSD-3-Clause Group: Development/System BuildRequires: gcc-c++ BuildRequires: doxygen %if 0%{?suse_version} > 1300 BuildRequires: glibc-devel-static %else BuildRequires: glibc-devel %endif Source: %{pkgname}-%{version}.tgz Patch1: qclib.makefile.patch Patch2: qclib.makefile.libdir.patch Patch3: qclib.disable.consistency.checks.patch Patch4: qclib.handle.hostnames.with.less.than.8.characters.in.presence.of.hypfs.patch Patch5: qclib.correctly.interpret.sthyi.check.patch BuildRoot: %{_tmppath}/%{pkgname}-%{version}-build ExclusiveArch: s390 s390x %description qclib provides a C API for extraction of system information for Linux on z Systems. For instance, it will provide the number of CPUs * on the machine (CEC, Central Electronic Complex) layer * on the PR/SM (Processor Resource/Systems Manager) layer, i.e. visible to LPARs * in z/VM hosts, guests and CPU pools * in KVM hosts and guests This allows calculating the upper limit of CPU resources a highest level guest can use. E.g.: If an LPAR on a z13 provides 4 CPUs to a z/VM hypervisor, and the hypervisor provides 8 virtual CPUs to a guest, qclib can be used to retrieve all of these numbers, and it can be concluded that not more capacity than 4 CPUs can be used by the software running in the guest. qclib uses various interfaces and provides this data through a common and consistent API (Application Programming Interface), using information provided by: * STSI (Store System Information) instruction - for more details, refer to the z/Architecture Principles of Operation (SA22-7832) * STHYI (Store Hypervisor Information) instruction as provided by a z/VM hypervisor - for more information, refer to z/VM: V6R3 CP Programming Service (SC24-6179), chapter 'Store Hypervisor Information (STHYI) Instruction'. * hypfs file system - for more information, refer to 'Device Drivers, Features, and Commands', chapter 'S/390 hypervisor file system'. %prep %setup -q -n %{pkgname}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %build export OPT_FLAGS="${RPM_OPT_FLAGS}" make all make doc %check make test make test-sh %install %ifarch s390x LIBDIR=lib64 %else LIBDIR=lib %endif make install DESTDIR=${RPM_BUILD_ROOT} LIBDIR=${LIBDIR} make installdoc DESTDIR=${RPM_BUILD_ROOT} %post ldconfig %postun ldconfig %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %dir %{_docdir}/%{pkgname} %{_includedir}/*.h %{_libdir}/libqc.* %{_docdir}/%{pkgname}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor