bae53e3
Name:		openbox
d9745cc
Version:	3.4.8
d9745cc
Release:	1%{?dist}
bae53e3
Summary:	A highly configurable and standards-compliant X11 window manager
bae53e3
bae53e3
Group:		User Interface/Desktops
49fe2d1
License:	GPLv2+
bae53e3
URL:		http://icculus.org/openbox
836a0fc
Source0:	http://icculus.org/openbox/releases/%{name}-%{version}.tar.gz
606a31a
Source1:	http://icculus.org/openbox/tools/setlayout.c
3f61e81
Source2:	xdg-menu
3f61e81
Source3:	menu.xml
aaa05d1
Source4:	openbox.desktop
bae53e3
394bf5b
Patch0:		openbox-3.4.7.1-autostartdir.patch
d9745cc
Patch1:		openbox-3.4.8-gdm.patch
d9745cc
Patch2:		openbox-3.4.8-gnomesession.patch
5eb489f
Patch3:		openbox-3.4.7.2-autostartid.patch
625f4a8
Patch4:		openbox-3.4.7.2-24bit.patch
d9745cc
Patch5:		openbox-3.4.8-xdgautostart.patch
394bf5b
bae53e3
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bae53e3
05ad677
Requires:	%{name}-libs = %{version}-%{release}
bae53e3
bbbf3fa
# The xdg-menu dynamic pipe menu requires the gmenu Python module
bbbf3fa
Requires:	gnome-menus
bbbf3fa
bae53e3
BuildRequires:	gettext
aaa05d1
BuildRequires:	desktop-file-utils
bae53e3
BuildRequires:	pango-devel
99d3ea4
BuildRequires:	startup-notification-devel
bae53e3
BuildRequires:	libxml2-devel
50f71f2
BuildRequires:	libXcursor-devel
bae53e3
BuildRequires:	libXt-devel
bae53e3
BuildRequires:	libXrandr-devel
bae53e3
BuildRequires:	libXinerama-devel
bae53e3
bae53e3
%description
bae53e3
Openbox is a window manager designed explicity for standards-compliance and
bae53e3
speed. It is fast, lightweight, and heavily configurable (using XML for its
bae53e3
configuration data). It has many features that make it unique among window
bae53e3
managers: window resistance, chainable key bindings, customizable mouse
bae53e3
actions, multi-head/Xinerama support, and dynamically generated "pipe menus."
bae53e3
bae53e3
For a full list of the FreeDesktop.org standards with which it is compliant,
bae53e3
please see the COMPLIANCE file in the included documentation of this package. 
bae53e3
For a graphical configuration editor, you'll need to install the obconf
e062f7c
package. For a graphical menu editor, you'll need to install the obmenu
bae53e3
package.
bae53e3
bae53e3
bae53e3
%package	devel
bae53e3
Summary:	Development files for %{name}
bae53e3
Group:		Development/Libraries
99d3ea4
Requires:	%{name}-libs = %{version}-%{release}
bae53e3
Requires:	pkgconfig
50f71f2
Requires:	pango-devel
bae53e3
Requires:	libxml2-devel
bae53e3
Requires:	glib2-devel
bae53e3
bae53e3
%description	devel
bae53e3
The %{name}-devel package contains libraries and header files for
bae53e3
developing applications that use %{name}.
bae53e3
bae53e3
99d3ea4
%package	libs
99d3ea4
Summary:	Shared libraries for %{name}
99d3ea4
Group:		Development/Libraries
99d3ea4
99d3ea4
%description	libs
99d3ea4
The %{name}-libs package contains shared libraries used by %{name}.
99d3ea4
99d3ea4
bae53e3
%prep
836a0fc
%setup -q
394bf5b
%patch0 -p1 -b .autostartdir
be11092
%patch1 -p1 -b .gdm
5eb489f
%patch2 -p1 -b .gnomesession
5eb489f
%patch3 -p1 -b .autostartid
625f4a8
%patch4 -p1 -b .24bit
d9745cc
%patch5 -p1 -b .xdgautostart
bae53e3
bae53e3
bae53e3
%build
99d3ea4
%configure \
99d3ea4
	--disable-static
