91cded4b21
OBS-URL: https://build.opensuse.org/request/show/351673 OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/golang-packaging?expand=0&rev=15
65 lines
2.1 KiB
RPMSpec
65 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package golang-packaging
|
|
#
|
|
# Copyright (c) 2016 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: 11
|
|
Release: 0
|
|
Summary: A toolchain to help packaging golang
|
|
License: GPL-3.0
|
|
Group: Development/Languages/Golang
|
|
Url: https://github.com/marguerite/%{name}
|
|
Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
BuildRequires: go
|
|
BuildRequires: rpm
|
|
Requires: ruby
|
|
Requires: golang(API) = %{go_api_ver}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
A toolchain to help packaging golang, written in ruby.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_sysconfdir}/rpm/
|
|
mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs
|
|
%if 0%{?suse_version} >= 1320
|
|
install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/
|
|
%endif
|
|
install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/
|
|
install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/
|
|
install -m0755 golang-strip-builddep %{buildroot}%{_prefix}/lib/rpm/
|
|
install -m0644 macros.golang-packaging %{buildroot}%{_sysconfdir}/rpm/
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COPYING README.md TODO ChangeLog
|
|
%config %{_sysconfdir}/rpm/macros.golang-packaging
|
|
%if %{?suse_version} >= 1320
|
|
%{_prefix}/lib/rpm/fileattrs/golang.attr
|
|
%endif
|
|
%{_prefix}/lib/rpm/golang.prov
|
|
%{_prefix}/lib/rpm/golang.req
|
|
%{_prefix}/lib/rpm/golang-strip-builddep
|
|
|
|
%changelog
|