generated from demus/basic-rpm-template
49 lines
1.2 KiB
RPMSpec
49 lines
1.2 KiB
RPMSpec
%global major 0
|
|
%global minor 1
|
|
%global release 2
|
|
|
|
Name: demus-packaging-utils
|
|
Version: %{major}.%{minor}.%{release}
|
|
Release: %autorelease
|
|
Summary: Aliases and scripts to assist in rpm packaging workflows
|
|
|
|
License: GPL3
|
|
Source: go2rpm-vendor-update.sh
|
|
Source: regenerate-from-spec.sh
|
|
Source: macros.demus-packaging
|
|
Source: LICENSE
|
|
Source: README.md
|
|
|
|
Requires: bash go-vendor-tools
|
|
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
* Alias to regenerate vendor archive in a go2rpm spec generated with the vendor profile
|
|
|
|
%prep
|
|
%if %{exists:%{S:2}}
|
|
%{load:%{S:2}}
|
|
%endif
|
|
%?verify_source_checksum
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__install} -m 0755 -d %{buildroot}%{_bindir}
|
|
%{__install} -m 0755 -d %{buildroot}%{_rpmmacrodir}
|
|
|
|
%{__install} -p -m 755 %{S:0} %{buildroot}%{_bindir}/%{binshellname:%{S:0}}
|
|
%{__install} -p -m 755 %{S:1} %{buildroot}%{_bindir}/%{binshellname:%{S:1}}
|
|
%{__install} -p -m 755 %{S:2} %{buildroot}%{_rpmmacrodir}/
|
|
%{__install} -p -m 644 %{S:3} %{S:4} %{_builddir}
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{_bindir}/*
|
|
%{_rpmmacrodir}/*
|
|
|
|
%changelog
|
|
%autochangelog
|