File elementary-contacts.spec of Package elementary-contacts

#
# spec file for package elementary-contacts-DR17 (SVN Version 20100516_r48925)
#
# Copyright (c) 2009 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:      	elementary-contacts
Version:   	20100516_r48925
Release:	SOAD.1
License:	BSD
URL:		http://trac.enlightenment.org/e/browser/trunk/TMP/st/elementary-contacts
#Provides:	elementary-contacts
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
Source: 	elementary-contacts_%{version}.tar.bz2
Packager: 	sda00 <sda00@himki.net>
#Obsoletes:
Group:		System/Libraries/EFL
Summary: 	An Elementary Alarm Clock

# core
BuildRequires:	gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zypper
# 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  libcurl-devel curl 
BuildRequires:  libgnutls-devel gnutls update-desktop-files dbus-1-devel

# E required components (E dependencies)
BuildRequires:	libeet1 libeet1-devel libevas0 libevas0-devel libecore0 libecore0-devel libedje0 libedje0-devel libembryo0 libembryo0-devel libedbus0 libedbus0-devel  libefreet0 libefreet0-devel libeina0 libeina0-devel elementary-devel elementary

# obsolete
#BuildRequires:	imlib-devel imlib esound-devel 

%description
An Elementary Alarm Clock

Author:  The Rasterman (Carsten Haitzler) <raster@rasterman.com>

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 elementary-contacts
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
if  [ "`ping google.com -c 10 2>&1 | grep icmp_seq`" != "" ] ; then
svn checkout http://svn.enlightenment.org/svn/e/trunk/TMP/st/elementary-contacts 
else
tar xfm  $RPM_SOURCE_DIR/elementary-contacts_%{version}.tar.bz2
fi


## Build all components
build_without_uninstall

cd ../
##suse_update_desktop_file -r elementary_alarm Utility TelephonyTools

%clean
rm -rf "$RPM_BUILD_ROOT"
# $RPM_SOURCE_DIR

#%pre

%post
%run_ldconfig

%postun
%run_ldconfig

%files
%defattr(-,root,root)
%{_bindir}/*
##/etc/X11/Xsession.d/*
%{_datadir}/elementary-contacts
%{_datadir}/applications/*
%{_datadir}/icons/*

%changelog
* Wed Mar  5 2009  first build for SOAD project <sda00@himki.net>
- added online rebuild capability of .src.rpm or .spec files

openSUSE Build Service is sponsored by