2015-07-08 14:53:22 +00:00
|
|
|
#
|
|
|
|
# spec file for package golang-packaging
|
|
|
|
#
|
2017-02-27 11:25:45 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-07-08 14:53:22 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2015-07-11 04:33:22 +00:00
|
|
|
|
2015-07-08 14:53:22 +00:00
|
|
|
Name: golang-packaging
|
2017-03-14 12:09:25 +00:00
|
|
|
Version: 15.0.1
|
2015-07-11 04:33:22 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A toolchain to help packaging golang
|
|
|
|
License: GPL-3.0
|
2016-01-02 17:33:34 +00:00
|
|
|
Group: Development/Languages/Golang
|
2015-07-11 04:33:22 +00:00
|
|
|
Url: https://github.com/marguerite/%{name}
|
2016-04-18 08:05:24 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2017-02-27 11:25:45 +00:00
|
|
|
|
2015-07-11 04:33:22 +00:00
|
|
|
BuildRequires: rpm
|
2016-04-18 08:05:24 +00:00
|
|
|
BuildRequires: xz
|
2016-01-10 17:02:11 +00:00
|
|
|
Requires: go
|
2015-07-08 14:53:22 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-02-27 11:25:45 +00:00
|
|
|
BuildArch: noarch
|
2015-07-08 14:53:22 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A toolchain to help packaging golang, written in ruby.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2015-07-12 10:38:31 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm/
|
2016-01-04 16:33:59 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/rpm/
|
2017-02-27 11:25:45 +00:00
|
|
|
|
|
|
|
install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/
|
|
|
|
install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/
|
|
|
|
install -m0755 golang.sh %{buildroot}%{_prefix}/lib/rpm/
|
|
|
|
install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/
|
|
|
|
|
2016-01-02 17:33:34 +00:00
|
|
|
%if 0%{?suse_version} >= 1320
|
2016-01-04 16:33:59 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs
|
2016-01-02 17:33:34 +00:00
|
|
|
install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/
|
|
|
|
%endif
|
2015-07-08 14:53:22 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2017-02-27 11:25:45 +00:00
|
|
|
%doc README.md CHANGELOG COPYING
|
|
|
|
%{_prefix}/lib/rpm/golang.prov
|
|
|
|
%{_prefix}/lib/rpm/golang.req
|
|
|
|
%{_prefix}/lib/rpm/golang.sh
|
2016-01-10 17:02:11 +00:00
|
|
|
%config %{_sysconfdir}/rpm/macros.go
|
2017-02-27 11:25:45 +00:00
|
|
|
|
2016-01-02 17:33:34 +00:00
|
|
|
%if %{?suse_version} >= 1320
|
|
|
|
%{_prefix}/lib/rpm/fileattrs/golang.attr
|
|
|
|
%endif
|
2015-07-08 14:53:22 +00:00
|
|
|
|
2015-07-11 04:33:22 +00:00
|
|
|
%changelog
|