Name: ivpn Version: 3.14.29 Release: 1%{?dist} Summary: IVPN - Secure VPN for Privacy (CLI) License: GPL-3.0 URL: https://www.ivpn.net Source0: https://github.com/ArchitektApx/ivpn-desktop-copr/releases/download/%{version}/ivpn.tar.gz Source1: ivpn-service.service Source2: ivpn.install Requires: glibc Requires: lsof Requires: openvpn Recommends: bash-completion %description IVPN is a secure VPN for privacy, offering CLI tools for managing connections. %prep %autosetup -n ivpn %pre # pre upgrade if [ $1 == 2 ]; then %{Source2} pre_upgrade fi %preun %{Source2} pre_remove %install # Create directories install -d %{buildroot}/usr/bin install -d %{buildroot}/usr/share/bash-completion/completions install -d %{buildroot}/usr/lib/systemd/system install -d %{buildroot}/opt/ivpn install -d %{buildroot}/opt/ivpn/etc install -d %{buildroot}/opt/ivpn/wireguard-tools install -d %{buildroot}/opt/ivpn/obfsproxy install -d %{buildroot}/opt/ivpn/dnscrypt-proxy install -d %{buildroot}/opt/ivpn/kem install -d %{buildroot}/opt/ivpn/v2ray # Install daemon install -Dm755 ivpn-service %{buildroot}/usr/bin/ivpn-service # Install CLI install -Dm755 ivpn %{buildroot}/usr/bin/ivpn install -Dm644 ivpn.bash-completion %{buildroot}/usr/share/bash-completion/completions/ivpn # Install configuration and support files install -Dm700 etc/client.down %{buildroot}/opt/ivpn/etc/client.down install -Dm700 etc/client.up %{buildroot}/opt/ivpn/etc/client.up install -Dm700 etc/firewall.sh %{buildroot}/opt/ivpn/etc/firewall.sh install -Dm700 etc/splittun.sh %{buildroot}/opt/ivpn/etc/splittun.sh install -Dm600 etc/servers.json %{buildroot}/opt/ivpn/etc/servers.json install -Dm400 etc/ca.crt %{buildroot}/opt/ivpn/etc/ca.crt install -Dm400 etc/ta.key %{buildroot}/opt/ivpn/etc/ta.key # WireGuard tools install -Dm755 wireguard-tools/wg-quick %{buildroot}/opt/ivpn/wireguard-tools/wg-quick install -Dm755 wireguard-tools/wg %{buildroot}/opt/ivpn/wireguard-tools/wg # Obfuscation tools install -Dm755 obfsproxy/obfs4proxy %{buildroot}/opt/ivpn/obfsproxy/obfs4proxy # DNSCrypt Proxy install -Dm755 dnscryptproxy/dnscrypt-proxy %{buildroot}/opt/ivpn/dnscrypt-proxy/dnscrypt-proxy # Other dependencies install -Dm755 kem/kem-helper %{buildroot}/opt/ivpn/kem/kem-helper install -Dm755 v2ray/v2ray %{buildroot}/opt/ivpn/v2ray/v2ray # Systemd service file install -Dm644 %{Source1} %{buildroot}/usr/lib/systemd/system/ivpn-service.service %post # post install if [ $1 -eq 1 ]; then %{Source2} post_install fi if [ $1 -eq 2 ]; then %{Source2} post_upgrade fi %postun %{Source2} post_remove %files /usr/bin/ivpn /usr/bin/ivpn-service /usr/share/bash-completion/completions/ivpn /usr/lib/systemd/system/ivpn-service.service /opt/ivpn/etc/* /opt/ivpn/wireguard-tools/* /opt/ivpn/obfsproxy/* /opt/ivpn/dnscrypt-proxy/* /opt/ivpn/kem/* /opt/ivpn/v2ray/* %changelog * Wed Nov 27 2024 ArchitektApx - 3.14.29 - Update to upstream release v3.14.29 from https://github.com/ivpn/desktop-app/releases/tag/v3.14.29