99d3ea4
## Fix RPATH hardcoding.
99d3ea4
sed -ie 's|^hardcode_libdir_flag_spec=.*$|hardcode_libdir_flag_spec=""|g' libtool
99d3ea4
sed -ie 's|^runpath_var=LD_RUN_PATH$|runpath_var=DIE_RPATH_DIE|g' libtool
bae53e3
make %{?_smp_mflags}
bae53e3
394bf5b
gcc %{optflags} -o setlayout %{SOURCE1} -lX11
bae53e3
bae53e3
%install
bae53e3
rm -rf %{buildroot}
bae53e3
make install DESTDIR=%{buildroot}
3f61e81
606a31a
install setlayout %{buildroot}%{_bindir}
3f61e81
install -p %{SOURCE2} %{buildroot}%{_datadir}/%{name}/xdg-menu
3f61e81
sed 's|_XDGMENU_|%{_datadir}/%{name}/xdg-menu|g' < %{SOURCE3} \
3f61e81
	> %{buildroot}%{_sysconfdir}/xdg/%{name}/menu.xml
606a31a
aaa05d1
desktop-file-install --vendor="" \
aaa05d1
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
aaa05d1
        %{SOURCE4}
aaa05d1
bae53e3
%find_lang %{name}
50f71f2
rm -f %{buildroot}%{_libdir}/*.la
50f71f2
rm -rf %{buildroot}%{_datadir}/doc/%{name}
bae53e3
bae53e3
bae53e3
%clean
bae53e3
rm -rf %{buildroot}
bae53e3
bae53e3
bae53e3
%files -f %{name}.lang
bae53e3
%defattr(-,root,root,-)
bae53e3
%doc AUTHORS CHANGELOG COMPLIANCE COPYING README
3f61e81
%doc data/*.xsd data/menu.xml doc/rc-mouse-focus.xml
50f71f2
%dir %{_sysconfdir}/xdg/%{name}/
50f71f2
%config(noreplace) %{_sysconfdir}/xdg/%{name}/*
bae53e3
%{_bindir}/gnome-panel-control
394bf5b
%{_bindir}/gdm-control
50f71f2
%{_bindir}/%{name}*
606a31a
%{_bindir}/setlayout
aaa05d1
%{_datadir}/applications/*%{name}.desktop
aaa05d1
%{_datadir}/%{name}
bae53e3
%{_datadir}/themes/*/
bae53e3
%{_datadir}/pixmaps/%{name}.png
7719936
%{_datadir}/gnome/wm-properties/
50f71f2
%{_datadir}/xsessions/%{name}*.desktop
50f71f2
%{_mandir}/man1/%{name}*.1*
bae53e3
99d3ea4
%files	libs
99d3ea4
%{_libdir}/libobrender.so.*
99d3ea4
%{_libdir}/libobparser.so.*
bae53e3
99d3ea4
%files	devel
bae53e3
%{_includedir}/%{name}/
bae53e3
%{_libdir}/libobrender.so
bae53e3
%{_libdir}/libobparser.so
bae53e3
%{_libdir}/pkgconfig/*.pc
bae53e3
bae53e3
99d3ea4
%post libs -p /sbin/ldconfig
bae53e3
bae53e3
99d3ea4
%postun libs -p /sbin/ldconfig
bae53e3
bae53e3
bae53e3
%changelog
d9745cc
* Thu Dec 10 2009 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.8-1
d9745cc
- Update to 3.4.8
d9745cc
- Fix crash in xdg-autostart on desktop files with TryExec (#544006)
d9745cc
625f4a8
* Tue Sep 22 2009 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-11
625f4a8
- Add support for 24-bit images (#524708)
625f4a8
- Update setlayout.c
625f4a8
4a2de01
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.7.2-10
4a2de01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4a2de01
bbbf3fa
* Mon Jul 20 2009 Luke Macken <lmacken@redhat.com> - 3.4.7.2-8
bbbf3fa
- Require the gnome-menus package to get our xdg-menu dynamic pipe menu
bbbf3fa
  to work out of the box.
bbbf3fa
57b1df6
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4.7.2-8
57b1df6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
57b1df6
5eb489f
* Tue Dec 09 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-7
5eb489f
- Restore gnome session script (#474143)
5eb489f
- Use DESKTOP_AUTOSTART_ID to avoid gnome-session registration timeout
5eb489f
aaa05d1
* Thu Oct 02 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-6
aaa05d1
- Drop gnome session script (gnome-session no longer supports $WINDOW_MANAGER)
aaa05d1
- Add application desktop file to allow starting openbox in gnome-session
aaa05d1
  when configured in gconf
aaa05d1
87075b8
* Thu Sep 04 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-5
87075b8
- Don't use --choose-session option in gnome session script
87075b8
578b9cd
* Fri Aug 01 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-4
578b9cd
- Remove field codes from commands in xdg-menu (#452403)
578b9cd
- Add support for launching applications in xterm to xdg-menu
578b9cd
be11092
* Tue Jun 10 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-3
be11092
- Clean up properties after gdm in session scripts (#444135)
be11092
- Add license to xdg-menu script
be11092
bf801a6
* Tue May 20 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-2
bf801a6
- Drop numdesks patch (#444135)
bf801a6
3f61e81
* Wed May 14 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-1
3f61e81
- Update to 3.4.7.2
3f61e81
- Use gnome menus by default (Luke Macken) (#443548)
3f61e81
- Force setting number of desktops (#444135)
3f61e81
394bf5b
* Thu Apr 17 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.1-1
394bf5b
- Update to 3.4.7.1
394bf5b
- Don't require /usr/share/themes
394bf5b
78ff601
* Wed Feb 06 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.6.1-1
78ff601
- Update to 3.4.6.1
78ff601
1c9d626
* Sun Feb 03 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.6-1
1c9d626
- Update to 3.4.6
1c9d626
e2dccec
* Mon Jan 07 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.5-1
e2dccec
- Update to 3.4.5
e2dccec
1546b30
* Wed Aug 22 2007 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.4-2
1546b30
- Rebuild
1546b30
49fe2d1
* Sun Aug 05 2007 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.4-1
49fe2d1
- Update to 3.4.4
49fe2d1
- Update license tag
49fe2d1
606a31a
* Mon Jul 23 2007 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.3-1
606a31a
- Update to 3.4.3
606a31a
- Package setlayout tool
606a31a
50f71f2
* Wed Jun 13 2007 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.2-1
50f71f2
- Update to 3.4.2
50f71f2
7719936
* Mon Jun 04 2007 Peter Gordon <peter@thecodergeek.com> - 3.3.1-7
7719936
- Own %%{_datadir}/gnome/wm-properties instead of depending on gnome-session
7719936
  in order to reduce dependency bloat. (Resolves bug 242339; thanks to Miroslav
7719936
  Lichvar for the bug report.) 
7719936
99d3ea4
* Tue Mar 27 2007 Peter Gordon <peter@thecodergeek.com> - 3.3.1-6
99d3ea4
- Split shared libraries into a -libs subpackage to properly handle multilib
99d3ea4
  setups. (This precludes the further need to %%ghost the byte-compiled
99d3ea4
  themeupdate scripts which was introduced in the previous release.)
e8fbb26
- Fix handling of the startup_notification build conditional. It will actually
99d3ea4
  work properly now. :)
99d3ea4
- Remove the hardcoded RPATH using some sed invocations from the packaging
99d3ea4
  guidelines. 
99d3ea4
3122088
* Mon Feb 12 2007 Peter Gordon <peter@thecodergeek.com> - 3.3.1-5
3122088
- %%ghost the byte-compiled themeupdate scripts to fix multilib conflict
3122088
  (bug #228379).
3122088
ce1f952
* Thu Nov 23 2006 Peter Gordon <peter@thecodergeek.com> - 3.3.1-4
ce1f952
- Don't own %%{_datadir}/gnome/wm-properties anymore, as that's now owned
ce1f952
  by gnome-session in Rawhide and we should not have ownership conflicts with
ce1f952
  Core packages.
ce1f952
ac6658d
* Mon Oct 02 2006 Peter Gordon <peter@thecodergeek.com> - 3.3.1-3
ac6658d
- Rebuild to pick up unwind info generation fixes in new GCC
ac6658d
963a48a
* Wed Sep 20 2006 Peter Gordon <peter@thecodergeek.com> - 3.3.1-2
963a48a
- Allow building with startup-notification as an rpmbuild option (though it is
963a48a
  disabled by default as recommended by upstream).
963a48a
50da897
* Sun Sep 09 2006 Peter Gordon <peter@thecodergeek.com> - 3.3.1-1
d44bf67
- Update to new 3.3.1 from upstream
d44bf67
5c763c9
* Sun Aug 27 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-3
5c763c9
- Mass FC6 rebuild
5c763c9
a0a9447
* Sat Aug 26 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-2
a0a9447
- Bump release to fix sources tagging issue
a0a9447
836a0fc
* Sat Aug 26 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-1
836a0fc
- Update to 3.3 final release from upstream
836a0fc
- Remove the slew of versioning macros, as it's overkill for this and just adds
836a0fc
  unneeded complexity to the spec.
836a0fc
66896cb
* Wed Jun 28 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.8.rc2.1
66896cb
- Add missing BuildRequires: libXxf86vm-devel
66896cb
c000a76
* Wed Jun 28 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.8.rc2
c000a76
- Unconditionalize the BuildRequires for modular X.org, since it's branched
c000a76
  for a specific Fedora release. 
c000a76
bae53e3
* Mon Jun 26 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.7.rc2
bae53e3
- Own the %%{_datadir}/gnome/wm-properties directory (#195292)
bae53e3
bae53e3
* Fri Jun 23 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.6.rc2
bae53e3
- Add %%{_datadir}/themes to Requires (#195292)
bae53e3
bae53e3
* Tue Jun 20 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.5.rc2
bae53e3
- Own all created theme directories (#195292)
bae53e3
- Fix previous review bug IDs in this %%changelog to point to the recreated
bae53e3
  review bug (due to recent bugzilla outage) 
bae53e3
bae53e3
* Sun Jun 18 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.4.rc2
bae53e3
- Don't default to an executable xsession script (#195292)
bae53e3
bae53e3
* Mon Jun 12 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.3.rc2 
bae53e3
- Fix versioning to conform to the Extras packaging guidelines
bae53e3
bae53e3
* Mon Jun 12 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.rc2.2 
bae53e3
- Add %%{_datadir}/xsessions .desktop file for easy selection of Openbox at
bae53e3
  login screen (#195292)
bae53e3
bae53e3
* Fri Jun 09 2006 Peter Gordon <peter@thecodergeek.com> - 3.3-0.rc2.1 
bae53e3
- Unorphan, rewriting nearly all of the spec file
bae53e3
- Update to upstream 3.3 RC2
bae53e3
bae53e3
* Sun Jul 27 2003 Chris Ricker <kaboom@gatech.edu> 0:2.3.1-0.fdr.5
bae53e3
- Need to own /etc/X11/gdm/Sessions && /etc/X11/gdm (#440)
bae53e3
- Need to conflict with fluxbox (#422 / #440)
bae53e3
bae53e3
* Tue Jul 22 2003 Chris Ricker <kaboom@gatech.edu> 0:2.3.1-0.fdr.4
bae53e3
- Need to own /usr/share/apps/switchdesk (#422)
bae53e3
bae53e3
* Mon Jul 21 2003 Chris Ricker <kaboom@gatech.edu> 0:2.3.1-0.fdr.3
bae53e3
- More spec revisions (#422); change make and preserve timestamps
bae53e3
bae53e3
* Sun Jul 20 2003 Chris Ricker <kaboom@gatech.edu> 0:2.3.1-0.fdr.2
bae53e3
- Minor spec revisions (#422); add epoch and versions to changelogs
bae53e3
bae53e3
* Sun Jul 06 2003 Chris Ricker <kaboom@gatech.edu> 0:2.3.1-0.fdr.1
bae53e3
- Add switchdesk support
bae53e3
- Add display manager support
bae53e3
- Fix NLS build on Cambridge
bae53e3
- Fedora'ize the spec
bae53e3
bae53e3
* Sun Jun 29 2003 Chris Ricker <kaboom@gatech.edu>
bae53e3
- Rev to 2.3.1 release
bae53e3
- Make go with GCC 3.3
bae53e3
bae53e3
* Tue Mar 18 2003 Chris Ricker <kaboom@gatech.edu>
a0a9447
- Package of 2.3.0 release