File edje_viewer.spec of Package edje_viewer
#
# spec file for package edje_viewer-DR17 (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: edje_viewer
Version: svn_20100516_r48925
Release: SOAD.1
License: LGPL
URL: http://enlightenment.org/
#Provides: %{name}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}_20100516_r48925.tar.bz2
Source1: edje_viewer.desktop
Source2: edje_viewer.png
#Patch0:
Packager: sda00 <sda00@himki.net>
Group: System/GUI/Enlightenment/Development
Summary: Edje_viewer is a visual editor for edje file
# core
BuildRequires: gcc-c++ gcc iputils cvs m4 autoconf automake libtool glibc-devel glibc
# X env
BuildRequires: xorg-x11-devel xorg-x11-libX11-devel
# 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 giflib-devel giflib pango pango-devel freetype2-devel freetype2 libtiff-devel tiff libtiff3 librsvg-devel librsvg 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
BuildRequires: libgnutls-devel gnutls update-desktop-files dbus-1-devel
# 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 libeina0-devel libeina0 elementary-devel elementary libedbus0 libedbus0-devel
#obsolete
#BuildRequires: imlib-devel imlib esound-devel
%description
edje_viewer is a visual editor for edje file.
You can find more inforamtion on the wiki at:
http://wiki.enlightenment.org/index.php/edje_viewer
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 %{name}
chmod +x ./autogen.sh
./autogen.sh
make distclean
%configure
make || return 1
make DESTDIR=$RPM_BUILD_ROOT install || return 1
find $RPM_BUILD_ROOT$NEW_LIBDIR/ -type f -iname '*.la' -exec rm {} \;
find $RPM_BUILD_ROOT$NEW_LIBDIR/ -type f -iname '*.a' -exec rm {} \;
## find $RPM_BUILD_ROOT/ -type f -perm 755 -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}_20100516_r48925.tar.bz2 \
svn co http://svn.enlightenment.org/svn/e/trunk/%{name}
else
tar xfm $RPM_SOURCE_DIR/%{name}_20100516_r48925.tar.bz2
fi
## Build all components
build_without_uninstall
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cp $RPM_SOURCE_DIR/edje_viewer.desktop $RPM_BUILD_ROOT%{_datadir}/applications/
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp $RPM_SOURCE_DIR/edje_viewer.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
%suse_update_desktop_file -r edje_viewer Development IDE EFL
%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR
#%pre
%post -p /sbin/ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/edje_viewer.png
%{_datadir}/edje_viewer
#%{_datadir}/edje_viewer/*
#%{_datadir}/icons/hicolor/*/apps/edje_viewer.png
%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