]>
Commit | Line | Data |
---|---|---|
262ad267 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: Cross-platform C++ network library | |
6 | Summary(pl.UTF-8): Wieloplatformowa biblioteka sieciowa dla C++ | |
7 | Name: Collage | |
8 | Version: 1.1.2 | |
c010a9aa | 9 | Release: 3 |
262ad267 JB |
10 | License: LGPL v2.1 |
11 | Group: Libraries | |
12 | Source0: https://github.com/Eyescale/Collage/archive/%{version}/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 89d37ca9f592da59ddfa57ac82eb83c3 | |
14 | Source1: https://github.com/Eyescale/CMake/archive/92d0663/Eyescale-CMake-92d0663.tar.gz | |
15 | # Source1-md5: 7abca85af7f36fec7e22d7f63d601cf8 | |
16 | URL: http://libcollage.net/ | |
17 | BuildRequires: Lunchbox-devel >= 1.10 | |
18 | BuildRequires: boost-devel >= 1.41.0 | |
19 | BuildRequires: cmake >= 2.8 | |
20 | %{?with_apidocs:BuildRequires: doxygen} | |
21 | BuildRequires: libibverbs-devel | |
22 | BuildRequires: librdmacm-devel | |
23 | BuildRequires: libstdc++-devel | |
24 | BuildRequires: pkgconfig | |
25 | BuildRequires: udt-devel | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | Collage is a cross-platform C++ library for building heterogenous, | |
30 | distributed applications. Among other things, it is the cluster | |
31 | backend for the Equalizer parallel rendering framework. Collage | |
32 | provides an abstraction of different network connections, peer-to-peer | |
33 | messaging, node discovery, synchronization and high-performance, | |
34 | object-oriented, versioned data distribution. Collage is designed for | |
35 | low-overhead multi-threaded execution which allows applications to | |
36 | easily exploit multi-core architectures. | |
37 | ||
38 | %description -l pl.UTF-8 | |
39 | Collage to wieloplatformowa biblioteka C++ do tworzenia | |
40 | heterogenicznych, rozproszonych aplikacji. Jest to między innymi | |
41 | backend klastrowy dla szkieletu równoległego renderowania Equalizer. | |
42 | Zapewnia abstrakcję różnych połączeń sieciowych, przesyłania | |
43 | komunikatów między węzłami, wykrywanie węzłów, synchronizację oraz | |
44 | wydajne, zorientowane obiektowo i wersjonowane rozproszenie danych. | |
45 | Collage został zaprojektowany pod kątem lekkiej wielowątkowości, co | |
46 | pozwala aplikacjom łatwo wykorzystywać architektury wielordzeniowe. | |
47 | ||
48 | %package devel | |
49 | Summary: Header files for Collage library | |
50 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Collage | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Header files for Collage library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki Collage. | |
59 | ||
60 | %package apidocs | |
61 | Summary: Collage API documentation | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki Collage | |
63 | Group: Documentation | |
64 | ||
65 | %description apidocs | |
66 | API documentation for Collage library. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API biblioteki Collage. | |
70 | ||
71 | %prep | |
72 | %setup -q -a1 | |
73 | ||
74 | %{__mv} CMake-* CMake/common | |
75 | %{__rm} .gitexternals | |
76 | ||
77 | %build | |
78 | install -d build | |
79 | cd build | |
80 | %cmake .. \ | |
81 | -DBUILDYARD_DISABLED=ON | |
82 | %{__make} | |
83 | ||
84 | %if %{with apidocs} | |
85 | doxygen doc/Doxyfile | |
86 | %endif | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} -C build install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/Collage/{doc,tests} | |
95 | ||
96 | %clean | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
104 | %doc AUTHORS CHANGES.txt LICENSE.txt README.md doc/{README.IB,README.udt} build/doc/RelNotes.md | |
105 | %attr(755,root,root) %{_bindir}/coNetperf | |
106 | %attr(755,root,root) %{_bindir}/coNodeperf | |
107 | %attr(755,root,root) %{_bindir}/coObjectperf | |
108 | %attr(755,root,root) %{_libdir}/libCollage.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libCollage.so.2 | |
110 | ||
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_libdir}/libCollage.so | |
114 | %{_includedir}/co | |
115 | %{_pkgconfigdir}/Collage.pc | |
116 | %dir %{_datadir}/Collage | |
117 | %{_datadir}/Collage/CMake | |
118 | ||
119 | %if %{with apidocs} | |
120 | %files apidocs | |
121 | %defattr(644,root,root,755) | |
122 | %doc build/doc/html/* | |
123 | %endif |