Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Monitoring
dba-centreon-clib-140
dba-centreon-clib-140.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-centreon-clib-140.spec of Package dba-centreon-clib-140
%define real_name centreon-clib %define version 1.4.0 %define vers 140 %define release 1 %define prefix /DBA/%{real_name}/%{version} %define maketest 0 Name: dba-%{real_name}-%{vers} Summary: Centreon Clib is a common library for all Centreon products written in C/C++ Version: %{version} Release: %{release} Source: http://download.centreon.com/%{real_name}/%{real_name}-%{version}.tar.gz License: GPLv2 Group: Applications/System Url: http://www.centreon.com BuildRoot: %{_tmppath}/%{real_name}-%{version}-%{release}-buildroot %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif BuildRequires: gcc-c++ cmake >= 2.8 make %if 0%{?centos_version} >= 600 && 0%{?centos_version} <= 699 || 0%{?rhel_version} >= 600 && 0%{?rhel_version} <= 699 BuildRequires: qt47-devel #!BuildIgnore: qt4-devel Requires: qt47 %else BuildRequires: qt-devel %endif %description Centreon Clib is a common library for all Centreon products written in C/C++. %prep %setup -q -n %{real_name}-%{version} %build cd build cmake \ -DWITH_TESTING=0 \ -DWITH_PREFIX=%{prefix} \ -DWITH_SHARED_LIB=1 \ -DWITH_STATIC_LIB=0 \ %{__make} # -DWITH_PREFIX=/usr \ # -DWITH_PREFIX_LIB=/usr/lib \ # -DWITH_PREFIX_INC=/usr/include/centreon-clib \ # -DWITH_PKGCONFIG_DIR=/usr/lib/pkgconfig . %check %if %maketest %{__make} check %endif %install %{__mkdir_p} %{buildroot}%{prefix}/lib cd build make %{?_smp_mflags} DESTDIR=%{buildroot} install %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %post cd %{prefix}/.. %{__rm} -f 1.latest %{__ln_s} -f %{version} 1.latest # add centreon-clib.pc to pkgconfig directory if [ -d %{_libdir}/pkgconfig ]; then cd %{_libdir}/pkgconfig if [ -e centreon-clib.pc ]; then %{__rm} -f centreon-clib.pc fi %{__ln_s} -f %{prefix}lib/pkgconfig/centreon-clib.pc . fi %files %defattr(-,root,root,-) %dir %{prefix} %{prefix}/* %changelog * Wed Jan 29 2014 Holger Manthey <holger.manthey@bertelsmann.de> - fix build for centos6 - fix use of qt47 libs * Thu Jan 23 2014 Holger Manthey <holger.manthey@bertelsmann.de> - inital version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor