Summary: Enlightenment Window Manager
-Summary(pl): X Window menad¿er - Enlightenment
+Summary(pl.UTF-8): Zarządca okien X - Enlightenment
Name: enlightenment
-Version: 0.16.4
+Version: 0.16.999.038
Release: 1
-License: GPL
+License: BSD
Group: X11/Window Managers
-Group(es): X11/Administraadores De Ventanas
-Group(fr): X11/Gestionnaires De Fenêtres
-Group(pl): X11/Zarz±dcy Okien
-Source0: ftp://ftp.enlightenment.org/pub/enlightenment/enlightenment/%{name}-%{version}.tar.gz
-Source1: enlightenment.desktop
-Patch0: enlightenment-config-path.patch
-Patch1: enlightenment-makefile_fix.patch
-URL: http://www.enlightenment.org/
-BuildRequires: gtk+-devel >= 1.2.1
-BuildRequires: esound-devel >= 0.2.13
-BuildRequires: imlib-devel >= 1.9.8
-BuildRequires: freetype-devel
-BuildRequires: libghttp-devel
-BuildRequires: libjpeg-devel
-BuildRequires: libpng-devel
-BuildRequires: libtiff-devel
-BuildRequires: libungif-devel
-BuildRequires: zlib-devel
-BuildRequires: fnlib-devel
+Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
+# Source0-md5: d54d8f7094b398fbd547992b8ad80cae
+Source1: %{name}-xsession.desktop
+Source2: enlightenmentDR17-wcnt.txt
+Patch0: enlightenmentDR17-module_temp_mac.patch
+URL: http://enlightenment.org/
+BuildRequires: autoconf >= 2.59-9
+BuildRequires: automake
+# ecore-evas ecore-config ecore-dbus ecore-file
+BuildRequires: ecore-devel >= 0.9.9.038
+BuildRequires: edje >= 0.5.0.038
+BuildRequires: edje-devel >= 0.5.0.038
+BuildRequires: eet-devel >= 0.9.10.038
+BuildRequires: efreet-devel
+BuildRequires: embryo-devel >= 0.9.1.038
+BuildRequires: evas-devel >= 0.9.9.038
+BuildRequires: gettext-devel >= 0.12.1
+BuildRequires: libtool
+BuildRequires: pam-devel
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+BuildRequires: xorg-lib-libXext-devel
+Requires: fonts-TTF-bitstream-vera
+Requires: vfmg >= 0.9.95
+Requires: enlightenment-theme-default = %{version}
+Requires: enlightenment-init-default = %{version}
+Requires: evas-engine-buffer >= 0.9.9.038
+Requires: evas-engine-software_x11 >= 0.9.9.038
+Requires: evas-loader-eet >= 0.9.9.038
+Requires: evas-loader-jpeg >= 0.9.9.038
+Requires: evas-loader-png >= 0.9.9.038
+Obsoletes: enlightenmentDR17 >= 0.16.999
+Obsoletes: enlightenmentDR17-libs >= 0.16.999
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _prefix /usr/X11R6
+%{expand:%%define _sysconfdir %{_sysconfdir}/X11}
+%undefine __cxx
%description
-Enlightenment is a Windowmanager for X-Windows that is designed to be
+Enlightenment is a Windowmanager for X Window that is designed to be
powerful, extensible, configurable and able to be really good looking.
-%description -l pl
-Enlightenment jest najpotê¿niejszym i najpiêkniejszym
-window-menad¿erem jaki kiedykolwiek zosta³ stworzony dla Linuxa ;)
+%description -l pl.UTF-8
+Enlightenment jest najpotężniejszym i najpiękniejszym zarządcą okien
+jaki kiedykolwiek został stworzony dla Linuksa ;)
+
+%package module-cpufreq-freqset
+Summary: CPU speed management binary
+Summary(pl.UTF-8): Program do zaządzania szybkością CPU
+Group: Applications/System
+Requires: %{name} = %{version}-%{release}
+Obsoletes: enlightenmentDR17-module-cpufreq-freqset >= 0.16.999
+
+%description module-cpufreq-freqset
+freqset makes you able to change CPU frequency using cpufreq module.
+
+It contains SUID binary.
+
+%description module-cpufreq-freqset -l pl.UTF-8
+freqset pozwala zmieniać częstotliwość pracy procesora przy użyciu
+modułu cpufreq.
+
+Zawiera binarkę SUID.
+
+%package devel
+Summary: Development headers for Enlightenment
+Summary(pl.UTF-8): Pliki nagłówkowe dla Enlightenmenta
+Group: Development/Libraries
+# by headers included in e.h
+# ecore-x ecore-evas ecore-con ecore-ipc ecore-job ecore-txt ecore-config ecore-file ecore-dbus
+Requires: ecore-devel >= 0.9.9.038
+Requires: edje-devel >= 0.5.0.038
+Requires: eet-devel >= 0.9.10.038
+Requires: efreet-devel
+Obsoletes: enlightenmentDR17-devel >= 0.16.999
+
+%description devel
+Development headers for Enlightenment.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe dla Enlightenmenta.
%prep
-%setup -q
+%setup -q
%patch0 -p1
-%patch1 -p1
%build
-LDFLAGS="-s"; export LDFLAGS
-CFLAGS="-I%{_includedir}/freetype $RPM_OPT_FLAGS"; export CFLAGS
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
- --enable-fsstd \
- --enable-sound
-
-make configdatadir=%{_sysconfdir}/X11/enlightenment
+ --disable-static \
+ --disable-valgrind \
+ --with-profile=SLOW_PC
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
+install -d $RPM_BUILD_ROOT%{_datadir}/xsessions
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
-make install \
- DESTDIR=$RPM_BUILD_ROOT \
- configdatadir=%{_sysconfdir}/X11/enlightenment
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/data/init/default.edj
+rm $RPM_BUILD_ROOT%{_datadir}/%{name}/data/themes/default.edj
-gzip -9nf AUTHORS README NEWS \
- $RPM_BUILD_ROOT%{_mandir}/man1/*
+install -d $RPM_BUILD_ROOT%{_libdir}/enlightenment/modules_extra
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/config-apps
+install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
+install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/wcnt.txt
+find $RPM_BUILD_ROOT%{_libdir}/enlightenment -name '*.la' | xargs rm
-install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties
+cd $RPM_BUILD_ROOT%{_datadir}/%{name}/data/fonts
+VERA=$(ls Vera*.ttf)
+for FONT in $VERA; do
+ rm -f $FONT
+ ln -s %{_fontsdir}/TTF/$FONT .
+done
+cd -
+
+%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING COPYING-PLAIN README TODO
+%attr(755,root,root) %{_bindir}/enlightenment
+%attr(755,root,root) %{_bindir}/enlightenment_fm
+%attr(755,root,root) %{_bindir}/enlightenment_imc
+%attr(755,root,root) %{_bindir}/enlightenment_remote
+%attr(755,root,root) %{_bindir}/enlightenment_start
+# SETUID! allows rebooting, hibernating and shutting system down
+%attr(4754,root,sys) %{_bindir}/enlightenment_sys
+%attr(755,root,root) %{_bindir}/enlightenment_thumb
+%dir %{_libdir}/enlightenment
+%dir %{_libdir}/enlightenment/modules
+%dir %{_libdir}/enlightenment/modules/*
+%dir %{_libdir}/enlightenment/modules/*/linux-gnu-*
+%attr(755,root,root) %{_libdir}/enlightenment/modules/*/linux-gnu-*/*.so
+# should be in %{_datadir} (FHS)
+%{_libdir}/enlightenment/modules/*/module.desktop
+%{_libdir}/enlightenment/modules/*/e-module-*.edj
+%dir %{_libdir}/enlightenment/modules_extra
+%dir %{_libdir}/enlightenment/preload
+%attr(755,root,root) %{_libdir}/enlightenment/preload/e_precache.so
+%dir %{_sysconfdir}/enlightenment
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/enlightenment/sysactions.conf
+%{_datadir}/%{name}
+%{_datadir}/xsessions/%{name}.desktop
+
+%files module-cpufreq-freqset
+%defattr(644,root,root,755)
+# what group should it be ?
+%attr(4754,root,sys) %{_libdir}/enlightenment/modules/cpufreq/linux-gnu-*/freqset
+
+%files devel
%defattr(644,root,root,755)
-%doc {AUTHORS,README,NEWS}.gz
-%dir %{_sysconfdir}/X11/enlightenment
-%config %{_sysconfdir}/X11/enlightenment/*
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/enlightenment
-%{_datadir}/gnome/wm-properties/*
-%{_mandir}/man1/*
+%attr(755,root,root) %{_bindir}/enlightenment-config
+%dir %{_includedir}/enlightenment
+%{_includedir}/enlightenment/*.h