Skip to content

Instantly share code, notes, and snippets.

@tboerger
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save tboerger/801ee27ffeca0f10fb6e to your computer and use it in GitHub Desktop.

Select an option

Save tboerger/801ee27ffeca0f10fb6e to your computer and use it in GitHub Desktop.
#
# spec file for package golang-github-codegangsta-cli
#
# Copyright (c) 2015 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/
#
%define provider github
%define provider_tld com
%define project codegangsta
%define repo cli
%define import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%define tar_subdir %{name}-%{version}
%define tarball %{tar_subdir}.tar.bz2
Name: golang-%{provider}-%{project}-%{repo}
Version: 0.0.0+git.1427165943.9b2bd2b
Release: 0
Summary: A small package for building command line apps in Go
License: MIT
Group: Development/Languages/Other
Url: https://%{import_path}
Provides: golang(%{import_path})
Source0: %{tarball}
BuildRequires: go-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Noarch as long as it is a library
BuildArch: noarch
# Skip this as we are packaging a library
#{go_requires}
%{go_provides}
%description
A simple, fast, and fun package for building command line apps in Go. The goal
is to enable developers to write fast and distributable command line
applications in an expressive way.
%prep
%setup -q -n %{tar_subdir}
%build
%goprep %{import_path}
# Skip this as we are packaging a library
#%gobuild ...
%install
# Skip this as we are packaging a library
#goinstall
%godoc
%check
GOPATH=%{_builddir}/go go test %{import_path}
%files
%defattr(-,root,root,-)
%doc README.md LICENSE
%{go_contribsrcdir}/*
%changelog
# rpm -qpl /var/tmp/build-root/openSUSE_Factory-x86_64/home/abuild/rpmbuild/RPMS/noarch/golang-github-codegangsta-cli-0.0.0+git.1427165943.9b2bd2b-0.noarch.rpm
/usr/share/doc/packages/golang-github-codegangsta-cli
/usr/share/doc/packages/golang-github-codegangsta-cli/LICENSE
/usr/share/doc/packages/golang-github-codegangsta-cli/README.md
/usr/share/go/contrib/src/github.com
/usr/share/go/contrib/src/github.com/codegangsta
/usr/share/go/contrib/src/github.com/codegangsta/cli
/usr/share/go/contrib/src/github.com/codegangsta/cli/app.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/app_test.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/cli.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/cli_test.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/command.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/command_test.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/context.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/context_test.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/flag.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/flag_test.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/help.go
/usr/share/go/contrib/src/github.com/codegangsta/cli/helpers_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment