Summary(pl): Ma³y i szybki menad¿er okien dla X Window
Name: blackbox
Version: 0.61.1
-Release: 1
+Release: 4
License: GPL
Group: X11/Window Managers
Group(de): X11/Fenstermanager
Group(pl): X11/Zarz±dcy Okien
Vendor: Brad Hughes <blackbox@alug.org>
Source0: ftp://portal.alug.org/pub/blackbox/0.6x.x/%{name}-%{version}.tar.bz2
+Source1: %{name}.desktop
+Patch0: %{name}-lowcase_name.patch
+Patch1: %{name}-exitbutton.patch
+Patch2: %{name}-am_fixes.patch
URL: http://blackbox.alug.org/
-BUildRequires: XFree86-devel
-BUildRequires: libstdc++-devel
+BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
-%define _mandir /usr/X11R6/man
-%define _datadir /etc/X11
+%define _mandir %{_prefix}/man
+%define _sysconfdir /etc/X11/%{name}
%description
Blackbox is a window manager for the X Window environment, which is
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
-CXXFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -fno-exceptions -fno-rtti -fno-implicit-templates"
+aclocal
+autoconf
+automake -a -c
%configure
-%{__make}
+%{__make} CXX="%{__cc}"
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/wm-properties
%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/wm-properties/
+
gzip -9nf README ChangeLog
%clean
%files
%defattr(644,root,root,755)
-%doc README.gz ChangeLog.gz
-%config(noreplace) %verify(not size md5 mtime) %{_datadir}/Blackbox/menu
-%dir %{_datadir}/Blackbox
-
+%doc *.gz
+%{_datadir}/wm-properties/blackbox.desktop
%attr(755,root,root) %{_bindir}/*
-%{_datadir}/Blackbox/styles
+%{_mandir}/man1/*
+%dir %{_sysconfdir}
+%{_sysconfdir}/menu
+%dir %{_datadir}/blackbox
+%{_datadir}/blackbox/styles