Blame qclib.spec

4b0748c
Name:		qclib
4b0748c
Version:	1.2.0
c2401c9
Release:	4%{?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
# Soname will be set upstream in later release
4b0748c
# https://bugzilla.redhat.com/show_bug.cgi?id=1306280
4b0748c
Patch0:		%{name}-1.2.0-soname.patch
4b0748c
Patch1:		%{name}-1.2.0-cflags.patch
4b0748c
Patch2:		%{name}-1.2.0-docdir.patch
4b0748c
ExclusiveArch:	s390 s390x
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
4b0748c
make V=1 CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags} all doc
4b0748c
4b0748c
4b0748c
%install
4b0748c
%make_install DOCDIR=%{_docdir}
4b0748c
make DESTDIR=%{buildroot} DOCDIR=%{_docdir} installdoc
4b0748c
4b0748c
%check
4b0748c
make test-sh test
4b0748c
4b0748c
%post -p /sbin/ldconfig
4b0748c
4b0748c
%postun -p /sbin/ldconfig
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
4b0748c
%changelog
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