LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File centreon-clib.spec of Package centreon-clib (Project home:interstar001:Monitoring)

#
# spec file for package centreon-clib
#

Name:           centreon-clib
Version:        1.4.2
Release:        1
License:        GPL-3.0
Summary:        Centreon Clib
Url:            http://www.centreon.com
Group:          Development/Languages/C and C++
Source0:        https://s3-eu-west-1.amazonaws.com/centreon-download/public/centreon-clib/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
Centreon Clib package.


%package devel
Requires:       %{name} = %{version}
Summary:        Development files for Centreon Clib
Group:          Development/Libraries/C and C++


%description devel
Development libraries for Centreon Clib package.


%prep
%setup -q -n %{name}-%{version}


%build
cmake build/ \
        -DCMAKE_INSTALL_PREFIX="%_prefix" \
        -DCMAKE_C_FLAGS:STRING="%optflags" \
        -DCMAKE_CXX_FLAGS:STRING="%optflags" \
        -DWITH_PREFIX_INC="%_includedir/%name" \
        -DWITH_PREFIX_LIB="%_libdir"


%install
%make_install

%files
%defattr(-,root,root)
%{_libdir}/libcentreon_clib.so

%files devel
%defattr(-,root,root)
%doc license.txt
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}*

%changelog