File ethemes.spec of Package ethemes
#
# spec file for package ethemes (svn Version _20100516_r48925)
#
# Copyright (c) 2008 SOAD Project, Russia.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bug fixes or comments to the Maintainer: sda00@himki.net
#
# norootforbuild
Name: ethemes
Version: svn_20100516_r48925
Release: SOAD.1
License: GPL
URL: http://enlightenment.org/p.php?p=about&l=en
#Provides: %{name}
BuildRoot: /tmp/%{name}%{version}build
Source: %{name}_20100516_r48925.tar.bz2
Packager: sda00 <sda00@himki.net>
Group: System/GUI/Enlightenment/Themes
Summary: Themes for the Enlightenment-DR16 Window Manager
BuildRequires: iputils subversion
BuildRequires: esound-devel freeglut-devel gcc-c++ giflib-devel imlib2-devel libpng-devel libpng libtiff-devel libtiff freetype2-devel freetype2 libjpeg-devel libjpeg E16
%description
This package provide five standard themes for E16:
BlueSteel
BrushedMetal-Tigert
Ganymede
ShinyMetal
winter
and should be updated/upgraded along with E16 package.
You can always update your epplets to the current state just by rebuilding the .spec file:
>rpmbuild -bb ethemes.spec
or by rebuilding the .src.rpm file itself:
>rpmbuild --rebuild ethemes*.src.rpm
The new compiled .rpm will be available in /usr/src/packages/RPM/_your_PC_type/
Prepared by SOAD project.
%prep
rm -rf "$RPM_BUILD_ROOT"
#%setup
%{?suse_update_config:%{suse_update_config -f}}
%build
%install
## Function declaration
build_without_uninstall ()
{
chmod +x ./autogen.sh
./autogen.sh
make distclean
## ./configure --prefix=$new_prefix --exec-prefix=$new_prefix --libdir=$NEW_LIBDIR
%configure
make || return 1
make DESTDIR=$RPM_BUILD_ROOT install || return 1
}
## Getting the sources
# cvs -z3 -d :pserver:anonymous@anoncvs.enlightenment.org:/var/cvs/e co e16
if [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
svn co http://svn.enlightenment.org/svn/e/trunk/E16/%{name}
cd ethemes
else
tar xfm $RPM_SOURCE_DIR/%{name}_20100516_r48925.tar.bz2
cd E16/ethemes
fi
## Build all components
build_without_uninstall
%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR
# %pre
# %post
%files
%defattr(-,root,root)
%{_datadir}/e16/themes
%exclude %{_datadir}/e16/themes/ShinyMetal/epplets/images/.xvpics
%changelog
* Thu May 2 2008 first build for SOAD project <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files