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