- release 2 (by relup.sh)
[packages/hwsd.git] / hwsd.spec
CommitLineData
c1595142
JB
1#
2# Conditional build:
3%bcond_without apidocs # do not build and package API docs
4#
5Summary: Local and remote ZeroConf service discovery for hardware resources
6Summary(pl.UTF-8): Lokalne i zdalne wykrywanie usług ZeroConf dla zasobów sprzętowych
7Name: hwsd
0fbf7f7a 8Version: 1.3.0
6de1cb56 9Release: 2
c1595142
JB
10License: LGPL v2.1 (library), GPL v3+ (applications)
11Group: Libraries
12Source0: https://github.com/Eyescale/hwsd/archive/%{version}/%{name}-%{version}.tar.gz
0fbf7f7a
JR
13# Source0-md5: 4c56f4dc80dfb0095c7ca8462a222e3a
14Patch0: servus.patch
c1595142
JB
15URL: https://github.com/Eyescale/hwsd/
16BuildRequires: Eyescale-CMake
17BuildRequires: Lunchbox-devel >= 1.10
18BuildRequires: OpenGL-GLX-devel
0fbf7f7a
JR
19BuildRequires: Qt5Core-devel
20BuildRequires: Qt5Network-devel
21BuildRequires: Servus-devel
c1595142
JB
22BuildRequires: boost-devel >= 1.41.0
23BuildRequires: cmake >= 2.8
24%{?with_apidocs:BuildRequires: doxygen}
c1595142 25BuildRequires: libstdc++-devel
0fbf7f7a 26BuildRequires: libstdc++-devel >= 6:4.2
c1595142
JB
27BuildRequires: pkgconfig
28BuildRequires: xorg-lib-libX11-devel
29Requires: Lunchbox >= 1.10
30Requires: QtNetwork >= 4.6
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34HW-SD is a library and daemon for the discovery and announcement of
0fbf7f7a
JR
35hardware resources using ZeroConf. It enables auto-configuration of
36ad-hoc GPU clusters and multi-GPU machines.
c1595142
JB
37
38%description -l pl.UTF-8
39HW-SD to biblioteka i demon do wyszukiwania i rozgłaszania zasobów
40sprzętowych przy użyciu ZeroConfa. Pozwala na automatyczną
41konfigurację ad-hocowych klastrów GPU i maszyn o wielu GPU.
42
43%package devel
44Summary: Header files for HW-SD library
45Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HW-SD
46Group: Development/Libraries
47Requires: %{name} = %{version}-%{release}
48Requires: Lunchbox-devel >= 1.10
49Requires: libstdc++-devel
50
51%description devel
52Header files for HW-SD library.
53
54%description devel -l pl.UTF-8
55Pliki nagłówkowe biblioteki HW-SD.
56
57%package apidocs
58Summary: HW-SD API documentation
59Summary(pl.UTF-8): Dokumentacja API biblioteki HW-SD
60Group: Documentation
61
62%description apidocs
63API documentation for HW-SD library.
64
65%description apidocs -l pl.UTF-8
66Dokumentacja API biblioteki HW-SD.
67
68%prep
69%setup -q
70%patch0 -p1
71
72ln -s %{_datadir}/Eyescale-CMake CMake/common
73%{__rm} .gitexternals
74
75%build
76install -d build
77cd build
78%cmake ..
79
80%{__make}
81
82%if %{with apidocs}
83doxygen doc/Doxyfile
84%endif
85
86%install
87rm -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
95rm -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
This page took 0.058986 seconds and 4 git commands to generate.