golang-packaging/golang-packaging.spec

52 lines
1.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package golang-packaging
#
# 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/
#
Name: golang-packaging
Version: 1
Release: 0
License: GPL-3.0
Summary: A toolchain to help packaging golang
Url: https://github.com/marguerite/golang-packaging
Group: Development/Languages/Other
Source: %{name}-%{version}.tar.xz
BuildRequires: rpm
Requires: ruby
Requires: go
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A toolchain to help packaging golang, written in ruby.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -m0644 golang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m0755 golang.prov %{buildroot}%{_rpmconfigdir}/
install -m0755 golang.req %{buildroot}%{_rpmconfigdir}/
%files
%defattr(-,root,root)
%doc COPYING README.md TODO
%{_rpmconfigdir}/fileattrs/golang.attr
%{_rpmconfigdir}/golang.prov
%{_rpmconfigdir}/golang.req