# vim:ft=spec %global fullversion 1.12.7-3-g95b9a6b%{nil} %global version 2.2.5%{nil} %global ncommits 3%{nil} %global commit 95b9a6b5f0ac347a63a9f5f0ecdd55d4407909c4%{nil} %global shortcommit 95b9a6b%{nil} Name: baseboxd Version: 2.2.5 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 -