复制内容到剪贴板
代码:
%define ver 1.0.0
Summary: Fluxbox - another window manager.
Summary(zh_CN): Fluxbox窗口管理器
Name: fluxbox
Version: %{ver}
Release: 2mgc
License: MIT
URL: [url]http://www.fluxbox.org[/url]
Group: User Interface/Desktops
Group(zh_CN): 用户界面/桌面
BuildRoot: %{_tmppath}/%{name}-%{ver}-%{release}-buildroot
Source0:%{name}-%{ver}.tar.bz2
Source1:%{name}.desktop
Prefix: %{_prefix}
Requires: xmessage
Packager: Plux<[email]yfwz100@gmail.com[/email]>
%description
Fluxbox is yet another windowmanager for X. It's a fork from the origi-
nal blackbox-0.61.1 code. Fluxbox looks like blackbox and handles
styles, colors, window placement and similar thing exactly like black-
box. So what's the difference between fluxbox and blackbox then? The
answer is: LOTS!
Have a look at the homepage for more info ;)
%description -l zh_CN
Fluxbox是另一个窗口管理器。基于blackbox 0.61.1的代码。Fluxbox和blackbox有着
相似的风格、颜色等。但他们之间有什么不同?答案是:很多!
到官方网站看看吧 ;)
%prep
%setup -q -n %{name}-%{version}
%Build
%configure \
--enable-kde \
--enable-xinerama\
--with-menu=%_sysconfdir/X11/fluxbox/menu \
--with-style=%_datadir/%name/styles/%style \
--with-keys=%_datadir/%name/keys \
--with-init=%_datadir/%name/init
%{__make} %{?_smp_mflags}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%__bzip2 %buildroot%_mandir/man1/*.1
magic_rpm_clean.sh
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_prefix}
%{_sysconfdir}/X11/dm/Sessions/fluxbox.desktop
%changelog
* Mon Jan 28 2008 Plux<[email]yfwz100@gmail.com[/email]> 1.0.0
-first spec file for MagicLinux-2.1