File golang-launchpad-gorun.spec of Package golang-launchpad-gorun

#
# spec file for package golang
#
# Copyright (c) 2015-2016 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        launchpad
%global provider_tld    net
%global project         niemeyer
%global repo            gorun
%global provider_prefix %{provider}.%{provider_tld}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{repo}
Version:        0.0.0+bzr20120610.19
Release:        0
Summary:        Enables Go source files to be used as scripts
License:        GPL-3.0
Group:          Development/Languages/Golang
Url:            https://%{provider_prefix}
Source0:        %{repo}-%{version}.tar.xz
Source1:        rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  golang-packaging
BuildRequires:  xz

%{go_nostrip}
%{go_provides}

%description
gorun is a tool enabling one to put a "bang line" in the source code of a Go
program to run it, or to run such a source code file explicitly. It was created
in an attempt to make experimenting with Go more appealing to people used to
Python and similar languages which operate most visibly with source code.

%package -n gorun
Summary:        Enables Go source files to be used as scripts
Group:          Development/Languages/Golang
AutoReqProv:    Off

%{go_exclusivearch}

%description -n gorun
gorun is a tool enabling one to put a "bang line" in the source code of a Go
program to run it, or to run such a source code file explicitly. It was created
in an attempt to make experimenting with Go more appealing to people used to
Python and similar languages which operate most visibly with source code.

%prep
%setup -q -n %{repo}-%{version}

%build
%goprep %{import_path}
%gobuild ...

%install
%goinstall
%gosrc
%gofilelist

%check
%gotest %{import_path}...

%files -f file.lst
%defattr(-,root,root,-)
%doc COPYING

%files -n gorun
%defattr(-,root,root)
%{_bindir}/gorun

%changelog
openSUSE Build Service is sponsored by