diff --git a/gocode.spec b/gocode.spec new file mode 100644 index 0000000..b82a5e8 --- /dev/null +++ b/gocode.spec @@ -0,0 +1,45 @@ +# Run tests in check section +# disable for bootstrapping +%bcond_with check +%define debug_package %{nil} + +Name: gocode +Version: 0.0.0.52 +Release: 5 +Summary: gocode +License: GPLv3 +URL: %{gourl} +Source0: %{name}_%{version}.orig.tar.gz + +BuildArch: noarch + +%description +gocode + +%prep +%autosetup + +%build + +%install +install -d -p %{buildroot}/%{gopath}/src/ +for file in $(find . -iname "*.go" -o -iname "*.c" -o -iname "*.h" -o -iname "*.s") ; do + install -d -p %{buildroot}/%{gopath}/src/$(dirname $file) + cp -pav $file %{buildroot}/%{gopath}/src/$file + echo "%{gopath}/src/$file" >> devel.file-list +done + +%files -f devel.file-list + +%changelog +* Thu Apr 15 2021 panchenbo - 0.0.0.52-5 +- add github.com/godbus/dbus/v5 + +* Tue Apr 6 2021 panchenbo - 0.0.0.52-4 +- fix spec + +* Tue Apr 6 2021 panchenbo - 0.0.0.52-3 +- add github.com/Lofanmi/pinyin-golang/pinyin + +* Tue Mar 16 2021 panchenbo - 0.0.0.52-2 +- update to 0.0.0.52 diff --git a/gocode_0.0.0.52.orig.tar.gz b/gocode_0.0.0.52.orig.tar.gz new file mode 100644 index 0000000..6fb8d2b Binary files /dev/null and b/gocode_0.0.0.52.orig.tar.gz differ