update golang-github-linuxdeepin-go-dbus-factory package
This commit is contained in:
parent
ca5a7abee8
commit
ef33c3ca76
65
golang-github-linuxdeepin-dbus-factory.spec
Normal file
65
golang-github-linuxdeepin-dbus-factory.spec
Normal 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
|
||||||
BIN
golang-github-linuxdeepin-go-dbus-factory-1.9.25.tar.gz
Normal file
BIN
golang-github-linuxdeepin-go-dbus-factory-1.9.25.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user