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