]>
Commit | Line | Data |
---|---|---|
7c02bafe JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_with mpi # MPI support | |
3da0d941 | 5 | |
7c02bafe JB |
6 | Summary: Lunchbox - C++ library for multi-threading programming |
7 | Summary(pl.UTF-8): Lunchbox - biblioteka C++ do programowania wielowątkowego | |
8 | Name: Lunchbox | |
7c79b477 | 9 | Version: 1.17.0 |
1b7bae68 | 10 | Release: 3 |
7c02bafe JB |
11 | License: LGPL v2.1 |
12 | Group: Libraries | |
7c79b477 | 13 | #Source0Download: https://github.com/Eyescale/Lunchbox/releases |
7c02bafe | 14 | Source0: https://github.com/Eyescale/Lunchbox/archive/%{version}/%{name}-%{version}.tar.gz |
7c79b477 | 15 | # Source0-md5: 76bcd79003c9b9d58d5f772cfdd812c7 |
382ae9ec | 16 | Patch2: cxx.patch |
7c02bafe | 17 | URL: http://pogl.wordpress.com/category/lunchbox/ |
7c79b477 | 18 | BuildRequires: Eyescale-CMake >= 2018.02 |
99b90907 | 19 | BuildRequires: Servus-devel >= 1.5.0 |
7c02bafe JB |
20 | BuildRequires: avahi-devel |
21 | BuildRequires: boost-devel >= 1.41.0 | |
7c79b477 | 22 | BuildRequires: cmake >= 3.1 |
7c02bafe | 23 | %{?with_apidocs:BuildRequires: doxygen} |
7c02bafe | 24 | BuildRequires: hwloc-devel >= 1.3 |
1b7bae68 | 25 | BuildRequires: hwloc-devel < 2 |
7c02bafe JB |
26 | BuildRequires: libstdc++-devel |
27 | %{?with_mpi:BuildRequires: mpi-devel} | |
28 | BuildRequires: pkgconfig | |
7c79b477 | 29 | Requires: Servus >= 1.5.0 |
7c02bafe | 30 | Requires: hwloc-libs >= 1.3 |
7c02bafe JB |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Lunchbox is a C++ library for multi-threaded programming. Lunchbox was | |
35 | formerly known as eq::base or co::base, the foundation for the | |
36 | Equalizer parallel rendering framework and the Collage network | |
37 | library. It is intended for all application developers creating | |
38 | high-performance multi-threaded programs. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Lunchbox to biblioteka C++ do programowania wielowątkowego. Wcześniej | |
42 | była znana jako eq::base lub co::base - podstawa szkieletu do | |
43 | renderowania wielowątkowego Equalizer lub biblioteki sieciowej | |
44 | Collage. Biblioteka jest przeznaczona dla wszystkich programistów | |
45 | tworzących wysoko wydajne, wielowątkowe aplikacje. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for Lunchbox library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Lunchbox | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
7c79b477 | 52 | Requires: Servus-devel >= 1.5.0 |
7c02bafe | 53 | Requires: boost-devel >= 1.41.0 |
7c02bafe JB |
54 | Requires: libstdc++-devel |
55 | ||
56 | %description devel | |
57 | Header files for Lunchbox library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki Lunchbox. | |
61 | ||
62 | %package apidocs | |
63 | Summary: Lunchbox API documentation | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki Lunchbox | |
65 | Group: Documentation | |
3da0d941 ER |
66 | %if "%{_rpmversion}" >= "5" |
67 | BuildArch: noarch | |
68 | %endif | |
7c02bafe JB |
69 | |
70 | %description apidocs | |
71 | API documentation for Lunchbox library. | |
72 | ||
73 | %description apidocs -l pl.UTF-8 | |
74 | Dokumentacja API biblioteki Lunchbox. | |
75 | ||
76 | %prep | |
c6de7caf | 77 | %setup -q |
7c02bafe | 78 | |
7c79b477 | 79 | rmdir CMake/common |
c6de7caf | 80 | ln -s %{_datadir}/Eyescale-CMake CMake/common |
7c02bafe | 81 | |
382ae9ec | 82 | %patch2 -p1 |
c428797b | 83 | |
7c02bafe JB |
84 | %build |
85 | install -d build | |
86 | cd build | |
87 | %cmake .. \ | |
87a51c8c | 88 | -DCOMMON_DISABLE_WERROR:BOOL=ON \ |
7c79b477 JB |
89 | %{!?with_mpi:-DCMAKE_DISABLE_FIND_PACKAGE_MPI=ON} |
90 | ||
7c02bafe JB |
91 | %{__make} |
92 | ||
93 | %if %{with apidocs} | |
94 | doxygen doc/Doxyfile | |
95 | %endif | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} -C build install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/Lunchbox/{doc,tests} | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
c6de7caf | 113 | %doc ACKNOWLEDGEMENTS.txt AUTHORS.txt CHANGES.txt LICENSE.txt README.md doc/Changelog.md |
7c02bafe | 114 | %attr(755,root,root) %{_libdir}/libLunchbox.so.*.*.* |
7c79b477 JB |
115 | %attr(755,root,root) %ghost %{_libdir}/libLunchbox.so.10 |
116 | %dir %{_datadir}/Lunchbox | |
117 | %{_datadir}/Lunchbox/benchmarks | |
7c02bafe JB |
118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_libdir}/libLunchbox.so | |
122 | %{_includedir}/lunchbox | |
7c02bafe JB |
123 | %{_datadir}/Lunchbox/CMake |
124 | ||
125 | %if %{with apidocs} | |
126 | %files apidocs | |
127 | %defattr(644,root,root,755) | |
128 | %doc build/doc/html/* | |
129 | %endif |