11%define full_name c-@PROJECT_NAME@
22%define commit 0
33%if "${commit}" != "0"
4- %define shortcommit %(c=%{commit}; echo ${c:0:7 })
4+ %define shortcommit %(c=%{commit}; echo ${c:0:9 })
55%endif
66
77Name: @PROJECT_NAME@
@@ -18,10 +18,12 @@ Source0: https://github.com/TokTok/%{full_name}/archive/%{commit}/%{full_
1818%endif
1919
2020BuildRequires: cmake
21+ BuildRequires: g++
22+ BuildRequires: gcc
23+ BuildRequires: libconfig-devel
24+ BuildRequires: libsodium-devel
2125BuildRequires: libvpx-devel
2226BuildRequires: opus-devel
23- BuildRequires: libsodium-devel
24- BuildRequires: libconfig-devel
2527BuildRequires: systemd-units
2628
2729%description
@@ -63,18 +65,18 @@ Tox DHT bootstrap daemon.
6365
6466%build
6567%cmake
66- %{__make} %{?_smp_mflags}
68+ %{__make} -C redhat-linux-build %{?_smp_mflags}
6769
6870%install
69- %make_install
71+ %make_install -C redhat-linux-build
7072mkdir -p %{buildroot}%{_unitdir}
7173install -m 0644 other/rpm/tox-bootstrapd.service %{buildroot}%{_unitdir}/tox-bootstrapd.service
7274install -d "%{buildroot}%{_sharedstatedir}/tox-bootstrapd"
7375mkdir -p %{buildroot}%{_sysconfdir}
7476install -m 0644 other/bootstrap_daemon/tox-bootstrapd.conf %{buildroot}%{_sysconfdir}/tox-bootstrapd.conf
7577
7678%check
77- %{__make} %{?_smp_mflags} test
79+ %{__make} -C redhat-linux-build %{?_smp_mflags} test
7880
7981%pre -n tox-bootstrapd
8082getent group tox-bootstrapd >/dev/null || groupadd -r tox-bootstrapd
@@ -97,7 +99,7 @@ getent passwd tox-bootstrapd >/dev/null || \
9799
98100%files
99101%defattr(-, root, root)
100- %doc LICENSE.md README.md CHANGELOG.md
102+ %doc LICENSE README.md CHANGELOG.md
101103%{_libdir}/libtoxcore.so*
102104
103105%files devel
@@ -111,9 +113,10 @@ getent passwd tox-bootstrapd >/dev/null || \
111113
112114%files -n tox-bootstrapd
113115%defattr(-, root, root)
116+ %{_bindir}/DHT_bootstrap
114117%{_bindir}/tox-bootstrapd
115118%{_unitdir}/tox-bootstrapd.service
116- %{_sharedstatedir} /tox-bootstrapd
119+ %{_datadir}/bash-completion/completions /tox-bootstrapd
117120%attr(-,tox-bootstrapd,tox-bootstrapd) %{_sharedstatedir}/tox-bootstrapd/
118121%config(noreplace) %{_sysconfdir}/tox-bootstrapd.conf
119122
0 commit comments