37c03db
Name:			icewm
a4b2e28
Version:		1.2.36
a4b2e28
Release:		1%{?dist}
37c03db
Summary:		Light and configurable window manager
37c03db
37c03db
Group:			User Interface/Desktops
3d0d466
License:		LGPLv2+
37c03db
URL:			http://www.icewm.org
37c03db
Source0:		http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
37c03db
Source1:		http://lostclus.linux.kiev.ua/scripts/icewm-xdg-menu
37c03db
Source2:		icewm.desktop
a4b2e28
Source3:		icewm-startup
a4b2e28
Source4:		clearlooks.tgz
37c03db
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
24d3ea4
%if 0%{?fedora} >= 8
7c9fbe1
BuildRequires:	popt-devel
c1d80c5
Requires:		bluecurve-icon-theme
fa1b215
%else
fa1b215
BuildRequires:	popt
c1d80c5
Requires:		redhat-artwork
7c9fbe1
%endif
7c9fbe1
c1d80c5
BuildRequires:	giflib-devel
335a4d6
BuildRequires:	libXinerama-devel
37c03db
BuildRequires:	imlib-devel
37c03db
BuildRequires:	xorg-x11-proto-devel
37c03db
BuildRequires:	libXinerama-devel
37c03db
BuildRequires:	libXft-devel
37c03db
BuildRequires:	libICE-devel
37c03db
BuildRequires:	gettext
37c03db
BuildRequires:	gnome-desktop-devel
879e99c
%if 0%{?fedora} < 9
a21ef24
Requires:		xorg-x11-fonts-truetype
a4b2e28
Requires:		htmlview
a4b2e28
%else
a4b2e28
Requires:		xdg-utils
3501e9d
%endif
37c03db
Requires:		alsa-utils
37c03db
Requires:		xterm
37c03db
37c03db
Patch0:			icewm-configure.patch
37c03db
Patch1:			icewm-menu.patch
37c03db
Patch2:			icewm-toolbar.patch
37c03db
Patch3:			icewm-keys.patch
37c03db
37c03db
37c03db
%description
37c03db
IceWM is a window manager for the X Window System (freedesktop, XFree86).
37c03db
The goal of IceWM is speed, simplicity, and not getting in the user's way.
37c03db
37c03db
37c03db
%package		gnome
37c03db
Summary:		GNOME menu support for IceWM window manager
37c03db
Group:			User Interface/Desktops
37c03db
Requires:		gnome-menus
37c03db
Requires:		icewm = %{version}-%{release}
37c03db
37c03db
37c03db
%description	gnome
37c03db
IceWM-gnome adds gnome-menu support for the IceWM window manager.
37c03db
37c03db
37c03db
%package		xdgmenu
37c03db
Summary:		Automatically generate the main IceWM menu
37c03db
Group:			User Interface/Desktops
37c03db
Requires:		pyxdg
37c03db
Requires:		icewm = %{version}-%{release}
37c03db
37c03db
37c03db
%description	xdgmenu
37c03db
IceWM-xdgmenu generates static IceWM menu files from the existing
37c03db
freedesktop.org .desktop files. Files are re-generated each time the
37c03db
user logs-in.
37c03db
37c03db
a4b2e28
%package		clearlooks
a4b2e28
Summary:		Clearlooks like theme for IceWM
a4b2e28
Group:			User Interface/Desktops
a4b2e28
Requires:		ImageMagick
a4b2e28
Requires:		icewm = %{version}-%{release}
a4b2e28
a4b2e28
a4b2e28
%description	clearlooks
a4b2e28
An IceWM theme that mimics the GNOME ClearLooks theme used by
a4b2e28
older Fedora releases and RHEL.
a4b2e28
a4b2e28
37c03db
%prep
37c03db
%setup -q
37c03db
%patch0 -p1 -b .configure
37c03db
%patch1 -p1 -b .menu
37c03db
%patch2 -p1 -b .toolbar
37c03db
%patch3 -p1 -b .keys
37c03db
37c03db
37c03db
%build
37c03db
# Configure sets the CXXFLAGS to: -fpermissive -fno-exceptions -fno-rtti -Wxxx...
37c03db
# In general it doesn't seem to break anything. BZ# if you hit something bad.
37c03db
%configure --enable-gradients 					\
37c03db
			--enable-antialiasing				\
