Group :: Graphics
RPM: design-graphics-Compact
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define content design-graphics
%define theme Compact
%define priority 5
Name: %content-%theme
Version: 3.1.0.1
Release: alt2
Summary: design for ALT
License: Different licenses
Group: Graphics
BuildArch: noarch
PreReq(post,preun): /usr/sbin/update-alternatives
Provides: gnome-session-splash = %version-%release
Obsoletes: gnome-session-splash
Provides: design-graphics = %version-%release
Obsoletes: design-graphics
BuildPreReq: libalternatives-devel
# Gnome splash screen from art.gnome.org
# Name: GNOME2-Mountains
# Author: Roman "star" Beigelbeck <roman_n0spam at gnome.org>
# Release Date: 08/06/2002
Source0: %name-%version.tar.bz2
%description
This package contains some graphics for ALT design.
%prep
%setup -q
%build
%install
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
cp -ar %_builddir/%name-%version/* %buildroot/%_datadir/design/%theme
pushd %buildroot/%_datadir/design/%theme/backgrounds
ln -s ../../backgrounds more
ln -s ../../wallpapers kde
popd
install -d %buildroot//etc/alternatives/packages.d
cat >%buildroot/etc/alternatives/packages.d/%content-%theme <<__EOF__
<group name="candidate">
<option name="link">/usr/share/artworks</option>
<option name="real">/usr/share/design/%theme</option>
<option name="weight" type="number">%priority</option>
</group>
__EOF__
%post
%post_register_alternatives %content-%theme
%update_alternatives
%preun
%preun_unregister_alternatives %content-%theme
%update_alternatives
%files
%config(noreplace) /etc/alternatives/packages.d/%content-%theme
%_datadir/design
%changelog
…
Full changelog you can see here
%define theme Compact
%define priority 5
Name: %content-%theme
Version: 3.1.0.1
Release: alt2
Summary: design for ALT
License: Different licenses
Group: Graphics
BuildArch: noarch
PreReq(post,preun): /usr/sbin/update-alternatives
Provides: gnome-session-splash = %version-%release
Obsoletes: gnome-session-splash
Provides: design-graphics = %version-%release
Obsoletes: design-graphics
BuildPreReq: libalternatives-devel
# Gnome splash screen from art.gnome.org
# Name: GNOME2-Mountains
# Author: Roman "star" Beigelbeck <roman_n0spam at gnome.org>
# Release Date: 08/06/2002
Source0: %name-%version.tar.bz2
%description
This package contains some graphics for ALT design.
%prep
%setup -q
%build
%install
mkdir -p %buildroot/%_datadir/design/{%theme,backgrounds}
cp -ar %_builddir/%name-%version/* %buildroot/%_datadir/design/%theme
pushd %buildroot/%_datadir/design/%theme/backgrounds
ln -s ../../backgrounds more
ln -s ../../wallpapers kde
popd
install -d %buildroot//etc/alternatives/packages.d
cat >%buildroot/etc/alternatives/packages.d/%content-%theme <<__EOF__
<group name="candidate">
<option name="link">/usr/share/artworks</option>
<option name="real">/usr/share/design/%theme</option>
<option name="weight" type="number">%priority</option>
</group>
__EOF__
%post
%post_register_alternatives %content-%theme
%update_alternatives
%preun
%preun_unregister_alternatives %content-%theme
%update_alternatives
%files
%config(noreplace) /etc/alternatives/packages.d/%content-%theme
%_datadir/design
%changelog
…
Full changelog you can see here