- release 3 (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
8Version: 1.1.1
b97f469d 9Release: 3
c1595142
JB
10License: LGPL v2.1 (library), GPL v3+ (applications)
11Group: Libraries
12Source0: https://github.com/Eyescale/hwsd/archive/%{version}/%{name}-%{version}.tar.gz
13# Source0-md5: 315a8543078db1be6c1600cf5d964e93
14Patch0: %{name}-cmake.patch
d65fd2cc
JB
15Patch1: %{name}-lib.patch
16Patch2: %{name}-avahi.patch
c1595142
JB
17URL: https://github.com/Eyescale/hwsd/
18BuildRequires: Eyescale-CMake
19BuildRequires: Lunchbox-devel >= 1.10
20BuildRequires: OpenGL-GLX-devel
21BuildRequires: QtNetwork-devel >= 4.6
22BuildRequires: boost-devel >= 1.41.0
23BuildRequires: cmake >= 2.8
24%{?with_apidocs:BuildRequires: doxygen}
25BuildRequires: gcc-c++ >= 6:4.2
26BuildRequires: libstdc++-devel
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
35hardware resources using ZeroConf. It enables auto-configuration
36of ad-hoc GPU clusters and multi-GPU machines.
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
d65fd2cc
JB
71%patch1 -p1
72%patch2 -p1
c1595142
JB
73
74ln -s %{_datadir}/Eyescale-CMake CMake/common
75%{__rm} .gitexternals
76
77%build
78install -d build
79cd build
80%cmake ..
81
82%{__make}
83
84%if %{with apidocs}
85doxygen doc/Doxyfile
86%endif
87
88%install
89rm -rf $RPM_BUILD_ROOT
90
91%{__make} -C build install \
92 DESTDIR=$RPM_BUILD_ROOT
93
94%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/hwsd/doc
95
96%clean
97rm -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 LICENSE.txt README.md doc/{AUTHORS,RelNotes.md}
105%attr(755,root,root) %{_libdir}/libhwsd.so.*.*.*
106%attr(755,root,root) %ghost %{_libdir}/libhwsd.so.2
107%attr(755,root,root) %{_libdir}/libhwsd_gpu_glx.so.*.*.*
108%attr(755,root,root) %ghost %{_libdir}/libhwsd_gpu_glx.so.1
d65fd2cc
JB
109%attr(755,root,root) %{_libdir}/libhwsd_gpu_dns_sd.so.*.*.*
110%attr(755,root,root) %ghost %{_libdir}/libhwsd_gpu_dns_sd.so.1
c1595142
JB
111%attr(755,root,root) %{_libdir}/libhwsd_net_sys.so.*.*.*
112%attr(755,root,root) %ghost %{_libdir}/libhwsd_net_sys.so.1
d65fd2cc
JB
113%attr(755,root,root) %{_libdir}/libhwsd_net_dns_sd.so.*.*.*
114%attr(755,root,root) %ghost %{_libdir}/libhwsd_net_dns_sd.so.1
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
JB
123%{_includedir}/hwsd
124%{_pkgconfigdir}/hwsd.pc
125%dir %{_datadir}/hwsd
126%{_datadir}/hwsd/CMake
127
128%if %{with apidocs}
129%files apidocs
130%defattr(644,root,root,755)
131%doc build/doc/html/*
132%endif
This page took 0.125539 seconds and 4 git commands to generate.