# Conditional build:
%bcond_without apidocs # do not build and package API docs
%bcond_with mpi # MPI support
-%bcond_with skv # SKV (Scalable Key-Value Store) support
Summary: Lunchbox - C++ library for multi-threading programming
Summary(pl.UTF-8): Lunchbox - biblioteka C++ do programowania wielowątkowego
Name: Lunchbox
-Version: 1.15.0
-Release: 2
+Version: 1.17.0
+Release: 1
License: LGPL v2.1
Group: Libraries
+#Source0Download: https://github.com/Eyescale/Lunchbox/releases
Source0: https://github.com/Eyescale/Lunchbox/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 5d36a9eb706ab65572fd208574c187a2
+# Source0-md5: 76bcd79003c9b9d58d5f772cfdd812c7
Patch2: cxx.patch
URL: http://pogl.wordpress.com/category/lunchbox/
-BuildRequires: Eyescale-CMake >= 2016.04
+BuildRequires: Eyescale-CMake >= 2018.02
BuildRequires: Servus-devel >= 1.5.0
BuildRequires: avahi-devel
BuildRequires: boost-devel >= 1.41.0
-BuildRequires: cmake >= 2.8
+BuildRequires: cmake >= 3.1
%{?with_apidocs:BuildRequires: doxygen}
-BuildRequires: gcc-c++ >= 6:4.2
BuildRequires: hwloc-devel >= 1.3
-BuildRequires: leveldb-devel
-BuildRequires: libgomp-devel
-BuildRequires: libjpeg-turbo-devel >= 1.2.1
BuildRequires: libstdc++-devel
%{?with_mpi:BuildRequires: mpi-devel}
BuildRequires: pkgconfig
-%{?with_skv:BuildRequires: skv-devel}
+Requires: Servus >= 1.5.0
Requires: hwloc-libs >= 1.3
-Requires: libjpeg-turbo >= 1.2.1
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lunchbox
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: Servus-devel >= 1.5.0
Requires: boost-devel >= 1.41.0
-Requires: libgomp-devel
Requires: libstdc++-devel
%description devel
%prep
%setup -q
+rmdir CMake/common
ln -s %{_datadir}/Eyescale-CMake CMake/common
-%{__rm} .gitexternals
%patch2 -p1
install -d build
cd build
%cmake .. \
- -DBUILDYARD_DISABLED=ON \
-DCOMMON_DISABLE_WERROR:BOOL=ON \
- %{!?with_mpi:-DCMAKE_DISABLE_FIND_PACKAGE_MPI=ON} \
- %{!?with_skv:-DCMAKE_DISABLE_FIND_PACKAGE_skv=ON}
+ %{!?with_mpi:-DCMAKE_DISABLE_FIND_PACKAGE_MPI=ON}
+
%{__make}
%if %{with apidocs}
%defattr(644,root,root,755)
%doc ACKNOWLEDGEMENTS.txt AUTHORS.txt CHANGES.txt LICENSE.txt README.md doc/Changelog.md
%attr(755,root,root) %{_libdir}/libLunchbox.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libLunchbox.so.8
+%attr(755,root,root) %ghost %{_libdir}/libLunchbox.so.10
+%dir %{_datadir}/Lunchbox
+%{_datadir}/Lunchbox/benchmarks
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libLunchbox.so
%{_includedir}/lunchbox
-%dir %{_datadir}/Lunchbox
%{_datadir}/Lunchbox/CMake
%if %{with apidocs}