ALT Linux repositórios
Group :: Desktop gráfico/Outros
RPM: fluxbox
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_disable debug
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: fluxbox
Version: 1.0.0
Release: alt2
Summary: Fast and lightweight window manager
Summary(ru_RU.CP1251): Ëåãêèé è áûñòðûé îêîííûé ìåíåäæåð
License: MIT
Group: Graphical desktop/Other
Url: http://fluxbox.org
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: http://dl.sourceforge.net/%name/%name-%version.tar.bz2
Source1: %name.menu
Source2: %name.menu-methods
Source3: %name.wmsession
Source4: %name-icons.tar.bz2
Source5: README.ALT.koi8-r
Source6: Cthulhain
Patch0: %name-alt-makefile-no_generate_menu.patch
Patch1: %name-alt-style-disable_fonts.patch
Patch2: %name-alt-scripts-find_requires_protect.patch
# Explanation:
# - xmessages uses by fbsetbg plus can be invoked from menu
# - xprop used in menu item "Window name"
# - xinitrc is owner of /etc/X11/wmsession.d directory
# - menu: support for locate_icon() function
Requires: xmessage xprop xinitrc
Requires: menu >= 2.1.35-alt3
BuildRequires: gcc-c++ imlib2-devel libXt-devel libXft-devel
BuildRequires: libXrandr-devel libXpm-devel libXinerama-devel
%description
Fluxbox designed for those peoples that unlike huge and feature-overloaded
window manages. It has a lot of good features and one of them it's high speed.
It's very simply for configurate and it compiled with support to KDE and GNOME
applets. In addition this package include 22 original themes for wm.
%description -l ru_RU.CP1251
Fluxbox ïðåäíàçíà÷åí äëÿ òåõ, êòî íå ëþáèò íàâîðî÷åííûå è íåïîâîðîòëèâûå
îêîííûå ìåíåäæåðû. Îí îáëàäàåò ìíîæåñòâîì ðàçëè÷íûõ äîñòîèíñòâ, ãëàâíûì èç
êîòîðûõ ÿâëÿåòñÿ åãî ñêîðîñòü. Îí ïðîñò â íàñòðîéêå è ñêîìïèëèðîâàí ñ
ïîääåðæêîé àïëåòîâ èç KDE è Gnome. Êðîìå òîãî â ñîñòàâ ïàêåòà âõîäÿò 22
îðèãèíàëüíûõ òåìû äëÿ íåãî.
%prep
%setup -a4
%patch0 -p1
%patch1 -p1
%patch2 -p2
# Using mouse wheel for changes Tabs
sed -i '22a\
session.screen0.windowScrollAction:\tNextTab
' data/init.in
%build
# Regenerate Makefiles after applying no_generate_menu.patch
# NOTE: automake is enough but we should regenerate all scripts
# because upstream used autoconf 2.61 which we haven't for a while
%__autoreconf
%configure --with-init=%_sysconfdir/X11/%name/init \
--with-keys=%_sysconfdir/X11/%name/keys \
--with-menu=%_sysconfdir/X11/%name/menu \
--enable-nls \
--enable-shape \
%{?_enable_debug:--enable-debug}
%make_build %{?!_enable_debug: --no-print-directory --silent}
bzip2 ChangeLog
%install
%make_install %{?!_enable_debug: --no-print-directory --silent} DESTDIR=%buildroot install
%find_lang --custom-dir-script="
s:%buildroot::
s:\(.*/share/fluxbox/nls/\)\(C\|[a-z][^/_ at ]\+\):%lang(\2) \1\2:
s:^\([^%].*\)::
s:%lang(C) ::" %name
install -pD -m 644 %name-48.xpm %buildroot%_liconsdir/%name.xpm
install -pD -m 644 %name-32.xpm %buildroot%_niconsdir/%name.xpm
install -pD -m 644 %name-16.xpm %buildroot%_miconsdir/%name.xpm
install -pD -m 644 %SOURCE1 %buildroot%_menudir/%name
install -pD -m 755 %SOURCE2 %buildroot%_sysconfdir/menu-methods/%name
install -pD -m 644 %SOURCE3 %buildroot%_sysconfdir/X11/wmsession.d/07%name
install -pD -m 644 %SOURCE5 .
install -pD -m 644 %SOURCE6 %buildroot%_datadir/%name/styles/Cthulhain
mkdir -p %buildroot%_mandir/ru/man1
iconv -f utf8 -t koi8-r doc/ru/%name.1 > %buildroot%_mandir/ru/man1/%name.1
%post
%update_menus
%update_wms
%postun
%clean_menus
%clean_wms
%files -f %name.lang
%doc AUTHORS ChangeLog.bz2 COPYING NEWS README* TODO
%_bindir/*
%_man1dir/*
%_mandir/ru/man1/%name.1.*
%_liconsdir/%name.xpm
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_menudir/%name
%_sysconfdir/menu-methods/%name
%config %_sysconfdir/X11/wmsession.d/07%name
%dir %_sysconfdir/X11/%name/
%config %_sysconfdir/X11/%name/[!m]*
%ghost %verify(not mtime md5 size) %_sysconfdir/X11/%name/menu
%dir %_datadir/%name/
%dir %_datadir/%name/nls/
%_datadir/%name/styles/
%changelog
…
Todas as alterações você pod ver aqui
# Unpackaged files in buildroot should terminate build
%define _unpackaged_files_terminate_build 1
Name: fluxbox
Version: 1.0.0
Release: alt2
Summary: Fast and lightweight window manager
Summary(ru_RU.CP1251): Ëåãêèé è áûñòðûé îêîííûé ìåíåäæåð
License: MIT
Group: Graphical desktop/Other
Url: http://fluxbox.org
Packager: Slava Semushin <php-coder at altlinux.ru>
Source0: http://dl.sourceforge.net/%name/%name-%version.tar.bz2
Source1: %name.menu
Source2: %name.menu-methods
Source3: %name.wmsession
Source4: %name-icons.tar.bz2
Source5: README.ALT.koi8-r
Source6: Cthulhain
Patch0: %name-alt-makefile-no_generate_menu.patch
Patch1: %name-alt-style-disable_fonts.patch
Patch2: %name-alt-scripts-find_requires_protect.patch
# Explanation:
# - xmessages uses by fbsetbg plus can be invoked from menu
# - xprop used in menu item "Window name"
# - xinitrc is owner of /etc/X11/wmsession.d directory
# - menu: support for locate_icon() function
Requires: xmessage xprop xinitrc
Requires: menu >= 2.1.35-alt3
BuildRequires: gcc-c++ imlib2-devel libXt-devel libXft-devel
BuildRequires: libXrandr-devel libXpm-devel libXinerama-devel
%description
Fluxbox designed for those peoples that unlike huge and feature-overloaded
window manages. It has a lot of good features and one of them it's high speed.
It's very simply for configurate and it compiled with support to KDE and GNOME
applets. In addition this package include 22 original themes for wm.
%description -l ru_RU.CP1251
Fluxbox ïðåäíàçíà÷åí äëÿ òåõ, êòî íå ëþáèò íàâîðî÷åííûå è íåïîâîðîòëèâûå
îêîííûå ìåíåäæåðû. Îí îáëàäàåò ìíîæåñòâîì ðàçëè÷íûõ äîñòîèíñòâ, ãëàâíûì èç
êîòîðûõ ÿâëÿåòñÿ åãî ñêîðîñòü. Îí ïðîñò â íàñòðîéêå è ñêîìïèëèðîâàí ñ
ïîääåðæêîé àïëåòîâ èç KDE è Gnome. Êðîìå òîãî â ñîñòàâ ïàêåòà âõîäÿò 22
îðèãèíàëüíûõ òåìû äëÿ íåãî.
%prep
%setup -a4
%patch0 -p1
%patch1 -p1
%patch2 -p2
# Using mouse wheel for changes Tabs
sed -i '22a\
session.screen0.windowScrollAction:\tNextTab
' data/init.in
%build
# Regenerate Makefiles after applying no_generate_menu.patch
# NOTE: automake is enough but we should regenerate all scripts
# because upstream used autoconf 2.61 which we haven't for a while
%__autoreconf
%configure --with-init=%_sysconfdir/X11/%name/init \
--with-keys=%_sysconfdir/X11/%name/keys \
--with-menu=%_sysconfdir/X11/%name/menu \
--enable-nls \
--enable-shape \
%{?_enable_debug:--enable-debug}
%make_build %{?!_enable_debug: --no-print-directory --silent}
bzip2 ChangeLog
%install
%make_install %{?!_enable_debug: --no-print-directory --silent} DESTDIR=%buildroot install
%find_lang --custom-dir-script="
s:%buildroot::
s:\(.*/share/fluxbox/nls/\)\(C\|[a-z][^/_ at ]\+\):%lang(\2) \1\2:
s:^\([^%].*\)::
s:%lang(C) ::" %name
install -pD -m 644 %name-48.xpm %buildroot%_liconsdir/%name.xpm
install -pD -m 644 %name-32.xpm %buildroot%_niconsdir/%name.xpm
install -pD -m 644 %name-16.xpm %buildroot%_miconsdir/%name.xpm
install -pD -m 644 %SOURCE1 %buildroot%_menudir/%name
install -pD -m 755 %SOURCE2 %buildroot%_sysconfdir/menu-methods/%name
install -pD -m 644 %SOURCE3 %buildroot%_sysconfdir/X11/wmsession.d/07%name
install -pD -m 644 %SOURCE5 .
install -pD -m 644 %SOURCE6 %buildroot%_datadir/%name/styles/Cthulhain
mkdir -p %buildroot%_mandir/ru/man1
iconv -f utf8 -t koi8-r doc/ru/%name.1 > %buildroot%_mandir/ru/man1/%name.1
%post
%update_menus
%update_wms
%postun
%clean_menus
%clean_wms
%files -f %name.lang
%doc AUTHORS ChangeLog.bz2 COPYING NEWS README* TODO
%_bindir/*
%_man1dir/*
%_mandir/ru/man1/%name.1.*
%_liconsdir/%name.xpm
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_menudir/%name
%_sysconfdir/menu-methods/%name
%config %_sysconfdir/X11/wmsession.d/07%name
%dir %_sysconfdir/X11/%name/
%config %_sysconfdir/X11/%name/[!m]*
%ghost %verify(not mtime md5 size) %_sysconfdir/X11/%name/menu
%dir %_datadir/%name/
%dir %_datadir/%name/nls/
%_datadir/%name/styles/
%changelog
…
Todas as alterações você pod ver aqui