Hello community,

here is the log from the commit of package terraform-provider-template for 
openSUSE:Factory checked in at 2020-11-26 23:15:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/terraform-provider-template (Old)
 and      /work/SRC/openSUSE:Factory/.terraform-provider-template.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "terraform-provider-template"

Thu Nov 26 23:15:35 2020 rev:3 rq:850967 version:2.1.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/terraform-provider-template/terraform-provider-template.changes
  2020-08-12 10:39:06.976369237 +0200
+++ 
/work/SRC/openSUSE:Factory/.terraform-provider-template.new.5913/terraform-provider-template.changes
        2020-11-26 23:16:22.437083271 +0100
@@ -1,0 +2,6 @@
+Wed Nov 11 12:02:57 UTC 2020 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- Add symbolic link to comply with new filesystem layout for local provider 
copies
+- Define and use common Go spec file variables
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ terraform-provider-template.spec ++++++
--- /var/tmp/diff_new_pack.9CnL3A/_old  2020-11-26 23:16:23.169083841 +0100
+++ /var/tmp/diff_new_pack.9CnL3A/_new  2020-11-26 23:16:23.173083843 +0100
@@ -16,6 +16,39 @@
 #
 
 
+%global provider        github
+%global provider_tld    com
+%global project         terraform-providers
+%global repo            terraform-provider-template
+%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
+%global import_path     %{provider_prefix}
+%global registry        registry.terraform.io
+%global namespace       hashicorp
+%global providername    template
+
+%ifarch aarch64
+%define terraformarch   amd64
+%endif
+%ifarch ppc64
+%define terraformarch   ppc64
+%endif
+%ifarch ppc64le
+%define terraformarch   ppc64le
+%endif
+%ifarch s390x
+%define terraformarch   s390x
+%endif
+%ifarch %{ix86}
+%define terraformarch   i386
+%endif
+%ifarch x86_64
+%define terraformarch   amd64
+%endif
+
+%if 0%{?suse_version}
+%{go_nostrip}
+%endif
+
 Name:           terraform-provider-template
 Version:        2.1.2
 Release:        0
@@ -23,14 +56,11 @@
 License:        MPL-2.0
 Group:          System/Management
 URL:            
https://github.com/terraform-providers/terraform-provider-template
-Source:         %{name}-%{version}.tar.gz
+Source:         %{repo}-%{version}.tar.gz
 BuildRequires:  golang-packaging
 BuildRequires:  golang(API) >= 1.8
 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
@@ -43,7 +73,7 @@
 
 %build
 %if 0%{?suse_version}
-%{goprep} github.com/terraform-providers/%{name}
+%{goprep} %{import_path}
 %{gobuild} -mod=vendor ""
 %endif
 %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 
0%{?ubuntu_version}
@@ -67,11 +97,14 @@
 go install -ldflags "-X main.version=%{version}"
 %endif
 ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}_v%{version}
+install -d 755 
%{buildroot}%{_datadir}/terraform/providers/%{registry}/%{namespace}/%{providername}/%{version}/linux_%{terraformarch}
+ln -s %{_bindir}/%{name} 
%{buildroot}%{_datadir}/terraform/providers/%{registry}/%{namespace}/%{providername}/%{version}/linux_%{terraformarch}/%{name}_v%{version}
 
 %files
 %license LICENSE
 %doc README.md
 %{_bindir}/%{name}
 %{_bindir}/%{name}_v%{version}
+%{_datadir}/terraform
 
 %changelog
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives: 
https://lists.opensuse.org/archives/list/[email protected]

Reply via email to