]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | ||
5 | Summary: Local and remote ZeroConf service discovery for hardware resources | |
6 | Summary(pl.UTF-8): Lokalne i zdalne wykrywanie usług ZeroConf dla zasobów sprzętowych | |
7 | Name: hwsd | |
8 | Version: 2.0.1 | |
9 | Release: 8 | |
10 | License: LGPL v2.1 (library), GPL v3+ (applications) | |
11 | Group: Libraries | |
12 | #Source0Download: https://github.com/Eyescale/hwsd/releases | |
13 | Source0: https://github.com/Eyescale/hwsd/archive/%{version}/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: d2285a1d878a12905fe9a062bc158aae | |
15 | Patch0: servus.patch | |
16 | Patch1: %{name}-Werror.patch | |
17 | URL: https://github.com/Eyescale/hwsd/ | |
18 | BuildRequires: Eyescale-CMake | |
19 | BuildRequires: Lunchbox-devel >= 1.10 | |
20 | BuildRequires: OpenGL-GLX-devel | |
21 | BuildRequires: Qt5Core-devel | |
22 | BuildRequires: Qt5Network-devel | |
23 | BuildRequires: Servus-devel | |
24 | # just to satisfy cmake projects stupidity (FIXME) | |
25 | BuildRequires: Servus-qt-devel | |
26 | BuildRequires: boost-devel >= 1.41.0 | |
27 | BuildRequires: cmake >= 3.1 | |
28 | %{?with_apidocs:BuildRequires: doxygen} | |
29 | BuildRequires: libstdc++-devel | |
30 | BuildRequires: libstdc++-devel >= 6:4.2 | |
31 | BuildRequires: pkgconfig | |
32 | BuildRequires: xorg-lib-libX11-devel | |
33 | Requires: Lunchbox >= 1.10 | |
34 | Requires: QtNetwork >= 4.6 | |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | HW-SD is a library and daemon for the discovery and announcement of | |
39 | hardware resources using ZeroConf. It enables auto-configuration of | |
40 | ad-hoc GPU clusters and multi-GPU machines. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | HW-SD to biblioteka i demon do wyszukiwania i rozgłaszania zasobów | |
44 | sprzętowych przy użyciu ZeroConfa. Pozwala na automatyczną | |
45 | konfigurację ad-hocowych klastrów GPU i maszyn o wielu GPU. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for HW-SD library | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HW-SD | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | Requires: Lunchbox-devel >= 1.10 | |
53 | Requires: Servus-devel | |
54 | Requires: libstdc++-devel | |
55 | ||
56 | %description devel | |
57 | Header files for HW-SD library. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe biblioteki HW-SD. | |
61 | ||
62 | %package apidocs | |
63 | Summary: HW-SD API documentation | |
64 | Summary(pl.UTF-8): Dokumentacja API biblioteki HW-SD | |
65 | Group: Documentation | |
66 | BuildArch: noarch | |
67 | ||
68 | %description apidocs | |
69 | API documentation for HW-SD library. | |
70 | ||
71 | %description apidocs -l pl.UTF-8 | |
72 | Dokumentacja API biblioteki HW-SD. | |
73 | ||
74 | %prep | |
75 | %setup -q | |
76 | %patch0 -p1 | |
77 | %patch1 -p1 | |
78 | ||
79 | rmdir CMake/common | |
80 | ln -s %{_datadir}/Eyescale-CMake CMake/common | |
81 | ||
82 | %build | |
83 | install -d build | |
84 | cd build | |
85 | %cmake .. | |
86 | ||
87 | %{__make} | |
88 | ||
89 | %if %{with apidocs} | |
90 | doxygen doc/Doxyfile | |
91 | %endif | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} -C build install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/hwsd/doc | |
100 | ||
101 | install -d $RPM_BUILD_ROOT%{_examplesdir} | |
102 | %{__mv} $RPM_BUILD_ROOT%{_datadir}/hwsd/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %doc LICENSE.txt README.md doc/Changelog.md | |
113 | %attr(755,root,root) %{_bindir}/hw_sd | |
114 | %attr(755,root,root) %{_bindir}/hw_sd_list | |
115 | %attr(755,root,root) %{_libdir}/libhwsd.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libhwsd.so.4 | |
117 | %attr(755,root,root) %{_libdir}/libhwsd_gpu_glx.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libhwsd_gpu_glx.so.4 | |
119 | %attr(755,root,root) %{_libdir}/libhwsd_gpu_dns_sd.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libhwsd_gpu_dns_sd.so.4 | |
121 | %attr(755,root,root) %{_libdir}/libhwsd_net_sys.so.*.*.* | |
122 | %attr(755,root,root) %ghost %{_libdir}/libhwsd_net_sys.so.4 | |
123 | %attr(755,root,root) %{_libdir}/libhwsd_net_dns_sd.so.*.*.* | |
124 | %attr(755,root,root) %ghost %{_libdir}/libhwsd_net_dns_sd.so.4 | |
125 | ||
126 | %files devel | |
127 | %defattr(644,root,root,755) | |
128 | %attr(755,root,root) %{_libdir}/libhwsd.so | |
129 | %attr(755,root,root) %{_libdir}/libhwsd_gpu_glx.so | |
130 | %attr(755,root,root) %{_libdir}/libhwsd_gpu_dns_sd.so | |
131 | %attr(755,root,root) %{_libdir}/libhwsd_net_sys.so | |
132 | %attr(755,root,root) %{_libdir}/libhwsd_net_dns_sd.so | |
133 | %{_includedir}/hwsd | |
134 | %dir %{_datadir}/hwsd | |
135 | %{_datadir}/hwsd/CMake | |
136 | %{_examplesdir}/%{name}-%{version} | |
137 | ||
138 | %if %{with apidocs} | |
139 | %files apidocs | |
140 | %defattr(644,root,root,755) | |
141 | %doc build/doc/html/* | |
142 | %endif |