Commit 1b40406c authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: use standalone distro_info on ALT systems

parent 189f0b84
...@@ -23,6 +23,7 @@ Provides: upm ...@@ -23,6 +23,7 @@ Provides: upm
%if %_vendor == "alt" %if %_vendor == "alt"
# FIXHERE: Replace with target platform package manager # FIXHERE: Replace with target platform package manager
Requires: apt rpm Requires: apt rpm
Requires: distro_info >= 1.1
%endif %endif
%description %description
...@@ -68,6 +69,8 @@ chmod a+x %buildroot%_datadir/%name/tools_* ...@@ -68,6 +69,8 @@ chmod a+x %buildroot%_datadir/%name/tools_*
%if %_vendor == "alt" %if %_vendor == "alt"
# use external eget # use external eget
rm -f %buildroot%_datadir/%name/tools_eget rm -f %buildroot%_datadir/%name/tools_eget
# use external distro_info
rm -f %buildroot%_bindir/distr_info
%endif %endif
%files %files
...@@ -81,7 +84,9 @@ rm -f %buildroot%_datadir/%name/tools_eget ...@@ -81,7 +84,9 @@ rm -f %buildroot%_datadir/%name/tools_eget
%_bindir/upm %_bindir/upm
%_bindir/serv %_bindir/serv
%_bindir/cerv %_bindir/cerv
%if %_vendor != "alt"
%_bindir/distr_info %_bindir/distr_info
%endif
%_man1dir/* %_man1dir/*
%_datadir/%name/ %_datadir/%name/
%_sysconfdir/bash_completion.d/serv %_sysconfdir/bash_completion.d/serv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment