Flavio Castelli 2017-02-27 11:25:45 +00:00 committed by Git OBS Bridge
parent 9e6c73edb8
commit 50ad7a8478
5 changed files with 45 additions and 26 deletions

View File

@ -4,8 +4,8 @@
<param name="scm">git</param> <param name="scm">git</param>
<param name="filename">golang-packaging</param> <param name="filename">golang-packaging</param>
<param name="exclude">.git</param> <param name="exclude">.git</param>
<param name="versionformat">14.9.2</param> <param name="versionformat">15.0.0</param>
<param name="revision">v14.9.2</param> <param name="revision">v15.0.0</param>
<param name="changesgenerate">enable</param> <param name="changesgenerate">enable</param>
</service> </service>
<service name="recompress" mode="disabled"> <service name="recompress" mode="disabled">

View File

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

View File

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

View File

@ -1,3 +1,25 @@
-------------------------------------------------------------------
Wed Feb 15 16:07:57 UTC 2017 - thipp@suse.de
- Update to version 15.0.0:
* [SLE11]some commands need time to finish, immediate close will get wrong status, so use timeout 30s
* [SLE]ditch named group in regexp in golang.req, the oniguruma in ruby 1.8.7 doesn't support named group
* fix a typo in cli.rb
* increate timeout to 300s or go install can't finish
* Remove runtime dependency for Go API
* simplify rpmsysinfo.rb
* release 14.9.1
* Added go_nostrip macro
* Refactor using plain bash
* small fixes
-------------------------------------------------------------------
Fri Jul 22 12:47:09 UTC 2016 - tboerger@suse.com
- Added refactoring.patch while trying new code base
- Dropped the sed for static architecture detection
- Updated files list to reflect new file structure
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Jul 8 16:51:28 UTC 2016 - i@marguerite.su Fri Jul 8 16:51:28 UTC 2016 - i@marguerite.su

View File

@ -1,7 +1,7 @@
# #
# spec file for package golang-packaging # spec file for package golang-packaging
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017 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,56 +16,53 @@
# #
%define version_unconverted 14.9.2
Name: golang-packaging Name: golang-packaging
Version: 14.9.2 Version: 15.0.0
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/Golang Group: Development/Languages/Golang
Url: https://github.com/marguerite/%{name} Url: https://github.com/marguerite/%{name}
Source: %{name}-%{version}.tar.xz Source: %{name}-%{version}.tar.xz
BuildRequires: rpm BuildRequires: rpm
BuildRequires: ruby
BuildRequires: xz BuildRequires: xz
Requires: go Requires: go
Requires: ruby
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.
%prep %prep
%setup -q %setup -q
GOARCH=`ruby ./golang-macros.rb --arch`
sed -i "s/GOARCH/$GOARCH/" macros.go
%build %build
%install %install
mkdir -p %{buildroot}%{_sysconfdir}/rpm/ mkdir -p %{buildroot}%{_sysconfdir}/rpm/
mkdir -p %{buildroot}%{_prefix}/lib/rpm/ mkdir -p %{buildroot}%{_prefix}/lib/rpm/
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/
%if 0%{?suse_version} >= 1320 %if 0%{?suse_version} >= 1320
mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs
install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/ install -m0644 golang.attr %{buildroot}%{_prefix}/lib/rpm/fileattrs/
%endif %endif
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-macros.rb %{buildroot}%{_prefix}/lib/rpm/
install -m0644 macros.go %{buildroot}%{_sysconfdir}/rpm/
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING README.md ChangeLog %doc README.md CHANGELOG COPYING
%{_prefix}/lib/rpm/golang.prov
%{_prefix}/lib/rpm/golang.req
%{_prefix}/lib/rpm/golang.sh
%config %{_sysconfdir}/rpm/macros.go %config %{_sysconfdir}/rpm/macros.go
%if %{?suse_version} >= 1320 %if %{?suse_version} >= 1320
%{_prefix}/lib/rpm/fileattrs/golang.attr %{_prefix}/lib/rpm/fileattrs/golang.attr
%endif %endif
%{_prefix}/lib/rpm/golang
%{_prefix}/lib/rpm/golang.prov
%{_prefix}/lib/rpm/golang.req
%{_prefix}/lib/rpm/golang-macros.rb
%changelog %changelog