Commit 20303435 authored by Vitaly Lipatov's avatar Vitaly Lipatov

drop ALT specific cases, use rpm-build-intro

parent fda89c88
%def_without external_distro_info # from rpm-build-intro
%define pkgsystem %(distr_vendor -g)
%define pkgsystem "%(bin/distr_info -g)"
%if %pkgsystem == "yum-rpm"
%def_disable yum
%else
%def_enable yum
%endif
Name: eepm Name: eepm
Version: 3.14.7 Version: 3.14.7
...@@ -19,23 +13,22 @@ Url: http://wiki.etersoft.ru/EPM ...@@ -19,23 +13,22 @@ Url: http://wiki.etersoft.ru/EPM
Packager: Vitaly Lipatov <lav@altlinux.ru> Packager: Vitaly Lipatov <lav@altlinux.ru>
# git-clone http://git.etersoft.ru/projects/korinf/eepm.git # git clone https://github.com/Etersoft/eepm.git
Source: ftp://updates.etersoft.ru/pub/Etersoft/Sisyphus/sources/tarball/%name-%version.tar Source: ftp://updates.etersoft.ru/pub/Etersoft/Sisyphus/sources/tarball/%name-%version.tar
BuildArchitectures: noarch BuildArchitectures: noarch
# use distr_vendor from it
BuildRequires: rpm-build-intro
Obsoletes: epm Obsoletes: epm
Provides: epm = %EVR 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 %endif
%if_with external_distro_info
Requires: distro_info >= 2.5
%endif
%description %description
Etersoft EPM is the package manager for any platform Etersoft EPM is the package manager for any platform
and any platform version. It provides and any platform version. It provides
...@@ -108,18 +101,12 @@ ln -s serv %buildroot%_sysconfdir/bash_completion.d/cerv ...@@ -108,18 +101,12 @@ 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_with external_distro_info mkdir -p %buildroot/var/lib/eepm/
# use external eget
#rm -v %buildroot%_datadir/%name/tools_eget
# use external distro_info
rm -v %buildroot%_bindir/distr_info
%endif
%if_disabled yum %if "%pkgsystem" == "yum-rpm"
rm -v %buildroot%_bindir/yum rm -v %buildroot%_bindir/yum
%endif %endif
mkdir -p %buildroot/var/lib/eepm/
%files %files
%doc README.md TODO LICENSE %doc README.md TODO LICENSE
...@@ -134,23 +121,21 @@ mkdir -p %buildroot/var/lib/eepm/ ...@@ -134,23 +121,21 @@ mkdir -p %buildroot/var/lib/eepm/
%_bindir/eepm %_bindir/eepm
%_bindir/serv %_bindir/serv
%_bindir/cerv %_bindir/cerv
%if_enabled yum %if "%pkgsystem" != "yum-rpm"
%exclude %_bindir/yum %exclude %_bindir/yum
%endif %endif
%dir /var/lib/eepm/ %dir /var/lib/eepm/
%if_without external_distro_info
%_bindir/distr_info %_bindir/distr_info
%endif
%_man1dir/* %_man1dir/*
%_datadir/%name/ %_datadir/%name/
%_sysconfdir/bash_completion.d/serv %_sysconfdir/bash_completion.d/serv
%_sysconfdir/bash_completion.d/cerv %_sysconfdir/bash_completion.d/cerv
%if %_vendor == "alt" %if "%_vendor" == "alt"
%files repack %files repack
%endif %endif
%if_enabled yum %if "%pkgsystem" != "yum-rpm"
# not for yum based system # not for yum based system
%files yum %files yum
%_bindir/yum %_bindir/yum
......
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