init package

(cherry picked from commit 302c54092506597c025ebb421f09b7965d299e60)
This commit is contained in:
leeffo 2023-08-14 11:47:41 +08:00 committed by openeuler-sync-bot
parent 3f246b7604
commit 33e3518c45
4 changed files with 54 additions and 0 deletions

Binary file not shown.

50
deepin-proxy.spec Normal file
View File

@ -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 <liweiganga@uniontech.com> - 1.1.0.9-1
- init package

4
deepin-proxy.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: deepin-proxy
tag_prefix: ^v
separator: .

BIN
vendor.tar.gz Normal file

Binary file not shown.