2022-10-09 14:05:18 +03:00
|
|
|
%define debug %nil
|
|
|
|
%define debug_package %nil
|
|
|
|
|
|
|
|
Name: tfautomv
|
2023-03-10 19:34:35 +00:00
|
|
|
Version: 0.5.1
|
2022-10-09 14:05:18 +03:00
|
|
|
Release: 1
|
|
|
|
Summary: Generate Terraform moved blocks automatically for painless refactoring
|
|
|
|
URL: https://github.com/padok-team/tfautomv
|
|
|
|
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
License: ASL 2.0
|
|
|
|
Group: Development/Other
|
|
|
|
BuildRequires: go
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: upx
|
|
|
|
|
|
|
|
%description
|
|
|
|
When you move a resource in your code, Terraform loses
|
|
|
|
track of the resource's state. The next time you run
|
|
|
|
Terraform, it will plan to delete the resource it has
|
|
|
|
memory of and create the "new" resource it found in your
|
|
|
|
refactored code.
|
|
|
|
|
|
|
|
tfautomv inspects the output of terraform plan, detects
|
|
|
|
such creation/deletion pairs and writes a moved block so
|
|
|
|
that Terraform now knows no deletion or creation is required.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%make build
|
|
|
|
upx bin/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md LICENSE
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|