]> git.pld-linux.org Git - packages/blackbox.git/blobdiff - blackbox.spec
- s/home_etc/etc_dir/
[packages/blackbox.git] / blackbox.spec
index e92c925ec762c15445b75c7e33cf384e0012df8e..dd2c0a0ef41ded53b550b611069ffb79536d6931 100644 (file)
@@ -1,59 +1,92 @@
-Summary:       Very small and fast window manger for the X Window.
-Summary(pl):   Ma³y i szybki menad¿er okien dla X Window.
+# --with       epistrophy      (enables using epistorophy key grabber)
+
+Summary:       Very small and fast window manger for the X Window
+Summary(pl):   Ma³y i szybki zarz±dca okien dla X Window
 Name:          blackbox
-Version:       0.51.3.1
-Release:       1
+Version:       0.65.0
+Release:       2
 License:       GPL
 Group:         X11/Window Managers
-Group(pl):     X11/Zarz±dcy Okien
 Vendor:                Brad Hughes <blackbox@alug.org>
-Source:                ftp://portal.alug.org/pub/blackbox/0.5x.x/%{name}-%{version}.tar.bz2
-Patch:         blackbox-no-brueghel.patch
-URL:           http://blackbox.alug.org/
-Buildroot:     /tmp/%{name}-%{version}-root
+Source0:       http://dl.sourceforge.net/blackboxwm/%{name}-%{version}.tar.gz
+Source1:       %{name}.desktop
+Source3:       %{name}.1
+Source4:       bsetroot.1
+Source5:       %{name}-README.PLD
+Patch0:                %{name}-am_fixes.patch
+Patch1:                %{name}-pipe.patch
+Patch3:                %{name}-epistrophy.patch
+Patch4:                %{name}-etc_dir.patch
+URL:           http://blackboxwm.sourceforge.net/
+BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: rpm >= 4.0.2-48
+%{?_with_epistrophy:Requires:  epistrophy}
+Obsoletes:     fluxbox
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/X11/%{name}
+%define                _wmpropsdir     /usr/share/wm-properties
 
-%define                _prefix         /usr/X11R6
-%define                _mandir         /usr/X11R6/man
-%define                _datadir        /etc/X11
+%define                _gcc_ver        %(%{__cc} -dumpversion | cut -b 1)
+%if %{_gcc_ver} == 2
+%define                __cxx           "%{__cc}"
+%endif
 
 %description
-Blackbox is a window manager for the X Window environment, which is almost
-completely compliant with ICCCM specified operation policies. It features
-nice and fast interface with multiple workspaces and simple menus. Fast
-built-in graphics code that can render solids, gradients and bevels is used
-to draw window decorations. Remaining small in size, blackbox preserves
-memory and CPU.                                                       
+Blackbox is a window manager for the X Window environment, which is
+almost completely compliant with ICCCM specified operation policies.
+It features nice and fast interface with multiple workspaces and
+simple menus. Fast built-in graphics code that can render solids,
+gradients and bevels is used to draw window decorations. Remaining
+small in size, blackbox preserves memory and CPU.
 
 %description -l pl
-Blackbox jest mened¿erem okien dla X Window spe³niaj±cym prawie wszystkie
-zalecenia ICCM. Jego zalet± jest estetyczny i szybki interfejs z wieloma
-pulpitami i prostym menu. Wbudowano weñ tak¿e algorytm rysowania dekoracji
-okien, które mog± byæ jednokolorowe, gradientowe lub trójwymiarowe.
-Blackbox oszczêdza pamiêæ i czas CPU.                           
+Blackbox jest zarz±dc± okien dla X Window spe³niaj±cym prawie
+wszystkie zalecenia ICCM. Jego zalet± jest estetyczny i szybki
+interfejs z wieloma pulpitami i prostym menu. Wbudowano weñ tak¿e
+algorytm rysowania dekoracji okien, które mog± byæ jednokolorowe,
+gradientowe lub trójwymiarowe. Blackbox oszczêdza pamiêæ i czas CPU.
 
 %prep
 %setup -q
-%patch -p1
+%patch0 -p1
+%patch1 -p1
+%{?_with_epistrophy:%patch3 -p1}
+%patch4 -p1
 
 %build
-LDFLAGS="-s"; export LDFLAGS 
-%configure \
-       --enable-kde
-make
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-gzip -9nf README ChangeLog
+install -d $RPM_BUILD_ROOT{%{_wmpropsdir},%{_mandir}/pl/man1,%{_sysconfdir}}
+
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/pl/man1
+install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/pl/man1
+cp %{SOURCE5} README.PLD
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %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 README* ChangeLog
 %attr(755,root,root) %{_bindir}/*
-%{_datadir}/Blackbox/styles
+%dir %{_sysconfdir}
+%dir %{_datadir}/blackbox
+%{_datadir}/blackbox/styles
+%{_datadir}/blackbox/nls
+%{_wmpropsdir}/blackbox.desktop
+%{_mandir}/man1/*
+%lang(pl) %{_mandir}/pl/man1/*
+%{_sysconfdir}/menu
This page took 0.105813 seconds and 4 git commands to generate.