37c03db
			--enable-menus-gnome2				\
37c03db
			--disable-menus-gnome1				\
37c03db
			--with-cfgdir=%{_sysconfdir}/icewm
37c03db
make %{?_smp_mflags}
37c03db
37c03db
37c03db
%install
37c03db
rm -rf $RPM_BUILD_ROOT
37c03db
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
37c03db
37c03db
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
37c03db
%{__install} -p -m 644 doc/icewm.1.man $RPM_BUILD_ROOT/%{_mandir}/man1/icewm.1
37c03db
37c03db
%{__install} -p -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}
37c03db
a4b2e28
%{__install} -p -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/icewm/startup
37c03db
37c03db
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/xsessions/
37c03db
%{__install} -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/
37c03db
a4b2e28
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icewm/themes
a4b2e28
tar -C $RPM_BUILD_ROOT%{_datadir}/icewm/themes -xzf %{SOURCE4}
a4b2e28
a4b2e28
echo "Theme=\"clearlooks/default.theme\"" > $RPM_BUILD_ROOT%{_datadir}/icewm/theme
a4b2e28
37c03db
%find_lang %{name}
37c03db
37c03db
37c03db
%clean
37c03db
rm -rf $RPM_BUILD_ROOT
37c03db
37c03db
a4b2e28
%post clearlooks
a4b2e28
[ ! -z "$(cat /etc/issue | grep Fedora)" ] &&									\
a4b2e28
	[ -d /usr/share/icewm/themes/clearlooks ] && [ -x /usr/bin/convert ] &&		\
a4b2e28
			convert /usr/share/icons/hicolor/24x24/apps/fedora-logo-icon.png	\
a4b2e28
					/usr/share/icewm/themes/clearlooks/taskbar/icewm.xpm || echo -n
a4b2e28
[ -z "$(cat /etc/issue | grep Fedora)" ] &&										\
a4b2e28
	[ -d /usr/share/icewm/themes/clearlooks ] && [ -x /usr/bin/convert ] &&		\
a4b2e28
			convert /usr/share/pixmaps/redhat/shadowman-transparent-22.png		\
a4b2e28
					/usr/share/icewm/themes/clearlooks/taskbar/icewm.xpm || echo -n
