File liberis-1_4-0.spec of Package eris

Summary: A WorldForge client library
Name: liberis-1_4-0
Version: 1.4.0
Release: 1
License: GPL-2.0+
URL:  https://www.worldforge.org/index.php/components/eris
Vendor: WorldForge
Source0: eris-%{version}.tar.xz

BuildRequires: zlib-devel
%if 0%{?fedora_version} || 0%{?centos_version} 
BuildRequires: boost-system boost-devel
BuildRequires: libsigc++20-devel
BuildRequires: bzip2-devel
%else
BuildRequires: libsigc++2-devel
BuildRequires: libbz2-devel
%if 0%{?leap_version} == 420300
BuildRequires: boost_1_61-devel
%else
BuildRequires: libboost_system-devel
%endif
%endif

BuildRequires: libatlascpp-0_7-0-devel libwfmath-1_0-1-devel cmake

%if 0%{?leap_version} == 420300
BuildRequires: gcc7-c++
%else
BuildRequires: gcc-c++
%endif


%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: glibc-all-langpacks
%endif


%description
Eris is designed to simplify client development (and avoid repeating the same
work several times), by providing a common system to deal with the back end
tasks.

%if 0%{?suse_version}
%debug_package
%endif

%package devel
Summary: A WorldForge client library headers
Group: Development/Libraries
Requires: %{name} = %{version} libatlascpp-0_7-0-devel libwfmath-1_0-1-devel

%description devel
Eris is designed to simplify client development (and avoid repeating the same
work several times), by providing a common system to deal with the back end
tasks.

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

%build

%if 0%{?leap_version} == 420300
export CC=gcc-7
export CXX=/usr/bin/g++-7
%endif

cmake -DCMAKE_CXX_FLAGS="%{optflags}" \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DBUILD_SHARED_LIBS=ON \
    .
%{__make} %{?_smp_mflags}

%install
%{__make} DESTDIR=%{buildroot} install

%check
%{__make} %{?jobs:-j%jobs} check

%post
ldconfig

%postun
ldconfig

%files
%{_libdir}/lib*.so.*
%doc AUTHORS COPYING NEWS README.md

%files devel
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/eris
%{_includedir}/*

%changelog

* Sun Mar 5 2017 Erik Ogenvik <erik@ogenvik.org> 1.4.0
First packaged version.
openSUSE Build Service is sponsored by