rebase to 1.0.1
Signed-off-by: lvgenggeng <lvgenggeng@uniontech.com>
This commit is contained in:
parent
f2f4e3ac2d
commit
c9d8fbaed6
Binary file not shown.
BIN
deepin-proxy-1.0.1.orig.tar.xz
Normal file
BIN
deepin-proxy-1.0.1.orig.tar.xz
Normal file
Binary file not shown.
@ -1,39 +1,51 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
%global repo deepin-network-proxy
|
|
||||||
|
|
||||||
Name: deepin-proxy
|
Name: deepin-proxy
|
||||||
Version: 1.1.0.9
|
Version: 1.0.1
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Most simple RPM package
|
Summary: Most simple RPM package
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
|
|
||||||
URL: https://github.com/linuxdeepin/%{repo}
|
Source0: %{name}-%{version}.orig.tar.xz
|
||||||
Source0: %{repo}-%{version}.tar.gz
|
|
||||||
Source1: vendor.tar.gz
|
|
||||||
|
|
||||||
BuildRequires: golang
|
BuildRequires: compiler(go-compiler)
|
||||||
BuildRequires: pkgconfig(gdk-3.0)
|
BuildRequires: pkgconfig(gdk-3.0)
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: pkgconfig(gobject-2.0)
|
BuildRequires: pkgconfig(gobject-2.0)
|
||||||
|
%if 0%{?openeuler}
|
||||||
|
BuildRequires: gocode
|
||||||
|
%else
|
||||||
|
BuildRequires: golang-dbus
|
||||||
|
BuildRequires: golang-x-sys-devel
|
||||||
|
BuildRequires: golang-gopkg-yaml-devel-v2
|
||||||
|
BuildRequires: golang-github-fsnotify-fsnotify-devel
|
||||||
|
BuildRequires: golang(gir/gio-2.0)
|
||||||
|
BuildRequires: golang(gir/glib-2.0)
|
||||||
|
BuildRequires: golang(gir/gobject-2.0)
|
||||||
|
BuildRequires: golang(gir/gudev-1.0)
|
||||||
|
BuildRequires: golang-github-stretchr-testify-devel
|
||||||
BuildRequires: gtest-devel
|
BuildRequires: gtest-devel
|
||||||
Obsoletes: deepin-network-proxy
|
%endif
|
||||||
|
BuildRequires: golang-github-linuxdeepin-go-x11-client-devel
|
||||||
|
BuildRequires: golang-github-linuxdeepin-go-dbus-factory-devel
|
||||||
|
BuildRequires: go-lib-devel
|
||||||
|
BuildRequires: go-gir-generator
|
||||||
|
Obsoletes: deepin-network-proxy
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This is my first RPM package, which does nothing.
|
This is my first RPM package, which does nothing.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{repo}-%{version}
|
%autosetup
|
||||||
patch -p1 < rpm/lib-to-libexec.patch
|
patch -p1 < rpm/lib-to-libexec.patch
|
||||||
|
|
||||||
tar -xf %{SOURCE1}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ifarch loongarch64
|
%ifarch loongarch64
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
sed -i 's|gocode$|gocode:%{_builddir}/%{repo}-%{version}/vendor:|' Makefile
|
export GOPATH=/usr/share/gocode
|
||||||
%make_build GO_BUILD_FLAGS=-trimpath
|
%make_build GO_BUILD_FLAGS=-trimpath
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -46,5 +58,8 @@ sed -i 's|gocode$|gocode:%{_builddir}/%{repo}-%{version}/vendor:|' Makefile
|
|||||||
%{_libexecdir}/deepin-daemon/*
|
%{_libexecdir}/deepin-daemon/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Dec 01 2023 lvgenggeng <lvgenggeng@uniontech.com> - 1.0.1-1
|
||||||
|
- rebase to 1.0.1
|
||||||
|
|
||||||
* Mon Aug 14 2023 leeffo <liweiganga@uniontech.com> - 1.1.0.9-1
|
* Mon Aug 14 2023 leeffo <liweiganga@uniontech.com> - 1.1.0.9-1
|
||||||
- init package
|
- init package
|
||||||
|
|||||||
BIN
vendor.tar.gz
BIN
vendor.tar.gz
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user