# TODO: PLDify init script # # Conditional build: %bcond_without static_libs # don't build static libraries # Summary: SBLIM Performance Data Gatherer and Provider Summary(pl.UTF-8): Narzędzie SBLIM do zbierania i dostarczania danych o wydajności Name: sblim-gather Version: 2.2.9 Release: 1 License: Eclipse Public License v1.0 Group: Libraries Source0: http://downloads.sourceforge.net/sblim/%{name}-%{version}.tar.bz2 # Source0-md5: 9525751f776fe3579cd17a5d00e67f00 URL: http://sblim.sourceforge.net/ BuildRequires: libvirt-devel BuildRequires: sblim-cmpi-devel BuildRequires: sblim-cmpi-base-devel BuildRequires: sysfsutils-devel BuildRequires: xmlto Requires: %{name}-libs = %{version}-%{release} Requires: sblim-cmpi-base BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # hiccup symbol is provided by binary %define skip_post_check_so libgather.so.* %description The purpose of this package is to implement the DMTF CIM Metrics Model for Linux, making it available via a CIMOM supporting/supported by the CMPI provider interface. The package consists of three parts: 1. The Gatherer Component 2. The Metric Plugins 3. The Performance Data Providers %description -l pl.UTF-8 Ten pakiet ma być implementacją specyfikacji DMTF CIM Metrics Model (modelu metryk CIM DMTF) dla Linuksa, udostępniając ją poprzez demon CIMOM obsługujący interfejs dostarczycieli CMPI. Pakiet składa się z trzech elementów: 1. Zbierającego dane (Gatherera) 2. Wtyczek metryk 3. Dostarczycieli danych o wydajności %package libs Summary: SBLIM Gatherer shared libraries Summary(pl.UTF-8): Biblioteki współdzielone SBLIM Gatherera Group: Libraries %description libs SBLIM Gatherer shared libraries. %description libs -l pl.UTF-8 Biblioteki współdzielone SBLIM Gatherera. %package devel Summary: Header files for SBLIM Gatherer libraries Summary(pl.UTF-8): Pliki nagłówkowe bibliotek SBLIM Gatherera Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} Requires: sysfsutils-devel %description devel Header files for SBLIM Gatherer libraries. %description devel -l pl.UTF-8 Pliki nagłówkowe bibliotek SBLIM Gatherera. %package static Summary: SBLIM Gatherer static libraries Summary(pl.UTF-8): Biblioteki statyczne SBLIM Gatherera Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static SBLIM Gatherer static libraries. %description static -l pl.UTF-8 Biblioteki statyczne SBLIM Gatherera. %prep %setup -q %build %configure \ %{?with_static_libs:--enable-static} \ --enable-z %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} -j1 install \ DESTDIR=$RPM_BUILD_ROOT \ initdir=/etc/rc.d/init.d # common library for modules, noinst header %{__rm} $RPM_BUILD_ROOT%{_libdir}/libOSBase_MetricUtil.{so,la} # modules %{__rm} $RPM_BUILD_ROOT%{_libdir}/cmpi/libOSBase_*.la \ $RPM_BUILD_ROOT%{_libdir}/gather/*plug/*.la %if %{with static_libs} %{__rm} $RPM_BUILD_ROOT%{_libdir}/libOSBase_MetricUtil.a \ $RPM_BUILD_ROOT%{_libdir}/{cmpi,gather/*plug}/*.a %endif install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d cat >$RPM_BUILD_ROOT/usr/lib/tmpfiles.d/sblim-gather.conf <