Группа :: Система/Настройка/Пакеты
Пакет: apt-conf
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define base_name apt-conf
%define distro 3.0
Name: %base_name
Version: 1.18
Release: alt1.2
Summary: A set of apt configuration files
License: GPL
Group: System/Configuration/Packaging
BuildArch: noarch
Source0: apt-vendors.list
Source1: apt-sources.list
Source2: pkgpriorities
%ifndef distro
%define distro sisyphus
%{expand:%%global o_list %(for n in Spring Castle Compact Junior Master 3.0; do echo -n "apt-conf-$n "; done)}
%else
%undefine o_list
%endif
%ifndef dkey
%define dkey %distro
%endif
%package %distro
Summary: A set of apt configuration files for %distro
Group: System/Configuration/Packaging
Provides: %base_name = %version, %_sysconfdir/apt/pkgpriorities
PreReq: coreutils
%{?o_list:Obsoletes: %o_list}
Conflicts: apt < 0:0.5.15cnc6-alt15
%description
This package contains default apt configurations.
%description %distro
This package contains default apt configuration for %distro.
%install
%__install -pD %SOURCE0 $RPM_BUILD_ROOT%_sysconfdir/apt/vendors.list
%__install -p %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/apt/sources.list
%__subst -p 's/ at %dkey at //g;s/ at [^ at ]* at /#/g' $RPM_BUILD_ROOT%_sysconfdir/apt/sources.list
%__install -p %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/apt/
%__chmod 644 $RPM_BUILD_ROOT%_sysconfdir/apt/*
%triggerpostun %distro -- apt < 0.3.19cnc51-alt3 %{?o_list:%o_list}
f=%_sysconfdir/apt/sources.list
if [ ! -f "$f" ]; then
if [ -f "$f".rpmsave ]; then
%__cp -pf "$f".rpmsave "$f"
elif [ -f "$f".rpmnew ]; then
%__cp -pf "$f".rpmnew "$f"
fi
fi
%files %distro
%config(noreplace) %_sysconfdir/apt
%changelog
…
Полный changelog можно просмотреть здесь
%define distro 3.0
Name: %base_name
Version: 1.18
Release: alt1.2
Summary: A set of apt configuration files
License: GPL
Group: System/Configuration/Packaging
BuildArch: noarch
Source0: apt-vendors.list
Source1: apt-sources.list
Source2: pkgpriorities
%ifndef distro
%define distro sisyphus
%{expand:%%global o_list %(for n in Spring Castle Compact Junior Master 3.0; do echo -n "apt-conf-$n "; done)}
%else
%undefine o_list
%endif
%ifndef dkey
%define dkey %distro
%endif
%package %distro
Summary: A set of apt configuration files for %distro
Group: System/Configuration/Packaging
Provides: %base_name = %version, %_sysconfdir/apt/pkgpriorities
PreReq: coreutils
%{?o_list:Obsoletes: %o_list}
Conflicts: apt < 0:0.5.15cnc6-alt15
%description
This package contains default apt configurations.
%description %distro
This package contains default apt configuration for %distro.
%install
%__install -pD %SOURCE0 $RPM_BUILD_ROOT%_sysconfdir/apt/vendors.list
%__install -p %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/apt/sources.list
%__subst -p 's/ at %dkey at //g;s/ at [^ at ]* at /#/g' $RPM_BUILD_ROOT%_sysconfdir/apt/sources.list
%__install -p %SOURCE2 $RPM_BUILD_ROOT%_sysconfdir/apt/
%__chmod 644 $RPM_BUILD_ROOT%_sysconfdir/apt/*
%triggerpostun %distro -- apt < 0.3.19cnc51-alt3 %{?o_list:%o_list}
f=%_sysconfdir/apt/sources.list
if [ ! -f "$f" ]; then
if [ -f "$f".rpmsave ]; then
%__cp -pf "$f".rpmsave "$f"
elif [ -f "$f".rpmnew ]; then
%__cp -pf "$f".rpmnew "$f"
fi
fi
%files %distro
%config(noreplace) %_sysconfdir/apt
%changelog
…
Полный changelog можно просмотреть здесь