Группа :: Графика
Пакет: design-graphics-children
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define content design-graphics
%define theme children
%define pkgtheme children
%define priority 10
Name: design-graphics-children
Version: 4.0.0
Release: alt4
Summary: design for ALT
License: Different licenses
Group: Graphics
Packager: Alexandra Panyukova <mex3 at altlinux.ru>
BuildArch: noarch
PreReq(post,preun): alternatives >= 0.2
Provides: gnome-session-splash = %version-%release
Obsoletes: gnome-session-splash
#
Provides: design-graphics = %version-%release
Obsoletes: design-graphics
%if "%theme" != "%pkgtheme"
Provides: design-graphics-%theme = %version-%release
Obsoletes: design-graphics-%theme < %version-%release
%endif
Source: %content-%theme-%version.tar
BuildRequires: libalternatives-devel
%description
This package contains some graphics for ALT design.
%prep
%setup -q -n %content-%theme-%version
%build
%install
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
cp -ar %_builddir/%content-%theme-%version/* %buildroot/%_datadir/design/%theme
pushd %buildroot/%_datadir/design/%theme
pushd backgrounds
ln -sf ../../../wallpapers more
popd
popd
install -d %buildroot/%_sysconfdir/alternatives/packages.d
cat >%buildroot%_sysconfdir/alternatives/packages.d/%content-%theme <<__EOF__
%_datadir/artworks %_datadir/design/%theme %priority
%_datadir/design-current %_datadir/design/%theme %priority
__EOF__
%post
%post_register_alternatives %content-%theme
%update_alternatives
%preun
%preun_unregister_alternatives %content-%theme
%update_alternatives
%files
%config %_sysconfdir/alternatives/packages.d/%content-%theme
%_datadir/design
%changelog
…
Полный changelog можно просмотреть здесь
%define theme children
%define pkgtheme children
%define priority 10
Name: design-graphics-children
Version: 4.0.0
Release: alt4
Summary: design for ALT
License: Different licenses
Group: Graphics
Packager: Alexandra Panyukova <mex3 at altlinux.ru>
BuildArch: noarch
PreReq(post,preun): alternatives >= 0.2
Provides: gnome-session-splash = %version-%release
Obsoletes: gnome-session-splash
#
Provides: design-graphics = %version-%release
Obsoletes: design-graphics
%if "%theme" != "%pkgtheme"
Provides: design-graphics-%theme = %version-%release
Obsoletes: design-graphics-%theme < %version-%release
%endif
Source: %content-%theme-%version.tar
BuildRequires: libalternatives-devel
%description
This package contains some graphics for ALT design.
%prep
%setup -q -n %content-%theme-%version
%build
%install
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
cp -ar %_builddir/%content-%theme-%version/* %buildroot/%_datadir/design/%theme
pushd %buildroot/%_datadir/design/%theme
pushd backgrounds
ln -sf ../../../wallpapers more
popd
popd
install -d %buildroot/%_sysconfdir/alternatives/packages.d
cat >%buildroot%_sysconfdir/alternatives/packages.d/%content-%theme <<__EOF__
%_datadir/artworks %_datadir/design/%theme %priority
%_datadir/design-current %_datadir/design/%theme %priority
__EOF__
%post
%post_register_alternatives %content-%theme
%update_alternatives
%preun
%preun_unregister_alternatives %content-%theme
%update_alternatives
%files
%config %_sysconfdir/alternatives/packages.d/%content-%theme
%_datadir/design
%changelog
…
Полный changelog можно просмотреть здесь