Hello community,
here is the log from the commit of package terraform-provider-template for
openSUSE:Factory checked in at 2020-08-12 10:36:50
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/terraform-provider-template (Old)
and /work/SRC/openSUSE:Factory/.terraform-provider-template.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "terraform-provider-template"
Wed Aug 12 10:36:50 2020 rev:2 rq:825761 version:2.1.2
Changes:
--------
---
/work/SRC/openSUSE:Factory/terraform-provider-template/terraform-provider-template.changes
2020-06-10 00:53:24.247725239 +0200
+++
/work/SRC/openSUSE:Factory/.terraform-provider-template.new.3399/terraform-provider-template.changes
2020-08-12 10:39:06.976369237 +0200
@@ -1,0 +2,11 @@
+Tue Aug 11 10:40:38 UTC 2020 - Dirk Mueller <[email protected]>
+
+- Spec clean up
+- Create required symlink
+
+-------------------------------------------------------------------
+Thu Jun 18 19:42:17 UTC 2020 - Dirk Mueller <[email protected]>
+
+- fix requires
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ terraform-provider-template.spec ++++++
--- /var/tmp/diff_new_pack.NTN3Ih/_old 2020-08-12 10:39:08.396369941 +0200
+++ /var/tmp/diff_new_pack.NTN3Ih/_new 2020-08-12 10:39:08.400369943 +0200
@@ -1,7 +1,7 @@
#
-# spec file for package terraform
+# spec file for package terraform-provider-template
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,26 +12,25 @@
# 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
-# Make sure that the binary is not getting stripped.
-%if 0%{?suse_version}
-%{go_nostrip}
-%endif
Name: terraform-provider-template
Version: 2.1.2
Release: 0
-License: MPL-2.0
Summary: Terraform template-provider
-Url:
https://github.com/terraform-providers/terraform-provider-template
+License: MPL-2.0
Group: System/Management
+URL:
https://github.com/terraform-providers/terraform-provider-template
Source: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.8
-Requires: terraform >= 0.11.0
+Requires: terraform >= 0.12.0
+# Make sure that the binary is not getting stripped.
+%if 0%{?suse_version}
+%{go_nostrip}
+%endif
%if 0%{?suse_version}
%{go_provides}
%endif
@@ -40,14 +39,12 @@
This is a terraform provider that lets you use template files
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
-export GO111MODULE=off
-export GOPROXY=off
%if 0%{?suse_version}
-%goprep github.com/terraform-providers/terraform-provider-template
-%gobuild
+%{goprep} github.com/terraform-providers/%{name}
+%{gobuild} -mod=vendor ""
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} ||
0%{?ubuntu_version}
mkdir -p ./_build/src/github.com/terraform-providers
@@ -58,10 +55,8 @@
%endif
%install
-export GO111MODULE=off
-export GOPROXY=off
%if 0%{?suse_version}
-%goinstall
+%{goinstall}
rm -rf %{buildroot}/%{_libdir}/go/contrib
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} ||
0%{?ubuntu_version}
@@ -71,18 +66,12 @@
cd _build/src/github.com/terraform-providers/terraform-provider-template
go install -ldflags "-X main.version=%{version}"
%endif
-
-curr=$PWD
-# extract the binary to be published
-if [ -d %{_topdir}/OTHER ]; then
- cd %{buildroot}%{_bindir}
- tar zcf %{_topdir}/OTHER/%{name}-%{version}.%{_repository}.%{_arch}.tar.gz
%{name}
-fi
-cd $curr
+ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}_v%{version}
%files
-%defattr(-,root,root,-)
-%doc README.md LICENSE
+%license LICENSE
+%doc README.md
%{_bindir}/%{name}
+%{_bindir}/%{name}_v%{version}
%changelog