File e_modules.spec.old of Package e_modules
#
# spec file for package e_modules-DR17 (svn Version _20081215_r38164)
#
# 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: e_modules
Version: svn_20081215_r38164
Release: SOAD.1
License: BSD
URL: http://enlightenment.org/
#Provides: %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}_20081215_r38164.tar.bz2
#Patch0:
Packager: sda00 <sda00@himki.net>
Group: System/GUI/Enlightenment/Modules
Summary: Enlightenment modules
# core
BuildRequires: gcc-c++ gcc iputils cvs m4 autoconf automake libtool glibc-devel glibc
# X env
BuildRequires: xorg-x11-devel xorg-x11-util-devel xorg-x11-libX11-devel xorg-x11-fonts-devel xorg-x11-libXfixes-devel xorg-x11-server-extra xorg-x11-server xorg-x11 xorg-x11-libXpm-devel xorg-x11-libXpm dbus-1-x11 pam pam-config pam-modules xorg-x11-libXau xorg-x11-libXau-devel xkeyboard-config
# functional extensions
BuildRequires: gettext-devel gettext imlib2-devel imlib2 pkg-config zlib-devel zlib libjpeg-devel libjpeg libpng-devel libpng libxml2-devel libxml2 libxslt-devel libxslt ImageMagick-devel ImageMagick dbus-1-devel dbus-1 giflib-devel giflib pango pango-devel freetype2-devel freetype2 libtiff-devel tiff libtiff3 librsvg-devel librsvg gtk-devel gtk gtk2 gtk2-devel ncurses-devel ncurses xine-devel xine-lib cairo-devel cairo libopenssl-devel libopenssl0_9_8 openssl gstreamer010-devel gstreamer010 flex bison libglade2-devel libglade2 taglib-devel taglib sqlite-devel sqlite libcurl-devel curl alsa-devel alsa alsa-tools-devel alsa-tools libid3tag-devel libid3tag
BuildRequires: libgnutls-devel gnutls
# E app required components (E dependencies)
BuildRequires: libeet1 libeet1-devel libevas0 libevas0-devel libecore0 libecore0-devel libedje0 libedje0-devel libefreet0 libefreet0-devel libembryo0 libembryo0-devel E17 E17-devel libedbus0 libedbus0-devel libemotion0 libemotion0-devel libewl1 libewl1-devel libetk1 libetk1-devel libepsilon0 libepsilon0-devel emprint libexml0 libexml0-devel libmpd0 libmpd-devel libasound2 libeina0 libeina0-devel
# obsolete
#BuildRequires: imlib-devel imlib esound-devel
# strict requirement
Requires: emprint
%description
Collection of Enlightenment modules:
alarm bling calendar cpu deskshow echo emu efm_nav efm_path execwatch flame forecasts iiirk language mail mem mixer moon mpdule net news notification photo penguins rain screenshot slideshow snow taskbar tclock tiling uptime weather winselector wlan
The Enlightenment Team:
--------
The Rasterman (Carsten Haitzler)
Ibukun Olumuyiwa
Sebastian Dransfeld
HandyAndE (Andrew Williams)
CodeWarrior (Hisham Mardam Bey)
dj2 (Dan Sinclair)
Tilman Sauerbeck
Aleksej Struk
Brian Mattern
devilhorns (Chrostopher Michael)
/dev/urandom (Victor Kojouharov)
ilLogict
Stafford Horne
Cedric Mail
onefang (David Seikel)
Stephen Houston
Byron Hillis
Ravenlock (Eric Schuele)
ManoWarrior (Luchezar Petkov)
morlenxus (Brian Miculcy)
The full list of E-dev crew is here:
http://enlightenment.org/p.php?p=contact&l=en
You can always update your package to the current state just by rebuilding the .spec file:
> rpmbuild -bb *.spec
or by rebuilding the .src.rpm file itself:
> rpmbuild --rebuild *.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 ()
{
cd E-MODULES-EXTRA/
export components="alarm bling calendar cpu deskshow diskio drawer emu efm_nav efm_path execwatch flame forecasts iiirk language mail mem moon mpdule net news notification photo places penguins rain screenshot slideshow snow taskbar tclock tiling uptime weather winselector wlan"
## old_ones export components="alarm bling calendar cpu deskshow emu efm_nav efm_path execwatch flame forecasts iiirk language mail mem moon mpdule net news notification photo penguins rain screenshot slideshow snow taskbar tclock tiling uptime weather winselector wlan"
for a1 in $components ; do
cd $a1
chmod +x ./autogen.sh
./autogen.sh
make distclean
%configure
make || return 1
make DESTDIR=$RPM_BUILD_ROOT install || return 1
cd ../
done
find $RPM_BUILD_ROOT/ -type f -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT/ -type f -iname '*.a' -exec rm {} \;
## find $RPM_BUILD_ROOT/ -type f -exec strip -s {} \;
}
## Getting the sources
# cvs -z3 -d :pserver:anonymous@anoncvs.enlightenment.org:/var/cvs/e co e17
if [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
#tar xf $RPM_SOURCE_DIR/%{name}_20081215_r38164.tar.bz2 \
svn co http://svn.enlightenment.org/svn/e/trunk/E-MODULES-EXTRA
else
tar xfm $RPM_SOURCE_DIR/%{name}_20081215_r38164.tar.bz2
fi
## Prepare a valid environment for a 'language' module
##mkdir -p $RPM_BUILD_ROOT/etc/X11
##ln -sf /usr/share/X11/xkb $RPM_BUILD_ROOT/etc/X11/xkb
mkdir -p $RPM_BUILD_ROOT/etc/X11/xkb/rules
ln -sf /usr/share/X11/xkb/rules/xorg.lst $RPM_BUILD_ROOT/etc/X11/xkb/rules/xfree86.lst
ln -sf /usr/share/X11/xkb/rules/xorg.xml $RPM_BUILD_ROOT/etc/X11/xkb/rules/xfree86.xml
## Build all components
build_without_uninstall
%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR
%pre
if [ -d /etc/X11/xkb ] ; then
mv /etc/X11/xkb /etc/X11/xkb.original
fi
%post -p /sbin/ldconfig
%postun
%run_ldconfig
if [ -d /etc/X11/xkb.original ] ; then
mv /etc/X11/xkb.original /etc/X11/xkb
fi
%files
%defattr(-,root,root)
%{_libdir}/enlightenment/modules/*
/etc/X11/xkb/rules
%changelog
* Fri Jun 6 2008 version E-DR17-999-043 <sda00@himki.net>
* Thu May 2 2008 first build for SOAD project <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files