# vim:ft=spec %global fullversion 1.4.2%{nil} %global version 1.4.2%{nil} %global ncommits 0%{nil} %global commit 00a390726f6361fc55ebea15fbcaa1bc72087100%{nil} %global shortcommit 00a3907%{nil} Name: baseboxd Version: %{version} Release: 1%{?dist} Summary: TODO License: BISDN URL: http://www.bisdn.de/ Source0: https://github.com/bisdn/basebox/archive/%{version}.tar.gz BuildRequires: gflags-devel BuildRequires: git BuildRequires: glog-devel BuildRequires: grpc-devel BuildRequires: grpc-plugins BuildRequires: libnl3-devel BuildRequires: meson BuildRequires: protobuf-compiler BuildRequires: protobuf-devel BuildRequires: rofl-common-devel BuildRequires: rofl-ofdpa-devel BuildRequires: systemd %if 0%{?rhel} == 7 BuildRequires: devtoolset-7-gcc-c++ %endif BuildRequires: gcc-c++ Requires: gflags Requires: glog Requires: grpc Requires: libnl3 Requires: protobuf Requires: rofl-common Requires: rofl-ofdpa Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description TODO %prep %setup -q -n %{name}-%{version} # %%autosetup %%{?commit:-n %%{name}-%%{commit}} -p1 -Sgit %build %if 0%{?rhel} == 7 export LDFLAGS=-lcrypto . /opt/rh/devtoolset-7/enable %endif %meson %meson_build %install %meson_install install -p -D -m 0644 pkg/systemd/sysconfig.template \ %{buildroot}%{_sysconfdir}/sysconfig/baseboxd %post %systemd_post basebox.service %preun %systemd_preun basebox.service %postun %systemd_postun %files %{_bindir}/baseboxd %{_unitdir}/baseboxd.service %config(noreplace) %{_sysconfdir}/sysconfig/baseboxd %doc README.md %changelog * Tue Feb 9 2016 Tobias Jungel -