bae53e3
Name:		openbox
fa70138
Version:	3.4.7.2
d461de6
Release:	4%{?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
fa70138
Source2:	xdg-menu
fa70138
Source3:	menu.xml
bae53e3
394bf5b
Patch0:		openbox-3.4.7.1-autostartdir.patch
dd7cf30
Patch1:		openbox-3.4.7.2-gdm.patch
394bf5b
bae53e3
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
bae53e3
05ad677
Requires:	%{name}-libs = %{version}-%{release}
bae53e3
bae53e3
BuildRequires:	gettext
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
dd7cf30
%patch1 -p1 -b .gdm
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}
fa70138
606a31a
install setlayout %{buildroot}%{_bindir}
fa70138
install -p %{SOURCE2} %{buildroot}%{_datadir}/%{name}/xdg-menu
fa70138
sed 's|_XDGMENU_|%{_datadir}/%{name}/xdg-menu|g' < %{SOURCE3} \
fa70138
	> %{buildroot}%{_sysconfdir}/xdg/%{name}/menu.xml
606a31a
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
fa70138
%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
394bf5b
%dir %{_datadir}/openbox
394bf5b
%{_datadir}/openbox/xdg-autostart
fa70138
%{_datadir}/openbox/xdg-menu
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
d461de6
* Fri Aug 01 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-4
d461de6
- Remove field codes from commands in xdg-menu (#452403)
d461de6
- Add support for launching applications in xterm to xdg-menu
d461de6
dd7cf30
* Tue Jun 10 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-3
dd7cf30
- Clean up properties after gdm in session scripts (#444135)
dd7cf30
- Add license to xdg-menu script
dd7cf30
de80217
* Tue May 20 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-2
de80217
- Drop numdesks patch (#444135)
de80217
fa70138
* Wed May 14 2008 Miroslav Lichvar <mlichvar@redhat.com> - 3.4.7.2-1
fa70138
- Update to 3.4.7.2
fa70138
- Use gnome menus by default (Luke Macken) (#443548)
fa70138
- Force setting number of desktops (#444135)
fa70138
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