f8a33c8
%define oname epplets
f8a33c8
f8a33c8
Summary:          Epplets for Enlightenment, DR16
f8a33c8
Name:             e16-epplets
7d1224f
Version:          0.12
e136a59
Release:          4%{?dist}
f8a33c8
License:          MIT with advertising and GPL+ and GPLv2+
f8a33c8
Group:            User Interface/Desktops
f8a33c8
URL:              http://www.enlightenment.org/
e136a59
Source0:          http://downloads.sourceforge.net/enlightenment/epplets-%{version}.tar.gz
e136a59
Patch0:           epplets-0.12-dso.patch 
7d1224f
BuildRequires:    imlib2-devel mesa-libGLU-devel freeglut-devel 
f8a33c8
Requires:         e16 >= 0.16.8
7d1224f
Requires(postun): /sbin/ldconfig
7d1224f
Requires(post):   /sbin/ldconfig
f8a33c8
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
f8a33c8
f8a33c8
%description
f8a33c8
Epplets are small, handy Enlightenment applets, similar to dockapps or
f8a33c8
applets for other packages.  The epplets package contains the base
f8a33c8
epplet API library and header files, as well as the core set of
f8a33c8
epplets, including CPU monitors, clocks, a mail checker, mixers, a
f8a33c8
slideshow, a URL grabber, a panel-like toolbar, and more.
f8a33c8
f8a33c8
%package devel
f8a33c8
Summary:  Development tools for epplets
f8a33c8
Group:    Development/Libraries
f8a33c8
Requires: %{name} = %{version}-%{release}
f8a33c8
f8a33c8
%description devel
f8a33c8
The %{name}-devel package contains the header files and libs
f8a33c8
for developing epplets for Enlightenment, DR16
f8a33c8
f8a33c8
%prep
f8a33c8
%setup -q -n %{oname}-%{version}
e136a59
%patch0 -p1
f8a33c8
f8a33c8
%build
7d1224f
%{__sed} -i -e 's/-rpath $(libdir)//' epplets/Makefile.in
f8a33c8
%configure
f8a33c8
%{__make} %{?_smp_mflags}
f8a33c8
f8a33c8
%install
f8a33c8
%{__rm} -rf %{buildroot}
f8a33c8
%{__make} install DESTDIR=%{buildroot}
f8a33c8
%{__install} -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
f8a33c8
echo "%{_libdir}/%{oname}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{oname}-%{_arch}.conf
7d1224f
%{__rm} -f %{buildroot}%{_libdir}/libepplet{,_glx}.{a,la}
92b97fa
f8a33c8
%clean
f8a33c8
%{__rm} -rf %{buildroot}
f8a33c8
85e3437
%post -p /sbin/ldconfig
f8a33c8
%postun -p /sbin/ldconfig
f8a33c8
f8a33c8
%files
f8a33c8
%defattr(-, root, root, -)
f8a33c8
%doc ChangeLog 
f8a33c8
%{_libdir}/libepplet.so.*
7d1224f
%{_libdir}/libepplet_glx.so.*
f8a33c8
%{_bindir}/E*.epplet
f8a33c8
%{_datadir}/e16/epplet_icons
f8a33c8
%{_datadir}/e16/epplet_data
f8a33c8
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{oname}-%{_arch}.conf
f8a33c8
f8a33c8
%files devel
f8a33c8
%defattr(-, root, root, -)
f8a33c8
%{_includedir}/epplet.h
f8a33c8
%{_libdir}/libepplet.so
7d1224f
%{_libdir}/libepplet_glx.so
f8a33c8
f8a33c8
%changelog
e136a59
* Sun Feb 14 2010 Terje Rosten <terjeros@phys.ntnu.no> - 0.12-4
e136a59
- Add DSO patch
e136a59
31487b9
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-3
31487b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
31487b9
615f952
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12-2
615f952
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
615f952
7d1224f
* Thu Jan  8 2009 Terje Rosten <terjeros@phys.ntnu.no> - 0.12-1
7d1224f
- 0.12
7d1224f
92b97fa
* Sat Dec 27 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.10-4
92b97fa
- Use Dejavu fonts
92b97fa
85e3437
* Tue Apr 15 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.10-3
85e3437
- Remove .{a,la} files
85e3437
- Remove post requires
85e3437
- Add mesa-libGLU-devel and freeglut-devel to build req
85e3437
f8a33c8
* Tue Mar 27 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.10-2
f8a33c8
- Fix license
f8a33c8
f8a33c8
* Mon Aug 20 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.10-1
f8a33c8
- Initial build (based on upstream spec, thanks!)