commit df786fc68078d07b4acfedc765b6ab44a34180a8 Author: Sergey Zhemoytel Date: Wed Sep 11 14:21:13 2024 +0300 Imported from SRPM diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..348e5a0 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + terraform-provider-alicloud-1.230.0.tar.gz: 0b1f86e7f5dcc1d1ea755d89cbdc7c7e88761615 diff --git a/terraform-provider-alicloud.spec b/terraform-provider-alicloud.spec new file mode 100644 index 0000000..61af924 --- /dev/null +++ b/terraform-provider-alicloud.spec @@ -0,0 +1,43 @@ +%define debug %nil +%define debug_package %nil +%define tfprovider alicloud +%ifarch x86_64 amd64 +%global goarch amd64 +%else +%global goarch 386 +%endif + +Name: terraform-provider-%{tfprovider} +Version: 1.230.0 +Release: 1 +Summary: Terraform AliCloud provider +URL: https://github.com/aliyun/%{name} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz +License: MPL-2.0 +Group: Development/Other +BuildRequires: go >= 1.16 +BuildRequires: git-core +BuildRequires: upx + +%description +%{summary} + +%prep +%setup -q + +%build +go build + +upx %{name} + +%install +install -Dm0755 %{name} %{buildroot}/%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name} + +%files +%doc README.md LICENSE +%{_datadir}/terraform/plugins/tf.%{tfprovider}.online/mylocal/%{tfprovider}/%{version}/linux_%{goarch}/%{name} + + + + +