66 lines
1.5 KiB
RPMSpec
66 lines
1.5 KiB
RPMSpec
# 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
|