File imlib2_loaders.spec of Package imlib2_loaders

#
# spec file for package imlib2_loaders-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:           imlib2_loaders
Version:        20100516_r48925
Release:		SOAD.1
License:        GPL
URL:			http://enlightenment.org/
Provides:		imlib2-loaders = %{version}
Obsoletes:		imlib2-loaders < %{version}
BuildRoot:      /tmp/%{name}-%{version}-build
Source:			%{name}_20100516_r48925.tar.bz2
Packager:		sda00 <sda00@himki.net>
#Group:         System/GUI/Enlightenment
Group:          System/Libraries/EFL
Summary:		Enlightenment Additional Image Loaders

# core
BuildRequires:	gcc-c++ gcc iputils subversion m4 autoconf automake libtool glibc-devel glibc zypper
# X env
BuildRequires:	xorg-x11-devel 
# functional extensions
BuildRequires:	imlib2-devel

# E required components (E dependencies)
##BuildRequires:	libedb1 libedb1-devel
BuildRequires:	libeet1 libeet1-devel libeina0 libeina0-devel

%description
This package contains image loader plugins for Imlib 2 that are not dis-
tributed together with the Imlib 2 package itself. More about Imlib 2
can be found on http://www.rasterman.com/imlib.html.

XCF loader:

The XCF loader cannot be packaged together with Imlib 2 because Imlib 2
is distributed under the BSD license, whereas the XCF loader is using
elements of the Gimp's (www.gimp.org) codebase, which is distributed
under the GPL. The XCF loader therefore is GPL'd as well.

packaged with a EET support

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
if  [ "`ping enlightenment.org -c 10 2>&1 | grep icmp_seq`" != "" ] ; then 
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

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

%post -p /sbin/ldconfig

%postun  -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/imlib2/loaders/*


%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

openSUSE Build Service is sponsored by