LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File go-gnuflag.spec of Package go-gnuflag (Project devel:languages:go)

#
# Copyright (c) 2012, Graham Anderson, <graham@andtech.eu>
#
# 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/
#


Name:           go-gnuflag
Version:        go1+bzr20120227
Release:        0
License:        BSD-3-clause
Summary:        Gnu style flag syntax for Go.
Url:            https://launchpad.net/gnuflag 
Group:          Development/Languages/Other
Source0:        gnuflag-%{version}.tar.bz2
BuildRequires:  go-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# The following line is only needed for (static) libraries:
%if 0%{?suse_version} >= 1100
Recommends:     %{name}-doc
%endif
%{go_requires}
%{go_provides}

%description
A fork of the standard Go flag package that supports GNU-style flag syntax.

%package doc
Summary:        API documentation
Group:          Documentation/Other
Requires:       %{name} = %{version}

%description doc
API, examples and documentation.

%prep
%setup -q -n gnuflag

%build
%goprep launchpad.net/gnuflag
%gobuild 

%install
%{go_disable_brp_strip_static_archive}

%goinstall
%godoc

%check
%gotest launchpad.net/gnuflag

%files
%defattr(-,root,root,-)
%doc 
%{go_contribdir}/*

%files doc
%defattr(-,root,root,-)
%{go_contribsrcdir}/*

%changelog