Commit 5ac6d922 authored by Vitaly Lipatov's avatar Vitaly Lipatov

always pack and use internal distr_info

parent 0f27ec3f
%def_without external_distro_info
Name: eepm Name: eepm
Version: 3.13.3 Version: 3.13.3
Release: alt1 Release: alt1
...@@ -21,6 +23,9 @@ Provides: epm = %EVR ...@@ -21,6 +23,9 @@ Provides: epm = %EVR
%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
%endif
%if_with external_distro_info
Requires: distro_info >= 2.5 Requires: distro_info >= 2.5
%endif %endif
...@@ -96,12 +101,14 @@ ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv ...@@ -96,12 +101,14 @@ ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv
chmod a+x %buildroot%_datadir/%name/{serv-,epm-}* chmod a+x %buildroot%_datadir/%name/{serv-,epm-}*
chmod a+x %buildroot%_datadir/%name/tools_* chmod a+x %buildroot%_datadir/%name/tools_*
%if %_vendor == "alt" %if_with external_distro_info
# use external eget # use external eget
#rm -v %buildroot%_datadir/%name/tools_eget #rm -v %buildroot%_datadir/%name/tools_eget
# use external distro_info # use external distro_info
rm -v %buildroot%_bindir/distr_info rm -v %buildroot%_bindir/distr_info
%else %endif
%if %_vendor != "alt"
rm -v %buildroot%_bindir/yum rm -v %buildroot%_bindir/yum
%endif %endif
...@@ -122,7 +129,7 @@ mkdir -p %buildroot/var/lib/eepm/ ...@@ -122,7 +129,7 @@ mkdir -p %buildroot/var/lib/eepm/
%_bindir/cerv %_bindir/cerv
%exclude %_bindir/yum %exclude %_bindir/yum
%dir /var/lib/eepm/ %dir /var/lib/eepm/
%if %_vendor != "alt" %if_without external_distro_info
%_bindir/distr_info %_bindir/distr_info
%endif %endif
%_man1dir/* %_man1dir/*
......
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