!1 update DDE-go-dbus-factory package

From: @hanshuang123456 
Reviewed-by: @ut-layne-yang 
Signed-off-by: @ut-layne-yang
This commit is contained in:
openeuler-ci-bot 2023-11-15 08:45:52 +00:00 committed by Gitee
commit ffe744e2a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,65 @@
# Run tests in check section
# disable for bootstrapping
%bcond_with check
%global pkgname github.com/linuxdeepin/go-dbus-factory
#2020-04-26增加%global with_debug 1
%global with_debug 1
%if 0%{?with_debug}
%global debug_package %{nil}
%endif
Name: golang-github-linuxdeepin-go-dbus-factory
Version: 1.9.25
Release: 1%{?dist}.01
Summary: GO DBus factory for Deepin Desktop Environment
License: GPLv3
URL: %{gourl}
Source0: %{name}-%{version}.tar.gz
BuildRequires: compiler(go-compiler)
BuildRequires: go-srpm-macros
%description
%{summary}.
%package -n %{name}-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}-devel
%{summary}.
%prep
%forgeautosetup
%install
install -d -p %{buildroot}%{gopath}/src/%{pkgname}/
for file in $(find . -iname "*.go" | grep -v "_tool") ; do
install -d -p %{buildroot}%{gopath}/src/%{pkgname}/$(dirname $file)
cp -pav $file %{buildroot}%{gopath}/src/%{pkgname}/$file
echo "%%{gopath}/src/%%{pkgname}/$file" >> devel.file-list
done
cp -pav README.md %{buildroot}%{gopath}/src/%{pkgname}/README.md
cp -pav CHANGELOG.md %{buildroot}%{gopath}/src/%{pkgname}/CHANGELOG.md
echo "%%{gopath}/src/%%{pkgname}/README.md" >> devel.file-list
echo "%%{gopath}/src/%%{pkgname}/CHANGELOG.md" >> devel.file-list
%if %{with check}
%check
%gochecks
%endif
%files -n %{name}-devel -f devel.file-list
%doc README.md CHANGELOG.md
%changelog
* Fri Jun 10 2022 uoser <uoser@uniontech.com> - 1.9.25-1.01
- update: update to 1.9.25-1.01