diff --git a/golang-github-linuxdeepin-dbus-factory.spec b/golang-github-linuxdeepin-dbus-factory.spec new file mode 100644 index 0000000..4b23044 --- /dev/null +++ b/golang-github-linuxdeepin-dbus-factory.spec @@ -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 - 1.9.25-1.01 +- update: update to 1.9.25-1.01 diff --git a/golang-github-linuxdeepin-go-dbus-factory-1.9.25.tar.gz b/golang-github-linuxdeepin-go-dbus-factory-1.9.25.tar.gz new file mode 100644 index 0000000..2d6b255 Binary files /dev/null and b/golang-github-linuxdeepin-go-dbus-factory-1.9.25.tar.gz differ