# vim:ft=spec %global fullversion 1.12.8-1-g9db220e%{nil} %global version 1.12.8%{nil} %global ncommits 1%{nil} %global commit 9db220e5c0bf1e28d1c7529cc44c70cae0b84c11%{nil} %global shortcommit 9db220e%{nil} Name: baseboxd Version: 1.12.8 Release: %{!?ncommits:1}%{?ncommits}%{?shortcommit:.git%{shortcommit}}%{?dist} Summary: TODO License: BISDN URL: http://www.bisdn.de/ Source0: https://github.com/bisdn/basebox/archive/%{?commit}.tar.gz#/%{name}-%{shortcommit}.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}-%{commit} # %%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 -