Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 668b54c8a27dca9a3dc64bd3252968ff > files > 10

enlightenment-0.16.7.1-2mdk.src.rpm

%define name	enlightenment
%define Name	Enlightenment
%define theme_version 0.16
%define doc_version 0.16.7
%define version	0.16.7.1
%define release	2mdk
%define Summary	The Enlightenment window manager
%define prefix	%{_prefix}/X11R6
%define bindir	%{prefix}/bin
%define datadir	%{prefix}/share
%define mandir	%{prefix}/man

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	%{Summary}
License:	GPL
Group:		Graphical desktop/Enlightenment
BuildRequires:  XFree86 XFree86-devel
BuildRequires:  esound-devel
BuildRequires:  freetype-devel
BuildRequires:  imlib2-devel
BuildRequires:  texinfo
BuildRequires:  ImageMagick
Source0:	http://prdownloads.sourceforge.net/enlightenment/%{name}-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/enlightenment/%{name}-docs-%{doc_version}.tar.bz2
Source2:	http://prdownloads.sourceforge.net/enlightenment/%{name}-theme-BlueSteel-%{theme_version}.tar.bz2
Source3:	http://prdownloads.sourceforge.net/enlightenment/%{name}-theme-BrushedMetal-Tigert-%{theme_version}.tar.bz2
Source4:	http://prdownloads.sourceforge.net/enlightenment/%{name}-theme-Ganymede-%{theme_version}.tar.bz2
Source5:	http://prdownloads.sourceforge.net/enlightenment/%{name}-theme-ShinyMetal-%{theme_version}.tar.bz2
Source6:	%{name}-menu.method.bz2 
Source7:	%{name}.png
# this overrides some themes' *.cfg files with other slightly modified to
# use fontsets, and so be able to display text in any language
# the files inside that tarball may need to be modified or new added if the
# themes' files from the Enlightenment sources change -- pablo
Source8:	enlightenment-0.16.5-themes-i18n.tar.bz2  
Requires:	ImageMagick >= 4.2.9
#Requires:	enlightenment-conf
URL:		http://www.enlightenment.org/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Enlightenment is a window manager for the X Window System that is designed to
be powerful, extensible, configurable and pretty darned good looking! It is one
of the more graphically intense window managers.

Enlightenment goes beyond managing windows by providing a useful and appealing
graphical shell from which to work. It is open in design and instead of
dictating a policy, allows the user to define their own policy, down to every
last detail.

This package will install the Enlightenment window manager.

%prep
%setup -q
%setup -q -a 1 -a 2 -a 3 -a 4 -a 5

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=%{prefix} \
            --libdir=%{prefix}/lib \
	    --enable-fsstd \
	    --enable-sound \
	    --enable-upgrade \
	    --enable-zoom 

for i in BlueSteel BrushedMetal-Tigert Ganymede ShinyMetal; do
cd %{name}-theme-$i-%{theme_version};
./configure --prefix=%{prefix}
cd ..
done;

cd %{name}-docs-%{doc_version}
./configure --prefix=%{prefix}
cd ..
%make

%install
rm -rf $RPM_BUILD_ROOT
##fixed upstream
# $USER must exist in order for the install to work.
#if [ -ne ${USER} ]; then export USER=$LOGNAME; fi

##build will fail if not done in this manner--CAE##
%makeinstall_std

ln -s /usr/X11R6/bin/edox $RPM_BUILD_ROOT/usr/X11R6/bin/dox
# Menu
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11/enlightenment/menus
perl -lwne '/^__E_CFG_VERSION 0$/ and print("$_\n\n", qw@BEGIN_NEW_FILE_MENU("LINUX-MANDRAKE_MENU", "ROOT", "/etc/X11/enlightenment/menus/mandrake.menu")@, "\nEND_MENU") or /^ADD_MENU_SUBMENU_TEXT_ITEM.*APPS_SUBMENU/ and print("$_\n", qw@ADD_MENU_SUBMENU_TEXT_ITEM("Applications",        "LINUX-MANDRAKE_MENU")@) or print;' config/menus.cfg > $RPM_BUILD_ROOT%{datadir}/enlightenment/config/menus.cfg

