tfautomv/tfautomv.spec
Sergey Zhemoytel 9e53f392d9 0.5.3
2023-08-10 19:32:46 +00:00

42 lines
985 B
RPMSpec

%define debug %nil
%define debug_package %nil
Name: tfautomv
Version: 0.5.3
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}