4b0748c
Name:		qclib
a7f4387
Version:	2.2.1
a7f4387
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
a7f4387
Source0:	http://public.dhe.ibm.com/software/dw/linux390/ht_src/%{name}-%{version}.tar.gz
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
a7f4387
%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
a1a9869
%{_bindir}/zhypinfo
a1a9869
%{_bindir}/zname
4b0748c
%{_libdir}/libqc.so.*
a1a9869
%{_mandir}/man8/zhypinfo.8*
a1a9869
%{_mandir}/man8/zname.8*
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
a7f4387
* Fri Oct 16 2020 Dan Horák <dan[at]danny.cz> - 2.2.1-1
a7f4387
- updated to 2.2.1
a7f4387
f9b4669
* Thu Sep 24 2020 Dan Horák <dan[at]danny.cz> - 2.2.0-2
f9b4669
- fix linking
f9b4669
a1a9869
* Wed Sep 23 2020 Dan Horák <dan[at]danny.cz> - 2.2.0-1
a1a9869
- updated to 2.2.0
a1a9869
80505ed
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
80505ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
80505ed
4c64cd2
* Wed Apr 22 2020 Dan Horák <dan[at]danny.cz> - 2.1.0-1
4c64cd2
- updated to 2.1.0
4c64cd2
d688f0d
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
d688f0d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d688f0d
67d3467
* Mon Jan 13 2020 Dan Horák <dan[at]danny.cz> - 2.0.1-1
67d3467
- updated to 2.0.1
67d3467
ce83968
* Tue Nov 19 2019 Dan Horák <dan[at]danny.cz> - 2.0.0-1
ce83968
- updated to 2.0.0
ce83968
7c588de
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-3
7c588de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7c588de
ee78533
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
ee78533
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ee78533
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