golang-packaging/golang-packaging.spec

63 lines
2.0 KiB
RPMSpec

#
# 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/
#
%if %{?sles_version}
%define _rpmconfigdir %{_libexecdir}/rpm
%endif
Name: golang-packaging
Version: 6
Release: 0
Summary: A toolchain to help packaging golang
License: GPL-3.0
Group: Development/Languages/Other
Url: https://github.com/marguerite/%{name}
Source: https://github.com/marguerite/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: rpm
Requires: ruby
Requires: golang(API)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A toolchain to help packaging golang, written in ruby.
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}%{_sysconfdir}/rpm/
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -m0644 golang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m0755 golang.prov %{buildroot}%{_rpmconfigdir}/
install -m0755 golang.req %{buildroot}%{_rpmconfigdir}/
install -m0755 golang-strip-builddep %{buildroot}%{_rpmconfigdir}/
install -m0644 macros.go-extra %{buildroot}%{_sysconfdir}/rpm/
%files
%defattr(-,root,root)
%doc COPYING README.md TODO ChangeLog
%config %{_sysconfdir}/rpm/macros.go-extra
%{_rpmconfigdir}/fileattrs/golang.attr
%{_rpmconfigdir}/golang.prov
%{_rpmconfigdir}/golang.req
%{_rpmconfigdir}/golang-strip-builddep
%changelog