diff --git a/deepin-network-proxy-1.1.0.9.tar.gz b/deepin-network-proxy-1.1.0.9.tar.gz new file mode 100644 index 0000000..4600a95 Binary files /dev/null and b/deepin-network-proxy-1.1.0.9.tar.gz differ diff --git a/deepin-proxy.spec b/deepin-proxy.spec new file mode 100644 index 0000000..aeb629f --- /dev/null +++ b/deepin-proxy.spec @@ -0,0 +1,50 @@ +%global debug_package %{nil} +%global repo deepin-network-proxy + +Name: deepin-proxy +Version: 1.1.0.9 +Release: 1 +Summary: Most simple RPM package +License: GPLv3 + +URL: https://github.com/linuxdeepin/%{repo} +Source0: %{repo}-%{version}.tar.gz +Source1: vendor.tar.gz + +BuildRequires: golang +BuildRequires: pkgconfig(gdk-3.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gobject-2.0) +BuildRequires: gtest-devel +Obsoletes: deepin-network-proxy + +%description +This is my first RPM package, which does nothing. + +%prep +%autosetup -n %{repo}-%{version} +patch -p1 < rpm/lib-to-libexec.patch + +tar -xf %{SOURCE1} + +%build +%ifarch loongarch64 +export CGO_ENABLED=1 +export GOOS=linux +%endif + +sed -i 's|gocode$|gocode:%{_builddir}/%{repo}-%{version}/vendor:|' Makefile +%make_build GO_BUILD_FLAGS=-trimpath + +%install +%make_install + +%files +%config %{_sysconfdir}/deepin/deepin-proxy/* +%{_datadir}/dbus-1/system.d/* +%{_datadir}/dbus-1/system-services/* +%{_libexecdir}/deepin-daemon/* + +%changelog +* Mon Aug 14 2023 leeffo - 1.1.0.9-1 +- init package diff --git a/deepin-proxy.yaml b/deepin-proxy.yaml new file mode 100644 index 0000000..6ebf014 --- /dev/null +++ b/deepin-proxy.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: deepin-proxy +tag_prefix: ^v +separator: . diff --git a/vendor.tar.gz b/vendor.tar.gz new file mode 100644 index 0000000..6b45a62 Binary files /dev/null and b/vendor.tar.gz differ