mirror of
https://github.com/containers/podman
synced 2024-10-22 02:03:38 +00:00
Merge pull request #1805 from rhatdan/rpm
Cleanup podman spec to not show git checkout is dirty
This commit is contained in:
commit
900436e70f
|
@ -378,10 +378,6 @@ providing packages with %{import_path} prefix.
|
|||
|
||||
%prep
|
||||
%autosetup -Sgit -n %{repo}-%{shortcommit0}
|
||||
sed -i '/\/bin\/env/d' completions/bash/%{name}
|
||||
sed -i 's/0.0.0/%{version}/' contrib/python/%{name}/setup.py
|
||||
sed -i 's/0.0.0/%{version}/' contrib/python/py%{name}/setup.py
|
||||
mv pkg/hooks/README.md pkg/hooks/README-hooks.md
|
||||
|
||||
# untar cri-o
|
||||
tar zxf %{SOURCE1}
|
||||
|
@ -416,15 +412,17 @@ popd
|
|||
|
||||
%install
|
||||
install -dp %{buildroot}%{_unitdir}
|
||||
%{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} \
|
||||
PODMAN_VERSION=%{version} %{__make} PREFIX=%{buildroot}%{_prefix} ETCDIR=%{buildroot}%{_sysconfdir} \
|
||||
install.bin \
|
||||
install.man \
|
||||
install.cni \
|
||||
install.systemd \
|
||||
install.completions
|
||||
|
||||
mv pkg/hooks/README.md pkg/hooks/README-hooks.md
|
||||
|
||||
%if %{with varlink}
|
||||
%{__make} DESTDIR=%{buildroot} install.python
|
||||
PODMAN_VERSION=%{version} %{__make} DESTDIR=%{buildroot} install.python
|
||||
%endif # varlink
|
||||
|
||||
# install libpod.conf
|
||||
|
|
Loading…
Reference in a new issue