File golang-org-x-tools.spec of Package golang-org-x-tools.6992
#
# spec file for package golang-org-x
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global provider github
%global provider_tld com
%global project golang
%global repo tools
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path golang.org/x/tools
Name: golang-org-x-%{repo}
Version: 1.4.2+git20161212.0a14ca4
Release: 0
Summary: Additional toolsgraphy libraries
License: BSD-3-Clause
Group: Development/Languages/Golang
Url: https://%{provider_prefix}
Source0: %{repo}-%{version}.tar.xz
Source1: rpmlintrc
Source2: godoc.service
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: find
BuildRequires: golang-packaging
BuildRequires: mango-doc
BuildRequires: systemd
BuildRequires: xz
BuildRequires: golang-org-x-net-html
Requires: golang-org-x-net-html
BuildRequires: golang-org-x-net-websocket
Requires: golang-org-x-net-websocket
%{go_nostrip}
%{go_provides}
%description
This package contains additional toolsgraphy libraries that are developed by the
Go team but outside of the main source tree.
%package -n go-tools
Summary: Additional toolsgraphy libraries
Group: Development/Languages/Golang
AutoReqProv: Off
%{?systemd_requires}
%{go_exclusivearch}
%description -n go-tools
This package contains additional toolsgraphy libraries that are developed by the
Go team but outside of the main source tree.
%prep
%setup -q -n %{repo}-%{version}
rm -rf cover
rm -rf cmd/cover
rm -rf cmd/vet
%build
%goprep %{import_path}
%gobuild ...
for tool in $(ls %{_builddir}/%{repo}-%{version}/cmd); do
mango-doc -version %{version} %{_builddir}/%{repo}-%{version}/cmd/${tool} > %{_builddir}/%{repo}-%{version}/${tool}.1
done
%install
%goinstall
%gosrc
%gofilelist
%fdupes %{buildroot}%{_prefix}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/godoc.service
install -d %{buildroot}/%{_sbindir}
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rcgodoc
find . -name '*.1' -exec install -Dm644 {} %{buildroot}%{_mandir}/man1/{} \;
%pre -n go-tools
%service_add_pre godoc.service
%post -n go-tools
%service_add_post godoc.service
%preun -n go-tools
%service_del_preun godoc.service
%postun -n go-tools
%service_del_postun godoc.service
%files -f file.lst
%defattr(-,root,root,-)
%doc README LICENSE PATENTS AUTHORS CONTRIBUTORS
%files -n go-tools
%defattr(-,root,root)
%{_bindir}/benchcmp
%{_bindir}/bundle
%{_bindir}/callgraph
%{_bindir}/digraph
%{_bindir}/eg
%{_bindir}/fiximports
%{_bindir}/godex
%{_bindir}/godoc
%{_bindir}/goimports
%{_bindir}/gomvpkg
%{_bindir}/gorename
%{_bindir}/gotype
%{_bindir}/goyacc
%{_bindir}/guru
%{_bindir}/heapview
%{_bindir}/html2article
%{_bindir}/present
%{_bindir}/ssadump
%{_bindir}/stress
%{_bindir}/stringer
%{_bindir}/tip
%{_bindir}/toolstash
%{_mandir}/man1/benchcmp.1*
%{_mandir}/man1/bundle.1*
%{_mandir}/man1/callgraph.1*
%{_mandir}/man1/digraph.1*
%{_mandir}/man1/eg.1*
%{_mandir}/man1/fiximports.1*
%{_mandir}/man1/godex.1*
%{_mandir}/man1/godoc.1*
%{_mandir}/man1/goimports.1*
%{_mandir}/man1/gomvpkg.1*
%{_mandir}/man1/gorename.1*
%{_mandir}/man1/gotype.1*
%{_mandir}/man1/goyacc.1*
%{_mandir}/man1/guru.1*
%{_mandir}/man1/heapview.1*
%{_mandir}/man1/html2article.1*
%{_mandir}/man1/present.1*
%{_mandir}/man1/ssadump.1*
%{_mandir}/man1/stress.1*
%{_mandir}/man1/stringer.1*
%{_mandir}/man1/tip.1*
%{_mandir}/man1/toolstash.1*
%{_unitdir}/godoc.service
%{_sbindir}/rcgodoc
%changelog