Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 910def5cf822b572ba6d6b107527c410 > files > 2

epplets-0.12-2mdv2010.0.src.rpm

%define libname %mklibname epplet 0
%define eprefix %_prefix
Name: epplets
Summary: Applets for enlightenment
Version: 0.12
Release: %mkrel 2
Source: %{name}-%{version}.tar.gz
Group: Graphical desktop/Enlightenment
URL: http://www.enlightenment.org
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires:	imagemagick
BuildRequires:	libesound-devel
BuildRequires:	libjpeg-static-devel	
BuildRequires:	texinfo
BuildRequires:	mesaglut-devel
BuildRequires:  libcdaudio-devel
BuildRequires:  chrpath
BuildRequires:  imlib2-devel
Obsoletes: Epplets
Provides: Epplets = %{version}
License: GPL

%description
An epplet is an applet designed specificly for use with enlightenment
This packages contains several, two cpu load meters, two clocks, a network
load monitor, aswell as a E-Biff

%package -n %libname
Group: System/Libraries
Summary: Shared library needed by Enlightenment applets

%description -n %libname
An epplet is an applet designed specificly for use with enlightenment
This packages contains several, two cpu load meters, two clocks, a network
load monitor, aswell as a E-Biff

This is needed for running Epplets.

%package -n %libname-devel
Group: Development/C
Summary: Development libraries for Enlightenment applets
Provides: libepplet-devel = %version-%release
Provides: epplets-devel = %version-%release
Requires: %libname = %version

%description -n %libname-devel
An epplet is an applet designed specificly for use with enlightenment
This packages contains several, two cpu load meters, two clocks, a network
load monitor, aswell as a E-Biff

This is needed for building Epplets.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q 

%build
export EROOT=%{eprefix}/share/enlightenment
export EBIN=%{eprefix}/bin
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \
	--prefix=%{eprefix} --enable-fsstd --libdir=%eprefix/%_lib --disable-auto-respawn

perl -p -i -e 's/ppp0/lo/g' epplets/E-NetGraph.c

%make

%install
mkdir -p $RPM_BUILD_ROOT/%{eprefix}
export EROOT=$RPM_BUILD_ROOT%{eprefix}/share/enlightenment
export EBIN=$RPM_BUILD_ROOT%{eprefix}/bin
#perl -p -i -e 's/\$\(EROOT\)\//\$\(DESTDIR\)\/\$\(EROOT\)\//g' epplets/Makefile
make install DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT/usr/share/e16/epplet_icons
for f in `find . -name '*.icon'`; do
  convert -geometry 16x16 $f $f.png
  mv -f $f.png $f
done
chrpath -d %buildroot%eprefix/bin/*

%if %mdkversion < 200900
%post -n %libname -p /sbin/ldconfig   
%endif
     
%if %mdkversion < 200900
%postun -n %libname -p /sbin/ldconfig  
%endif

%files
%defattr(-,root,root)
%doc ChangeLog
%eprefix/bin/*
%eprefix/share/e16/epplet*

%files -n %libname
%defattr(-,root,root)
%eprefix/%_lib/*.so.*

%files -n %libname-devel
%defattr(-,root,root)
%eprefix/include/*
%eprefix/%_lib/*.so
%attr(644,root,root) %eprefix/%_lib/*a





%changelog
* Thu Sep 10 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.12-2mdv2010.0
+ Revision: 437478
- rebuild

* Tue Mar 03 2009 Crispin Boylan <crisb@mandriva.org> 0.12-1mdv2009.1
+ Revision: 347662
- New version

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

* Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.11-2mdv2009.0
+ Revision: 266677
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Mon May 19 2008 Crispin Boylan <crisb@mandriva.org> 0.11-1mdv2009.0
+ Revision: 208920
- Remove spec file comment causing upload failure
- New version

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request

* Sat Aug 18 2007 Crispin Boylan <crisb@mandriva.org> 0.10-1mdv2008.0
+ Revision: 65482
- New version


* Mon Sep 04 2006 Jerome Soyer <saispo@mandriva.com> 0.9-1mdv2007.0
- New release 0.9

* Mon Aug 14 2006 Thierry Vignaud <tvignaud@mandriva.com> 0.7-11mdv2007.0
- fix buildrequires
- fix macro-in-%%changelog

* Mon May 15 2006 Stefan van der Eijk <stefan@eijk.nu> 0.7-10mdk
- rebuild for sparc

* Fri Feb 17 2006 Götz Waschk <waschk@mandriva.org> 0.7-9mdk
- lib64 fix

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 0.7-8mdk
- Rebuild

* Fri Jul 01 2005 Götz Waschk <waschk@mandriva.org> 0.7-7mdk
- Rebuild

* Wed Jun 30 2004 Michael Scherer <misc@mandrake.org> 0.7-6mdk 
- Rebuild for new gcc

* Sat May 22 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7-5mdk
- disable respawn (requested by A. S. Budden)
- reenable libtoolize

* Fri Jan 30 2004 Götz Waschk <waschk@linux-mandrake.com> 0.7-4mdk
- remove rpaths
- add docs
- libify the package
- remove the prefix tag
- fix buildrequires

* Sun Jan 18 2004 Olivier Blin <blino@mandrake.org> 0.7-3mdk
- merge changes from Charles A Edwards
- BuildRequires libMesaglut-devel

* Mon Jan 05 2004 Charles A Edwards <eslrahc@bellsouth.net> 0.7-2mdk
- add version tag to provides

* Mon Dec 08 2003 Charles A Edwards <eslrahc@bellsouth.net> 0.7-1mdk
- 0.7
- prefix=/usr/X11R6
- remane as epplets
- change placement in spec of post postun