Accepting request 351931 from devel:languages:go

OBS-URL: https://build.opensuse.org/request/show/351931
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/golang-packaging?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2016-01-06 23:24:35 +00:00 committed by Git OBS Bridge
commit e283dd14be
4 changed files with 52 additions and 22 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c26d1745a8f13ba7f0fda7f2886e42e36394a7128d57ed4bb99c4fb874c6a3cc
size 15354

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f4dc543a3c6444b16c5d2193a366b8bffd90340d74dc4de0f2452ade5eba10ba
size 19055

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Mon Jan 4 01:52:15 UTC 2016 - i@marguerite.su
- update version 13
* provides the importpath itself
* fix regex not to check files like .golden in -source
* filter "test/example" from Provides
* split common stuff to a module golang/rpmsysinfo.rb
* rewrite golang.req, now read from stdin RPM feeds,
and check __.PKGDEF from .a files for "import"s.
-------------------------------------------------------------------
Sun Jan 3 03:50:28 UTC 2016 - i@marguerite.su
- update version 12
* don't find provides/requires on -source, -debuginfo, -debugsource
subpackages
* add scripts to generate file lists.
-------------------------------------------------------------------
Sat Jan 2 05:57:41 UTC 2016 - i@marguerite.su
- update version 11
* fix for sles and openSUSE < 13.2
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Sep 4 16:24:13 UTC 2015 - i@marguerite.su Fri Sep 4 16:24:13 UTC 2015 - i@marguerite.su

View File

@ -1,7 +1,7 @@
# #
# spec file for package golang-packaging # spec file for package golang-packaging
# #
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,22 +16,20 @@
# #
%if %{?sles_version}
%define _rpmconfigdir %{_libexecdir}/rpm
%endif
Name: golang-packaging Name: golang-packaging
Version: 10 Version: 13
Release: 0 Release: 0
Summary: A toolchain to help packaging golang Summary: A toolchain to help packaging golang
License: GPL-3.0 License: GPL-3.0
Group: Development/Languages/Other Group: Development/Languages/Golang
Url: https://github.com/marguerite/%{name} Url: https://github.com/marguerite/%{name}
Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/marguerite/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: go
BuildRequires: rpm BuildRequires: rpm
Requires: ruby Requires: ruby
Requires: golang(API) = 1.5 Requires: golang(API) = %{go_api_ver}
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
A toolchain to help packaging golang, written in ruby. A toolchain to help packaging golang, written in ruby.
@ -43,20 +41,27 @@ A toolchain to help packaging golang, written in ruby.
%install %install
mkdir -p %{buildroot}%{_sysconfdir}/rpm/ mkdir -p %{buildroot}%{_sysconfdir}/rpm/
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs mkdir -p %{buildroot}%{_prefix}/lib/rpm/
install -m0644 golang.attr %{buildroot}%{_rpmconfigdir}/fileattrs/ %if 0%{?suse_version} >= 1320
install -m0755 golang.prov %{buildroot}%{_rpmconfigdir}/ mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs
install -m0755 golang.req %{buildroot}%{_rpmconfigdir}/ install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/
install -m0755 golang-strip-builddep %{buildroot}%{_rpmconfigdir}/ %endif
install -m0644 macros.go-extra %{buildroot}%{_sysconfdir}/rpm/ install -m0755 golang.prov %{buildroot}%{_prefix}/lib/rpm/
install -m0755 golang.req %{buildroot}%{_prefix}/lib/rpm/
cp -r golang %{buildroot}%{_prefix}/lib/rpm/
install -m0755 golang-strip-builddep %{buildroot}%{_prefix}/lib/rpm/
install -m0644 macros.golang-packaging %{buildroot}%{_sysconfdir}/rpm/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING README.md TODO ChangeLog %doc COPYING README.md TODO ChangeLog
%config %{_sysconfdir}/rpm/macros.go-extra %config %{_sysconfdir}/rpm/macros.golang-packaging
%{_rpmconfigdir}/fileattrs/golang.attr %if %{?suse_version} >= 1320
%{_rpmconfigdir}/golang.prov %{_prefix}/lib/rpm/fileattrs/golang.attr
%{_rpmconfigdir}/golang.req %endif
%{_rpmconfigdir}/golang-strip-builddep %{_prefix}/lib/rpm/golang
%{_prefix}/lib/rpm/golang.prov
%{_prefix}/lib/rpm/golang.req
%{_prefix}/lib/rpm/golang-strip-builddep
%changelog %changelog