Skip to content

Commit

Permalink
Merge pull request #29 from cfergeau/rpm
Browse files Browse the repository at this point in the history
spec file updates
  • Loading branch information
praveenkumar authored Feb 16, 2022
2 parents 5e6bd7a + b673aa4 commit 8289ec9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions crc-admin-helper.spec.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# https://github.com/code-ready/admin-helper
%global goipath github.com/code-ready/admin-helper
Version: 0.0.2
%global goname crc-admin-helper
Version: 0.0.9

%gometa

Expand Down Expand Up @@ -51,12 +52,12 @@ make VERSION=%{version} GO_LDFLAGS="-B 0x$(head -c20 /dev/urandom|od -An -tx1|tr
%install
# with fedora macros: gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/linux-amd64/admin-helper %{buildroot}%{_bindir}/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/linux-amd64/crc-admin-helper %{buildroot}%{_bindir}/

install -d %{buildroot}%{_datadir}/%{name}-redistributable/{linux,macos,windows}
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/linux-amd64/admin-helper %{buildroot}%{_datadir}/%{name}-redistributable/linux/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/windows-amd64/admin-helper.exe %{buildroot}%{_datadir}/%{name}-redistributable/windows/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/macos-amd64/admin-helper %{buildroot}%{_datadir}/%{name}-redistributable/macos/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/linux-amd64/crc-admin-helper %{buildroot}%{_datadir}/%{name}-redistributable/linux/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/windows-amd64/crc-admin-helper.exe %{buildroot}%{_datadir}/%{name}-redistributable/windows/
install -m 0755 -vp %{gobuilddir}/src/%{goipath}/out/macos-amd64/crc-admin-helper %{buildroot}%{_datadir}/%{name}-redistributable/macos/

%check
# with fedora macros: gocheck
Expand All @@ -74,5 +75,8 @@ go test ./...
#gopkgfiles

%changelog
* Mon Jan 31 2022 Christophe Fergeau <[email protected]> - 0.0.9-1
- Update to admin-helper 0.0.9

* Wed Feb 03 2021 Christophe Fergeau <[email protected]> - 0.0.2-1
- Initial import in Fedora

0 comments on commit 8289ec9

Please sign in to comment.