File kubectl-directpv.spec of Package failed_kubectl-directpv
```
Name: kubectl-directpv
Version: 4.0.12
Release: 1.1
Summary: A kubectl plugin for DirectPV
License: Apache-2.0
Group: Development/Tools
URL: https://github.com/minio/directpv
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: go
BuildRequires: rpm-build
%description
A kubectl plugin for managing DirectPV resources.
%prep
%setup -q -n %{name}-%{version}
tar -xzf %{SOURCE1}
%build
export CGO_ENABLED=0
go build -mod=vendor -tags 'osusergo netgo' '-ldflags=-X main.Version=v%{version}' -o bin/kubectl-directpv ./cmd/kubectl-directpv
%install
mkdir -p %{buildroot}/usr/bin
install -m 755 bin/kubectl-directpv %{buildroot}/usr/bin/
%files
/usr/bin/kubectl-directpv
%changelog
* Fri Aug 08 2025 Your Name <your.email@example.com> - 4.0.12-1.1
- Initial package
```
### Explanation of Changes
1. **Removed `-buildmode=pie`:** The `-buildmode=pie` flag was removed from the `go build` command in the `%build` section. This resolves the conflict caused by `CGO_ENABLED=0`.
2. **Preserved Other Flags:** The `-tags 'osusergo netgo'` and `-ldflags` options were retained as they are necessary for the build.
### Verification
After applying this change, the build process should proceed without encountering the `cgo`-related error. The rest of the build steps (e.g., installation and packaging) remain unaffected.
Let me know if further assistance is needed!