+#
+# Conditional build:
+%bcond_with mmx # use MMX instructions
+%bcond_with sse2 # use SSE2 instructions
+#
+%ifarch athlon pentium3 pentium4
+%define with_mmx 1
+%endif
+%ifarch %{x8664}
+%define with_sse2 1
+%endif
Summary: Terminal for Enlightenment
Summary(es): Terminal para Enlightenment
Summary(pl): Terminal dla Enlightenmenta
Summary(pt_BR): Eterm versão %{version}
Name: Eterm
-Version: 0.9.3
+Version: 0.9.4
Release: 1
-License: GPL
+License: BSD
Group: X11/Applications
Source0: http://www.eterm.org/download/%{name}-%{version}.tar.gz
-# Source0-md5: dd089fa7768f945341d721dd4942c702
+# Source0-md5: b8869ee9c9b9516231af9eefa595cee3
Source1: http://www.eterm.org/download/%{name}-bg-%{version}.tar.gz
# Source1-md5: e8c6567b13d7fb760bded56c1d1a181d
Source2: %{name}.desktop
Source3: Escreen.desktop
+Source4: gnome-eterm.png
Patch0: %{name}-am_fix.patch
-Patch1: %{name}-twin.patch
-Patch2: %{name}-keys-theme.patch
+Patch1: %{name}-keys-theme.patch
URL: http://www.eterm.org/
BuildRequires: autoconf >= 2.53
BuildRequires: automake
BuildRequires: freetype1-devel
BuildRequires: imlib2-devel >= 1.0.3
-BuildRequires: libast-devel >= 0.5
+BuildRequires: libast-devel >= 0.6
BuildRequires: libltdl-devel
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pcre-devel
BuildRequires: screen
+BuildRequires: sed >= 4.0
BuildRequires: twin-devel
BuildRequires: utempter-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
olhos. O Eterm usa a Imlib para trabalhar com gráficos.
%package -n Esetroot
-Summary: Sets root pixmap
+Summary: Utility to set root pixmap
Summary(pl): Aplikacja ustawiaj±ca t³o nadrzêdnego okna
Group: X11/Window Managers/Tools
%description -n Esetroot
-This program enables non-Enlightenment users to use pseudotransparency.
+This program enables non-Enlightenment users to use
+pseudotransparency.
%description -n Esetroot -l pl
-Program ten umo¿liwia u¿ytkownikom zarz±dców okien innych ni¿ Enlightenment
-korzystanie z pseudo-przezroczysto¶ci.
+Program ten umo¿liwia korzystanie z pseudoprzezroczysto¶ci
+u¿ytkownikom zarz±dców okien innych ni¿ Enlightenment.
%prep
%setup -q -a1
%patch0 -p1
%patch1 -p1
-%patch2 -p1
find themes/ -name "*.cfg*" -exec \
- sed -i 's/<Eterm-0\.9\..>/<Eterm-0.9.3>/' "{}" ";"
+ sed -i 's/<Eterm-0\.9\..>/<Eterm-%{version}>/' "{}" ";"
%build
-rm -f missing
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__automake}
%configure \
- --disable-static \
- --enable-shared \
- --enable-escreen \
- --enable-etwin \
- --enable-profile \
- --disable-stack-trace \
- --without-debugging \
- --enable-trans \
- --enable-multi-charset \
- --enable-auto-encoding \
-%ifarch athlon
- --enable-mmx
+ --disable-static \
+ --enable-shared \
+ --enable-escreen \
+ --enable-etwin \
+ --enable-escreen-fx \
+ --enable-profile \
+ --enable-trans \
+%if %{with mmx}
+ --enable-mmx \
+%else
+ --disable-mmx \
+%endif
+%if %{with sse2}
+ --enable-sse2 \
%else
- --disable-mmx
+ --disable-sse2 \
%endif
+ --enable-utmp \
+ --enable-auto-encoding \
+ --enable-multi-charset \
+ --disable-stack-trace \
+ --enable-name-reporting-escapes \
+ --without-debugging
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir},%{_desktopdir}}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir},%{_mandir},%{_desktopdir},%{_pixmapsdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}
install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
%clean
rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/*
%{_datadir}/Eterm
%{_desktopdir}/*
+%{_pixmapsdir}/*
%files -n Esetroot
%defattr(644,root,root,755)