|
|
4b0748c |
Name: qclib
|
|
|
c8948a8 |
Version: 1.4.1
|
|
|
c8948a8 |
Release: 1%{?dist}
|
|
|
4b0748c |
Summary: Library for extraction of system information for Linux on z Systems
|
|
|
4b0748c |
License: BSD
|
|
|
4b0748c |
URL: http://www.ibm.com/developerworks/linux/linux390/qclib.html
|
|
|
4b0748c |
Source0: http://public.dhe.ibm.com/software/dw/linux390/ht_src/%{name}-%{version}.tgz
|
|
|
4b0748c |
# https://bugzilla.redhat.com/show_bug.cgi?id=1306280
|
|
|
c8948a8 |
Patch0: %{name}-1.4.1-docdir.patch
|
|
|
c2079c8 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1552658
|
|
|
c2079c8 |
Patch1: %{name}-1.3.1-ldflags.patch
|
|
|
4b0748c |
ExclusiveArch: s390 s390x
|
|
|
2f5b39c |
BuildRequires: gcc
|
|
|
4b0748c |
BuildRequires: glibc-static
|
|
|
4b0748c |
BuildRequires: doxygen
|
|
|
4b0748c |
|
|
|
4b0748c |
%description
|
|
|
4b0748c |
%{summary}.
|
|
|
4b0748c |
|
|
|
4b0748c |
%package devel
|
|
|
4b0748c |
Summary: Development library and headers for qclib
|
|
|
4b0748c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
4b0748c |
|
|
|
4b0748c |
%description devel
|
|
|
4b0748c |
qclib provides a C API for extraction of system information for Linux on z
|
|
|
4b0748c |
Systems.
|
|
|
4b0748c |
For instance, it will provide the number of CPUs
|
|
|
4b0748c |
* on the machine (CEC, Central Electronic Complex) layer
|
|
|
4b0748c |
* on the PR/SM (Processor Resource/Systems Manager) layer, i.e. visible to
|
|
|
4b0748c |
LPARs, including LPAR groups in z/VM hosts, guests and CPU pools
|
|
|
4b0748c |
* in KVM hosts and guests
|
|
|
4b0748c |
|
|
|
4b0748c |
This allows calculating the upper limit of CPU resources a highest level guest
|
|
|
4b0748c |
can use. For example: If an LPAR on a z13 provides 4 CPUs to a z/VM hyper-visor,
|
|
|
4b0748c |
and the hyper-visor provides 8 virtual CPUs to a guest, qclib can be used to
|
|
|
4b0748c |
retrieve all of these numbers, and it can be concluded that not more capacity
|
|
|
4b0748c |
than 4 CPUs can be used by the software running in the guest.
|
|
|
4b0748c |
|
|
|
4b0748c |
This package provides the development libraries and headers for qclib.
|
|
|
4b0748c |
|
|
|
4b0748c |
%package static
|
|
|
4b0748c |
Summary: Static library for qclib
|
|
|
4b0748c |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
4b0748c |
Provides: %{name}-static = %{version}-%{release}
|
|
|
4b0748c |
|
|
|
4b0748c |
%description static
|
|
|
4b0748c |
%{summary}. This package provides static libraries for qclib.
|
|
|
4b0748c |
|
|
|
4b0748c |
|
|
|
4b0748c |
%prep
|
|
|
4b0748c |
%autosetup
|
|
|
4b0748c |
|
|
|
4b0748c |
|
|
|
4b0748c |
%build
|
|
|
c2079c8 |
make V=1 CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" %{?_smp_mflags} all doc
|
|
|
4b0748c |
|
|
|
4b0748c |
|
|
|
4b0748c |
%install
|
|
|
4b0748c |
%make_install DOCDIR=%{_docdir}
|
|
|
4b0748c |
make DESTDIR=%{buildroot} DOCDIR=%{_docdir} installdoc
|
|
|
4b0748c |
|
|
|
c8948a8 |
|
|
|
4b0748c |
%check
|
|
|
4b0748c |
make test-sh test
|
|
|
4b0748c |
|
|
|
4b0748c |
|
|
|
4b0748c |
%files
|
|
|
4b0748c |
%dir %{_docdir}/%{name}
|
|
|
4b0748c |
%license %{_docdir}/%{name}/LICENSE
|
|
|
4b0748c |
%doc %{_docdir}/%{name}/README
|
|
|
4b0748c |
%{_libdir}/libqc.so.*
|
|
|
4b0748c |
|
|
|
4b0748c |
%files devel
|
|
|
4b0748c |
%doc %{_docdir}/%{name}/html/
|
|
|
4b0748c |
%{_libdir}/libqc*.so
|
|
|
4b0748c |
%{_includedir}/query_capacity.h
|
|
|
4b0748c |
|
|
|
4b0748c |
%files static
|
|
|
4b0748c |
%{_libdir}/libqc*.a
|
|
|
4b0748c |
|
|
|
c8948a8 |
|
|
|
4b0748c |
%changelog
|
|
|
c8948a8 |
* Wed Jul 25 2018 Dan Horák <dan[at]danny.cz> - 1.4.1-1
|
|
|
c8948a8 |
- updated to 1.4.1
|
|
|
c8948a8 |
|
|
|
ac11627 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-2
|
|
|
ac11627 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ac11627 |
|
|
|
b7944b3 |
* Thu Apr 19 2018 Dan Horák <dan[at]danny.cz> - 1.4.0-1
|
|
|
e8a452a |
- updated to 1.4.0
|
|
|
e8a452a |
|
|
|
c2079c8 |
* Mon Mar 12 2018 Dan Horák <dan[at]danny.cz> - 1.3.1-3
|
|
|
c2079c8 |
- fix LDFLAGS injection (#1552658)
|
|
|
c2079c8 |
|
|
|
66882c2 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-2
|
|
|
66882c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
66882c2 |
|
|
|
e0c579b |
* Wed Jan 31 2018 Dan Horák <dan[at]danny.cz> - 1.3.1-1
|
|
|
e0c579b |
- updated to 1.3.1
|
|
|
e0c579b |
|
|
|
251edf3 |
* Mon Dec 04 2017 Dan Horák <dan[at]danny.cz> - 1.3.0-1
|
|
|
251edf3 |
- updated to 1.3.0
|
|
|
251edf3 |
|
|
|
c2401c9 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
|
|
|
c2401c9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
c2401c9 |
|
|
|
10fd961 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
|
|
|
10fd961 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
10fd961 |
|
|
|
dd83068 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
|
dd83068 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
dd83068 |
|
|
|
4b0748c |
* Mon Oct 31 2016 Rafael dos Santos <rdossant@redhat.com> 1.2.0-1
|
|
|
4b0748c |
- Initial packaging
|