mirror of https://github.com/dswd/vpncloud.git
rpm build
This commit is contained in:
parent
5be254db4a
commit
d24354c5eb
|
@ -0,0 +1,41 @@
|
||||||
|
%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
|
||||||
|
cp %{buildroot}/../../../../../assets/example.net.disabled %{buildroot}/etc/vpncloud/example.net.disabled
|
||||||
|
cp %{buildroot}/../../../../../assets/vpncloud@.service %{buildroot}/lib/systemd/system/vpncloud@.service
|
||||||
|
cp -a * %{buildroot}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
/etc/vpncloud
|
||||||
|
/etc/vpncloud/example.net.disabled
|
||||||
|
/usr/bin/vpncloud
|
||||||
|
/lib/systemd/system/vpncloud@.service
|
||||||
|
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/*
|
Loading…
Reference in New Issue