From: Jakub Bogusz Date: Sun, 7 Dec 2014 20:01:59 +0000 (+0100) Subject: - new X-Git-Tag: auto/th/Lunchbox-1.10.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2FLunchbox.git;a=commitdiff_plain;h=7c02bafe9719c15856fb4ab409a5503df01997ad;ds=sidebyside - new --- 7c02bafe9719c15856fb4ab409a5503df01997ad diff --git a/Lunchbox.spec b/Lunchbox.spec new file mode 100644 index 0000000..8a4f04e --- /dev/null +++ b/Lunchbox.spec @@ -0,0 +1,127 @@ +# +# 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.10.0 +Release: 1 +License: LGPL v2.1 +Group: Libraries +Source0: https://github.com/Eyescale/Lunchbox/archive/%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 3e01c3a2ddeeb7b3682e88092831d5a5 +Source1: https://github.com/Eyescale/CMake/archive/139ce7d/Eyescale-CMake-139ce7d.tar.gz +# Source1-md5: 4a6abcd9e0fc417528a8ca68a97e65eb +URL: http://pogl.wordpress.com/category/lunchbox/ +BuildRequires: avahi-devel +BuildRequires: boost-devel >= 1.41.0 +BuildRequires: cmake >= 2.8 +%{?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: hwloc-libs >= 1.3 +Requires: libjpeg-turbo >= 1.2.1 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Lunchbox is a C++ library for multi-threaded programming. Lunchbox was +formerly known as eq::base or co::base, the foundation for the +Equalizer parallel rendering framework and the Collage network +library. It is intended for all application developers creating +high-performance multi-threaded programs. + +%description -l pl.UTF-8 +Lunchbox to biblioteka C++ do programowania wielowątkowego. Wcześniej +była znana jako eq::base lub co::base - podstawa szkieletu do +renderowania wielowątkowego Equalizer lub biblioteki sieciowej +Collage. Biblioteka jest przeznaczona dla wszystkich programistów +tworzących wysoko wydajne, wielowątkowe aplikacje. + +%package devel +Summary: Header files for Lunchbox library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lunchbox +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: boost-devel >= 1.41.0 +Requires: libgomp-devel +Requires: libstdc++-devel + +%description devel +Header files for Lunchbox library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki Lunchbox. + +%package apidocs +Summary: Lunchbox API documentation +Summary(pl.UTF-8): Dokumentacja API biblioteki Lunchbox +Group: Documentation + +%description apidocs +API documentation for Lunchbox library. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki Lunchbox. + +%prep +%setup -q -a1 + +%{__mv} CMake-* CMake/common +%{__rm} .gitexternals + +%build +install -d build +cd build +%cmake .. \ + -DBUILDYARD_DISABLED=ON \ + %{!?with_mpi:-DCMAKE_DISABLE_FIND_PACKAGE_MPI=ON} \ + %{!?with_skv:-DCMAKE_DISABLE_FIND_PACKAGE_skv=ON} +%{__make} + +%if %{with apidocs} +doxygen doc/Doxyfile +%endif + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} -C build install \ + DESTDIR=$RPM_BUILD_ROOT + +%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/Lunchbox/{doc,tests} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc ACKNOWLEDGEMENTS.txt AUTHORS.txt CHANGES.txt LICENSE.txt README.md doc/RelNotes.md +%attr(755,root,root) %{_libdir}/libLunchbox.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libLunchbox.so.3 + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libLunchbox.so +%{_includedir}/lunchbox +%{_pkgconfigdir}/Lunchbox.pc +%dir %{_datadir}/Lunchbox +%{_datadir}/Lunchbox/CMake + +%if %{with apidocs} +%files apidocs +%defattr(644,root,root,755) +%doc build/doc/html/* +%endif