Sat Oct 13 13:01:05 PDT 2001

(KainX)

Fixed the spec file, and hopefully fixed E-Power's insane respawning
habits.


SVN revision: 5486
This commit is contained in:
Michael Jennings 2001-10-13 20:06:21 +00:00
parent 9396292e9c
commit 21eccec6c9
6 changed files with 82 additions and 62 deletions

View File

@ -2240,3 +2240,11 @@ as well as a vertical bar for each.
-------------------------------------------------------------------------------
Sat Oct 13 13:01:05 PDT 2001
(KainX)
Fixed the spec file, and hopefully fixed E-Power's insane respawning
habits.
-------------------------------------------------------------------------------

View File

@ -4,4 +4,4 @@ AUTOMAKE_OPTIONS = foreign
SUBDIRS = api epplets debian
EXTRA_DIST = autogen.sh epplets.spec epplets.spec.in
EXTRA_DIST = autogen.sh epplets.spec

View File

@ -361,7 +361,7 @@ basedir=.
AM_CONFIG_HEADER(config.h)
AC_OUTPUT(epplets.spec Makefile api/Makefile epplets/Makefile debian/Makefile)
AC_OUTPUT(Makefile api/Makefile epplets/Makefile debian/Makefile)
echo "creating api/epplet.h"
sed -e "s%@EROOT@%$EROOT%g" -e "s%@EBIN@%$EBIN%g" -e "s%\${exec_prefix}%${exec_prefix}%g" -e "s%\${prefix}%${prefix}%g" ${srcdir}/api/epplet.h.in > api/epplet.h.new

71
epplets.spec Normal file
View File

@ -0,0 +1,71 @@
%define use_gnome 0
Summary: Enlightenment Epplets
Name: epplets
Version: 0.6
Release: 2
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/*

View File

@ -1,60 +0,0 @@
%define name @PACKAGE@
%define ver @VERSION@
%define rel 1
%define prefix @prefix@
%define eroot @EROOT@
%define ebin @EBIN@
Summary: Enlightenment Epplets
Name: %{name}
Version: %{ver}
Release: %{rel}
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}-%{ver}.tar.gz
BuildRoot: /var/tmp/%{name}-%{ver}
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
if [ -z "$GNOME_FRIENDLY" ]; then
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --enable-fsstd
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} \
--disable-autorespawn --enable-fsstd
fi
make
%install
make DESTDIR=$RPM_BUILD_ROOT install
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc ChangeLog
%{prefix}/include/*
%{prefix}/lib/*
%{ebin}/*
%{eroot}/epplet_icons/*
%{eroot}/epplet_data/*

View File

@ -172,6 +172,7 @@ main(int argc, char **argv)
{
Epplet_Init("E-Power", "0.1", "Enlightenment Laptop Power Epplet",
3, 3, argc, argv, 0);
atexit(Epplet_cleanup);
Epplet_timer(cb_timer, NULL, 30.0, "TIMER");
b_close = Epplet_create_button(NULL, NULL,
2, 2, 0, 0, "CLOSE", 0, NULL,