# Menu method
install -d 644 $RPM_BUILD_ROOT%{_sysconfdir}/menu-methods
bzcat %SOURCE6 > $RPM_BUILD_ROOT%{_sysconfdir}/menu-methods/%{name}
chmod a+x $RPM_BUILD_ROOT%{_sysconfdir}/menu-methods/%{name}

# Install icons
install -d 644 $RPM_BUILD_ROOT%{_miconsdir}
install -d 644 $RPM_BUILD_ROOT%{_iconsdir}
install -d 644 $RPM_BUILD_ROOT%{_liconsdir}
install -m 644 %SOURCE7 $RPM_BUILD_ROOT%{_miconsdir}
convert %SOURCE7 -geometry 32x32 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
convert %SOURCE7 -geometry 48x48 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

install -d 644 $RPM_BUILD_ROOT%{_menudir}
cat  >$RPM_BUILD_ROOT%{_menudir}/%{name} <<EOF
?package(%{name}):\\
	command="%{bindir}/%{name}"\\
	needs="wm"\\
	section="Session/Windowmanagers"\\
	icon="%{name}.png"\\
	title="%{Name}"\\
	longtitle="%{Summary}"
EOF

install -d 644 $RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d
cat >$RPM_BUILD_ROOT%{_sysconfdir}/X11/wmsession.d/04Enlightenment <<EOF
NAME=%{Name}
DESC=%{Summary}
EXEC=%{bindir}/enlightenment
SCRIPT:
exec %{bindir}/enlightenment
EOF


for i in BlueSteel BrushedMetal-Tigert Ganymede ShinyMetal; do
cd %{name}-theme-$i-%{theme_version};
%makeinstall_std
cd ..
done;

for i in $RPM_BUILD_ROOT//usr/X11R6/%{name}/themes/* ; do 
#	rm -Rf $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/${i##*/}
	mv -f $i $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/
done

# overwrite some themes' files with i18n'ed ones
bzcat %SOURCE8 | tar xvf - -C $RPM_BUILD_ROOT%{datadir}/enlightenment


cd %{name}-docs-%{doc_version}
%makeinstall_std
cd ..

mv -f $RPM_BUILD_ROOT/usr/X11R6/enlightenment/E-docs/ $RPM_BUILD_ROOT/%{datadir}/%{name}
#rm some empty theme files
rm -fr $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/BlueSteel/sound/sound.cfg
rm -fr $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/BlueSteel/slideouts/slideouts.cfg
rm -fr $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/BrushedMetal-Tigert/slideouts/slideouts.cfg
rm -fr $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/BrushedMetal-Tigert/buttons/buttons.cfg
rm -rf $RPM_BUILD_ROOT/%{datadir}/%{name}/themes/BlueSteel/buttons/buttons.cfg
rm -rf `find $RPM_BUILD_ROOT -name .xvpics`

%find_lang %{name}
rm -f $RPM_BUILD_ROOT/usr/X11R6/etc/X11/dm/Sessions/enlightenment.desktop

%post
if [ -x /etc/menu-methods/enlightenment.rpm* ]; then
   chmod a-x /etc/menu-methods/enlightenment.rpm*
fi
%update_menus
%make_session

%postun
if [ -x /etc/menu-methods/enlightenment.rpm* ]; then
   chmod a-x /etc/menu-methods/enlightenment.rpm*
fi
%clean_menus
%make_session

