# vim:ft=spec %global fullversion 2.2.5-1-g3e7e037%{nil} %global version 1.12.8%{nil} %global ncommits 164%{nil} %global commit 3e7e0378baeb92ba2d10cfdebab0f14966c94e66%{nil} %global shortcommit 3e7e037%{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 -