37c03db
Name:			icewm
7c9fbe1
Version:		1.2.32
fa1b215
Release:		2%{?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
37c03db
Source4:		icewm-startup
37c03db
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
fa1b215
%if 0%{fedora} >= 8
7c9fbe1
BuildRequires:	popt-devel
fa1b215
%else
fa1b215
BuildRequires:	popt
7c9fbe1
%endif
7c9fbe1
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
37c03db
Requires:		redhat-artwork
37c03db
Requires:		alsa-utils
37c03db
Requires:		htmlview
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
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
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
37c03db
%{__install} -p -m 755 %{SOURCE4} $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
37c03db
%find_lang %{name}
37c03db
37c03db
37c03db
%clean
37c03db
rm -rf $RPM_BUILD_ROOT
37c03db
37c03db
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
37c03db
%{_datadir}/icewm/
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
37c03db
%changelog
fa1b215
* Mon Aug 27 2007 <gilboad[AT]gmail.com> - 1.2.32-1
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