2019-02-28 14:39:41 +00:00
|
|
|
%define __spec_install_post %{nil}
|
|
|
|
%define __os_install_post %{_dbpath}/brp-compress
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
Name: vpncloud
|
|
|
|
Summary: Peer-to-peer VPN
|
|
|
|
Version: @@VERSION@@
|
|
|
|
Release: 1
|
|
|
|
License: GPL-3.0
|
|
|
|
Group: Applications/System
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
URL: https://vpncloud.ddswd.de
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}
|
|
|
|
mkdir -p %{buildroot}/etc/vpncloud
|
|
|
|
mkdir -p %{buildroot}/lib/systemd/system
|
2019-03-02 00:12:42 +00:00
|
|
|
mkdir -p %{buildroot}/usr/share/man/man1
|
2019-02-28 14:39:41 +00:00
|
|
|
cp %{buildroot}/../../../../../assets/example.net.disabled %{buildroot}/etc/vpncloud/example.net.disabled
|
|
|
|
cp %{buildroot}/../../../../../assets/vpncloud@.service %{buildroot}/lib/systemd/system/vpncloud@.service
|
2019-03-02 00:12:42 +00:00
|
|
|
cp %{buildroot}/../../../../../target/vpncloud.1.gz %{buildroot}/usr/share/man/man1/vpncloud.1.gz
|
2019-02-28 14:39:41 +00:00
|
|
|
cp -a * %{buildroot}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
/etc/vpncloud
|
|
|
|
/etc/vpncloud/example.net.disabled
|
|
|
|
/usr/bin/vpncloud
|
|
|
|
/lib/systemd/system/vpncloud@.service
|
2019-03-02 00:12:42 +00:00
|
|
|
/usr/share/man/man1/vpncloud.1.gz
|
2019-02-28 14:39:41 +00:00
|
|
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/*
|