File netvfy-agent.spec of Package netvfy-agent

Name:       netvfy-agent
Version:    1.0.2
Release:    1
Summary:    Netvfy Agent
Group:      Network
License:    AGPL-3.0
URL:        http://www.dynvpn.com
Source0:    %{name}-%{version}.tar.gz

BuildRequires:  git cmake scons gcc gcc-c++ openssl openssl-devel python

Autoreqprov:    on

%description
Netvfy Agent

%prep
%setup

pushd tapcfg
rm -rf release
mkdir release
rm -rf build
./buildall.sh || true
mv build/libtapcfg.so release/libtapcfg32.so
strip release/libtapcfg32.so
popd

cmake -DCMAKE_SKIP_RPATH=ON \
      -DCMAKE_INSTALL_PREFIX=%{_prefix} \
      -DWITH_GUI=OFF

%{__make} %{?jobs:-j%jobs}

%install
%{__make} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root,-)
%{_bindir}/netvfy-agent
openSUSE Build Service is sponsored by