56 lines
1.3 KiB
RPMSpec
56 lines
1.3 KiB
RPMSpec
%global debug_package %{nil}
|
|
|
|
Name: deepin-proxy
|
|
Version: 1.0.1
|
|
Release: 2
|
|
Summary: Most simple RPM package
|
|
License: GPLv3
|
|
|
|
Source0: %{name}-%{version}.orig.tar.xz
|
|
|
|
BuildRequires: compiler(go-compiler)
|
|
BuildRequires: pkgconfig(gdk-3.0)
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
BuildRequires: gocode
|
|
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
|
|
This is my first RPM package, which does nothing.
|
|
|
|
%prep
|
|
%autosetup
|
|
patch -p1 < rpm/lib-to-libexec.patch
|
|
|
|
%build
|
|
%ifarch loongarch64
|
|
export CGO_ENABLED=1
|
|
export GOOS=linux
|
|
%endif
|
|
|
|
export GOPATH=/usr/share/gocode
|
|
%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
|
|
* Fri Dec 01 2023 lvgenggeng <lvgenggeng@uniontech.com> - 1.0.1-2
|
|
- fix: remove openeuler macro
|
|
|
|
* 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
|
|
- init package
|