modified: n.fq
[GalaxyCodeBases.git] / etc / Server / rpmbuild / SPECS / clash.spec
blobe1a4d33e93acf16d9d56059ccd64747a244384d3
1 %define version 2022.07.07
3 Summary: Clash Premium RPM Package
4 Name: clash-premium
5 Version: %{version}
6 Release: 2
7 License: non-free
8 URL: https://github.com/Dreamacro/clash/releases/tag/premium
9 Group: System
10 Packager: Yuuki Galaxy
11 Source1: clash-linux-amd64-v3-%{version}.gz
12 Source2: clash.service
14 %description
15 A rule-based tunnel in Go.
16 Enable with `sudo systemctl --system enable clash.service`.
18 %prep
19 rm -rf $RPM_BUILD_ROOT
20 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
21 cp %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}/clash.gz
22 gzip -d $RPM_BUILD_ROOT/%{_bindir}/clash.gz
23 mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/
24 cp %{SOURCE2} $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/
25 exit
27 %files
28 %attr(0755, root, root) /usr/bin/clash
29 %attr(0644, root, root) /usr/lib/systemd/system/clash.service