a4b2e28
a4b2e28
37c03db
%files -f %{name}.lang
37c03db
%defattr(-,root,root,-)
37c03db
%doc AUTHORS BUGS CHANGES COPYING README README.wm-session TODO doc/*.html
37c03db
%exclude %{_datadir}/icewm/startup
a4b2e28
%{_datadir}/icewm/icons
a4b2e28
%{_datadir}/icewm/keys
a4b2e28
%{_datadir}/icewm/ledclock
a4b2e28
%{_datadir}/icewm/mailbox
a4b2e28
%{_datadir}/icewm/menu
a4b2e28
%{_datadir}/icewm/preferences
a4b2e28
%{_datadir}/icewm/startup
a4b2e28
%{_datadir}/icewm/taskbar  
a4b2e28
%{_datadir}/icewm/themes/gtk2
a4b2e28
%{_datadir}/icewm/themes/icedesert
a4b2e28
%{_datadir}/icewm/themes/Infadel2
a4b2e28
%{_datadir}/icewm/themes/metal2
a4b2e28
%{_datadir}/icewm/themes/motif
a4b2e28
%{_datadir}/icewm/themes/nice
a4b2e28
%{_datadir}/icewm/themes/nice2
a4b2e28
%{_datadir}/icewm/themes/warp3
a4b2e28
%{_datadir}/icewm/themes/warp4
a4b2e28
%{_datadir}/icewm/themes/win95
a4b2e28
%{_datadir}/icewm/themes/yellowmotif
a4b2e28
%{_datadir}/icewm/toolbar
a4b2e28
%{_datadir}/icewm/winoptions
37c03db
%{_datadir}/xsessions/icewm.desktop
37c03db
%{_mandir}/man1/icewm.1*
37c03db
%{_bindir}/icewmbg
37c03db
%{_bindir}/icehelp
37c03db
%{_bindir}/icesh
37c03db
%{_bindir}/icewm
37c03db
%{_bindir}/icewm-session
37c03db
%{_bindir}/icewmhint
37c03db
%{_bindir}/icewmtray
37c03db
37c03db
37c03db
%files gnome
37c03db
%defattr(-,root,root,-)
37c03db
%{_bindir}/icewm-menu-gnome2
37c03db
37c03db
37c03db
%files xdgmenu
37c03db
%defattr(-,root,root,-)
37c03db
%{_bindir}/icewm-xdg-menu*
37c03db
%{_datadir}/icewm/startup
37c03db
37c03db
a4b2e28
%files clearlooks
a4b2e28
%defattr(-,root,root,-)
a4b2e28
%{_datadir}/icewm/themes/clearlooks
a4b2e28
%{_datadir}/icewm/theme
a4b2e28
a4b2e28
37c03db
%changelog
a4b2e28
* Sun Jan 4 2009 Gilboa Davara <gilboad[AT]gmail.com> - 1.2.36-1
a4b2e28
- 1.2.36.
a4b2e28
- Replace htmlview with xdg-utils. (Patch by Ville Skytta).
a4b2e28
- New sub-package: Clearlook theme.
a4b2e28
3f59b70
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.35-4
3f59b70
- Autorebuild for GCC 4.3
3f59b70
879e99c
* Thu Jan 24 2008 <gilboad[AT]gmail.com> - 1.2.35-3
879e99c
- Fix broken -devel BR (truetype).
879e99c
3501e9d
* Sat Jan 19 2008 <gilboad[AT]gmail.com> - 1.2.35-2
3501e9d
- Disable xorg-x11-fonts-truetype in -devel.
3501e9d
a21ef24
* Mon Jan 14 2008 <gilboad[AT]gmail.com> - 1.2.35-1
a21ef24
- 1.2.35.
a21ef24
- Missing BR: xorg-x11-fonts-truetype. (#351811)
a21ef24
c1d80c5
* Wed Oct 09 2007 <gilboad[AT]gmail.com> - 1.2.32-5
c1d80c5
- EL-5 support.
c1d80c5
- Missing BR - libgif-devel.
c1d80c5
- Devel: Replace redhat-artwork with bluecurve-icon-theme.
c1d80c5
24d3ea4
* Sun Sep 02 2007 <gilboad[AT]gmail.com> - 1.2.32-4
24d3ea4
- Fix mangled if/else. (Again...)
24d3ea4
335a4d6
* Sat Sep 01 2007 <gilboad[AT]gmail.com> - 1.2.32-3
335a4d6
- Fix missing BR: libXinerama-devel.
335a4d6
- Fix broken source file.
335a4d6
335a4d6
* Mon Aug 27 2007 <gilboad[AT]gmail.com> - 1.2.32-2
fa1b215
- Fix bad %%{_fedora} if/else.
fa1b215
7c9fbe1
* Sun Aug 26 2007 <gilboad[AT]gmail.com> - 1.2.32-1
7c9fbe1
- Fixed license tag.
7c9fbe1
- Fixed F8 BR - popt-devel.
7c9fbe1
- Remove APMstatus fix.
7c9fbe1
- 1.2.32
7c9fbe1
7c9fbe1
* Mon Apr 09 2007 <gilboad[AT]gmail.com> - 1.2.30-13
352edbb
- APMStatus crash fix. (Icewm #1696182)
352edbb
7c9fbe1
* Sat Feb 10 2007 <gilboad[AT]gmail.com> - 1.2.30-12
37c03db
- Add missing dot in the -gnome sub-package description.
37c03db
- Replace REQ icewm (in both -gnome and -xdgmenu) with icewm-x.x.x.
37c03db
- Fix -xdgmenu file list and %%install section.
37c03db
- Preserve the source time-stamp.
37c03db
7c9fbe1
* Sun Feb 04 2007 <gilboad[AT]gmail.com> - 1.2.30-11
37c03db
- Remove .Xdefaults fix from startup. (reported upstream).
37c03db
- Replace buildroot with RPM_BUILD_ROOT.
37c03db
7c9fbe1
* Sun Jan 28 2007 <gilboad[AT]gmail.com> - 1.2.30-10
37c03db
- Missing REQ: icewm (both -gnome and -xdgmenu)
37c03db
- Updated menu.in patch.
37c03db
- Updated startup script. (-xdgmenu)
37c03db
- Updated icewm-xdg-menu script. (-xdgmenu)
37c03db
7c9fbe1
* Thu Jan 25 2007 <gilboad[AT]gmail.com> - 1.2.30-9
37c03db
- Remove redundant icewm-xdg-menu* %%file entry.
37c03db
- Change sub-package name to xdgmenu.
37c03db
- Move icewm-xdg-menu to xdgmenu sub-package.
37c03db
- Removed the icewm-generate-menu script.
37c03db
7c9fbe1
* Sat Jan 20 2007 <gilboad[AT]gmail.com> - 1.2.30-8
37c03db
- Fix source1 URL. (2nd is a winner)
37c03db
- Fix -gnome summery.
37c03db
- New sub-package: icewm-xdg-menu
37c03db
- ALPHA: icewm-generate-menu script added to use icewm-xdg-menu to generate static menus.
37c03db
7c9fbe1
* Sat Jan 20 2007 <gilboad[AT]gmail.com> - 1.2.30-7
37c03db
- Fix source1 URL.
37c03db
- Fix xdg-menu* owner.
37c03db
- Replace default terminal icon to reduce dep-chain.
37c03db
- Fix icewm-gnome description.
37c03db
- Replace install with %%{_install}
37c03db
- Push -gnome's BR to main package.
37c03db
- Change hard-coded sysconf path.
37c03db
7c9fbe1
* Tue Jan 18 2007 <gilboad[AT]gmail.com> - 1.2.30-6
37c03db
- Change license back to LGPL.
37c03db
- Change summery.
37c03db
- New sub-package: -gnome. (GNOME menu support.)
37c03db
- Missing REQ: xterm.
37c03db
- Missing REQ: htmlview.
37c03db
- Remove redundant %%_sysconf section.
37c03db
- Remove redundant redhat-xxx icons.
37c03db
- New REQ: redhat-artwork. (icons)
37c03db
- Better man pages handling.
37c03db
- Customize keys to better match fedora.
37c03db
- New REQ: eject. (keys)
37c03db
- New REQ: alsautils. (keys)
37c03db
7c9fbe1
* Wed Jan 17 2007 <gilboad[AT]gmail.com> - 1.2.30-5
37c03db
- Fix Source0 URL.
37c03db
- Replace cp with install.
37c03db
- Do not gzip the man page, just copy it.
37c03db
- Use htmlview instead of firefox.
37c03db
- Use BlueCurve icons instead of the mozilla ones.
37c03db
- Re-fix lang support.
37c03db
- Return the default configuration files to %%_datadir
37c03db
- Add gdm session support.
37c03db
- Remove gnome-menus from default menu - replace it with pyxdg/icewm-xdg-menu.
37c03db
7c9fbe1
* Tue Jan 16 2007 <gilboad[AT]gmail.com> - 1.2.30-4
37c03db
- Fix man page name.
37c03db
- Remove missing menu items.
37c03db
- Convert GNOME-menu patch to configure.in patch.
37c03db
- Push default configuration into /etc/icewm
37c03db
- Remove the default KDE support. (At least for now)
37c03db
- Require firefox (default browser in Fedora).
37c03db
- Add missing firefox icon. (No source - manual convert)
37c03db
- Add missing gnome-menus. (required for GNOME2 menus)
37c03db
- Fix missing gettext BR.
37c03db
- Fix missing lang support.
37c03db
7c9fbe1
* Sat Jan 13 2007 <gilboad[AT]gmail.com> - 1.2.30-3
37c03db
- Fix wrong license. (Was LGPL, should be GPL.)
37c03db
7c9fbe1
* Tue Jan 11 2007 <gilboad[AT]gmail.com> - 1.2.30-2
37c03db
- Manually add missing man page.
37c03db
7c9fbe1
* Tue Jan 11 2007 <gilboad[AT]gmail.com> - 1.2.30-1
37c03db
- Initial release.
37c03db