1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
%define use_gnome 0
Summary: Enlightenment Epplets
Name: epplets
Version: 0.6
Release: 3
Copyright: BSD
Group: User Interface/X
URL: http://www.enlightenment.org
Packager: Michael Jennings <mej@eterm.org>
Vendor: The Enlightenment Development Team <e-develop@enlightenment.org>
Source: ftp://ftp.enlightenment.org/enlightenment/epplets/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}
Requires: enlightenment >= 0.16.0
%description
Epplets are small, handy Enlightenment applets, similar to "dockapps"
or "applets" for other packages. The epplets package contains the
base epplet API library and header files, as well as the core set of
epplets, including CPU monitors, clocks, a mail checker, mixers, a
slideshow, a URL grabber, a panel-like toolbar, and more.
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS
%if %{use_gnome}
%{configure} --prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --enable-fsstd --disable-autorespawn
%else
%{configure} --prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --enable-fsstd
%endif
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
# Make all the aircut3.ttf and bg.png files symlinks to 1 of each.
cd $RPM_BUILD_ROOT%{_datadir}/enlightenment/epplet_data
for i in aircut3.ttf bg.png ; do
install -m 644 $RPM_BUILD_DIR/%{name}-%{version}/epplets/$i .
for j in `find . -name $i -print` ; do
rm -f $j
ln -s ../../$i $j
done
done
%post
%ifos Linux
/sbin/ldconfig
%endif
%postun
%ifos Linux
/sbin/ldconfig
%endif
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog
%{_prefix}/include/*
%{_prefix}/lib/*
%{_bindir}/*
%{_datadir}/enlightenment/epplet_icons/*
%{_datadir}/enlightenment/epplet_data/*
|