%clean
rm -fr $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root,755)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog FAQ INSTALL README COMPLIANCE NEWS 
%doc sample-scripts
%config(noreplace) %{_sysconfdir}/menu-methods/%{name}
%dir %{_sysconfdir}/X11/enlightenment
%config %{_sysconfdir}/X11/enlightenment/menus
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/*
%{bindir}/*
%{mandir}/man1/*
%{datadir}/%{name}
%{_menudir}/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

%changelog
* Mon Sep 20 2004 Michael Scherer <misc@mandrake.org> 0.16.7.1-2mdk 
- add a symlink to dox, for epplet

* Thu Aug 26 2004 Michael Scherer <misc@mandrake.org> 0.16.7.1-1mdk  
- new version
- huge changes in the spec.

* Fri May 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.16.6-3mdk
- fix buildrequires
- change summary macro to avoid conflicts if we were to build debug package

* Sun Jan 18 2004 Olivier Blin <blino@mandrake.org> 0.16.6-2mdk
- removed redundant Requires

* Mon Dec 08 2003 Guillaume Rousse <guillomovitch@mandrake.org> 0.16.6-1mdk
- removed packager tag
- dropped compatibility mess
- more macros
- contributed by Charles A Edwards <eslrahc@bellsouth.net>
 - 0.16.6
 - convert source 6 to .png, drop source7 and use ImageMagick
 - drop patches 0, 1, 2, and 3 (intregated upstream)
 - drop $USER
 - add docs

* Mon Sep 22 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 0.16.5-15mdk
- fix deps

* Thu Sep 04 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.16.5-14mdk
- Fix buildrequires

* Tue Jun 24 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.16.5-13mdk
- get rid of .xvpics
- rm -rf $RPM_BUILD_ROOT at the beginning of %%install

* Sat Jun 22 2002 Stefan van der Eijk <stefan@eijk.nu> 0.16.5-12mdk
- BuildRequires
- set USER environment to enable unattended build

* Wed Mar 06 2002 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-11mdk
- Re-add menu icons

* Tue Mar 05 2002 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-10mdk
- chmod a-x /etc/menu-methods/enlightenment.rpm* if they exist

* Sat Mar 02 2002 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-9mdk
- Fix menu-method

* Sat Mar 02 2002 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-8mdk
- Requires: enlightenment-conf
- Temporary disable icons in menu

* Mon Jan 07 2002 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-7mdk
- Rebuild

* Wed Dec 19 2001 Yves Duret <yduret@mandrakesoft.com> 0.16.5-6mdk
- rebuild against libpng3

* Sun Apr 08 2001 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-5mdk
- Fix chksession entry (%%{prefix} doesn't mean /usr)
- Fix PATH in enlightenment.install script

* Sat Jan 27 2001 Stefan van der Eijk <s.vandereijk@chello.nl> 0.16.5-4mdk
- fix BuildRequires (fnlib-devel --> libfnlib0-devel)

* Thu Dec 28 2000 Pablo Saratxaga <pablo@mandrakesoft.com> 0.16.5-3mdk
- included properly translation catalog files
- added fontset support by default

* Wed Dec 13 2000 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-2mdk
- Move in /usr/X11R6
- Spec clean up and Q.A. stuff

* Fri Nov 10 2000 David BAUDENS <baudens@mandrakesoft.com> 0.16.5-1mdk
- 0.16.5

* Wed Oct 25 2000 Frederic Crozat <fcrozat@mandrakesoft.com> 0.16.4-7mdk
- Correct bug 685

* Tue Oct 24 2000 Daouda Lo <daouda@mandrakesoft.com> 0.16.4-6mdk
- fix the entry in /etc/X11/wmsession.d 

* Wed Sep 27 2000 Daouda Lo <daouda@mandrakesoft.com> 0.16.4-5mdk
- some macrozifications 
- add menu icons

* Wed Sep 27 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.16.4-4mdk
- entry in /etc/X11/wmsession.d
- correct dirrectories perms.

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.16.4-3mdk
- automatically added BuildRequires

* Fri Jul 28 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.16.4-2mdk
- macroszifications
- rebuild for the BM

* Wed Jun 28 2000 dam's <damien@mandrakesoft.com> 0.16.4-1mdk
- update to 16.4
- changed the default theme (not removing it anymore)

* Wed Jun  7 2000 Pixel <pixel@mandrakesoft.com> 0.16.3-12mdk
- rebuild with new fnlib

* Thu May 11 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 0.16.3-11mdk
- fixed group

* Fri Apr 28 2000 dam's <damine@mandrakesoft.com> 0.16.3-10mdk
- added fndSession call.

* Mon Apr 10 2000 DindinX <odin@mandrakesoft.com> 0.16.3-9mdk
- Menu key support
- specs cleanup

* Tue Apr  4 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.16.3-8mdk
- fix menu method and added i18n support.
- moved /etc/enlightenment to /etc/X11/enlightenment

* Mon Apr  3 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.16.3-7mdk
- Adjust groups.
- I need a new job my god, fix another error (chmod +x the
  menu-method).

* Sat Apr  1 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.16.3-6mdk
- Ok this time fix all rpmlint warning and reuploading.

* Sat Apr  1 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 0.16.3-5mdk
- Add menu support.

* Mon Dec 27 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- add requires ImageMagick >= 4.2.9 (for e_menu*, and yes i know)
- add esound-devel to BuildPreReq
- Default theme BlueSteel
- re-move BrushedMetal-Tigert, and ShinyMetal (running out of space, they're in ethemes)
- Remove all but the last @redhat.com entry in the rpm changelog (4 pages of it, and my pages aren't small)
- some other general clean-ups of the .spce file

* Thu Dec 16 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- fix enlightenment.install

* Mon Nov 22 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- 0.16.3
- export EBIN, and EROOT
- (and perl patch the stupid enlightenment.install, till they fix autoconf)

* Sun Oct 31 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- SMP build macro
- 0.16.1 :
	- use e_gen menus (i'll hack these for Mandrake once they quit changeing it)
	- No more Linux-Mandrake etheme (I no longer have time to maintain it)
	- Keybindings/Theme per default
- Probably something else I am forgetting :/

* Wed Sep 22 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Add BuildPreReq (before i forget again)
- 0.16.devel.9 : 
	- lots of fixes
	- lots of kde work
	- New theme, Ganymede
- keybindings.cfg :
	- Apparently we weren't gnome compliant
	- Button 3 (rightmouse) reserved for gmc
	- E config menu on 'alt button 2'
	- E main menu on button 2 and alt button 3

* Sun Sep 12 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- 0.16.devel.6 : fixes 129% load, drop apps between pagers, and others 

* Tue Aug 31 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Redid Linux-Mandrake theme to meet new eTheme guidelines. (Standarization is a good thing)
- Latest CVS :
	* Fixes Segfault when paramlist to long for "Remeeber state" (Long standing bug. Yay!)
	* More KDE support

* Tue Aug 24 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Update snapshot 0.16.devel.5 : kfm runs without -no-KDE-compliant-window-manager
 	(Mad props to the E coders thanks)
- menus.cfg :
	* Check for communicator, if not there don't show netscape mail in quick apps
	* Xmms in quick apps
	* Gmc and Kfm in quick apps
	* Kde/menus add "Restart with KDE"
	* Gnome/menus add "Restart with GNOME"
	* Enlightenment/menus add MagicBG under desktop with the other Special effects

* Mon Aug 02 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Update snapshot 0.16.devel.4
- Add Linux-Mandrake etheme
- Add GTK+ For Enlightenment Theme, its clean it's fast it's what i based the mdk theme on
- keybindings.cfg :
	* Main menu on right desktop click
- control.cfg :
	* include linux-mandrake.cfg
- linux-mandrake.cfg :
	* defines icons used in menus
- menus.cfg :
	* Mandrakesoft menu
	* KDE menu
	* Moved Enlightenment items to seperate menus

* Thu Jul 12 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Update cvs snapshot, (signifigant changes finally)
- use "correct macro" for bzip2 manpages
- versionate mdk configs to make modifying easier
- Set theme to Brushed metal (It talks what more could you ask for)
- menus.cfg :
	* Add Gatos xatitv/xatitvfb to apps
	* Add Kmail (TODO: add a full KDE submenu)
	* Backgrounds, add System and User sections
	* Add Raindrops and Waves special effects
	* Add Config submenu (0.16 feature)
- keybindings.cfg :
	* Disabled allow any modifier so as to not any muck-up custom bindings
	* alt-left = Other apps (TODO: seperate main menu into more subs it's going to get clutered)
	* alt-right = Settings menu
	* alt-middle/double = Main menu (Pastes are easier this way)

* Thu Jun 01 1999 Axalon Bloodstone <axalon@linux-mandrake.com>
- Updated to the 0.16.devel.2 snapshot 

* Tue May 11 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Remove the irrating sky tooltips.

* Sat Apr 24 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>
- Mandrake adatations.
- Stripping again.

* Mon Apr 05 1999 Michael Fulbright <drmike@redhat.com>
- version 0.15.5 plus semisolid drag fix
- made CleanBig the default theme