QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2628|回复: 9

可否帮我看看这个包有没有问题?

[复制链接]
发表于 2008-1-30 18:29:50 | 显示全部楼层 |阅读模式
第一次学习打包,是FluxBox 1.0.0的,不过不知道是否有问题。请高手看看……
似乎论坛不支持rpm上传,所以压缩为tar.gz文件。
[local]1[/local]

[ 本帖最后由 X-user 于 2008-1-30 18:57 编辑 ]
 楼主| 发表于 2008-1-30 18:32:02 | 显示全部楼层
郁闷,怎么上传文件?
回复

使用道具 举报

发表于 2008-1-30 19:48:00 | 显示全部楼层
用code标签把spec的内容贴上来就行了。
回复

使用道具 举报

 楼主| 发表于 2008-1-31 08:21:47 | 显示全部楼层
  1. %define ver 1.0.0

  2. Summary: Fluxbox - another window manager.
  3. Summary(zh_CN): Fluxbox窗口管理器
  4. Name: fluxbox
  5. Version: %{ver}
  6. Release: 2mgc
  7. License: MIT
  8. URL: [url]http://www.fluxbox.org[/url]
  9. Group: User Interface/Desktops
  10. Group(zh_CN): 用户界面/桌面
  11. BuildRoot: %{_tmppath}/%{name}-%{ver}-%{release}-buildroot
  12. Source0:%{name}-%{ver}.tar.bz2
  13. Source1:%{name}.desktop
  14. Prefix: %{_prefix}
  15. Requires: xmessage
  16. Packager: Plux<[email][email protected][/email]>

  17. %description
  18. Fluxbox is yet another windowmanager for X. It's a fork from the origi-
  19. nal blackbox-0.61.1 code. Fluxbox looks like blackbox and handles
  20. styles, colors, window placement and similar thing exactly like black-
  21. box. So what's the difference between fluxbox and blackbox then? The
  22. answer is: LOTS!
  23. Have a look at the homepage for more info ;)

  24. %description -l zh_CN
  25. Fluxbox是另一个窗口管理器。基于blackbox 0.61.1的代码。Fluxbox和blackbox有着
  26. 相似的风格、颜色等。但他们之间有什么不同?答案是:很多!
  27. 到官方网站看看吧 ;)

  28. %prep
  29. %setup -q -n %{name}-%{version}

  30. %Build
  31. %configure \
  32.     --enable-kde \
  33.     --enable-xinerama\
  34.     --with-menu=%_sysconfdir/X11/fluxbox/menu \
  35.     --with-style=%_datadir/%name/styles/%style \
  36.     --with-keys=%_datadir/%name/keys \
  37.     --with-init=%_datadir/%name/init
  38. %{__make} %{?_smp_mflags}

  39. %install
  40. make DESTDIR=$RPM_BUILD_ROOT install

  41. %__bzip2 %buildroot%_mandir/man1/*.1

  42. magic_rpm_clean.sh

  43. %clean
  44. rm -rf $RPM_BUILD_ROOT

  45. %files
  46. %defattr(-,root,root)
  47. %{_prefix}
  48. %{_sysconfdir}/X11/dm/Sessions/fluxbox.desktop

  49. %changelog
  50. * Mon Jan 28 2008 Plux<[email][email protected][/email]> 1.0.0
  51. -first spec file for MagicLinux-2.1
复制代码
回复

使用道具 举报

发表于 2008-1-31 10:41:50 | 显示全部楼层

  1. URL: [url]http://www.fluxbox.org[/url]
  2. * Mon Jan 28 2008 Plux<[email][email protected][/email]> 1.0.0
复制代码

没见过spec还可以用UBB代码,不过既然能够打包通过,说明没有什么问题。
描述性的文字最好用e文,中文容易产生乱码。
回复

使用道具 举报

发表于 2008-1-31 10:41:55 | 显示全部楼层
spec 文件至少我觉得没什么问题~  
那些宏用得颇为规范呢!

打好包能用么?能用就可以~
回复

使用道具 举报

发表于 2008-1-31 10:42:47 | 显示全部楼层
原帖由 hillwood 于 2008-1-31 10:41 发表
URL: http://www.fluxbox.org
* Mon Jan 28 2008 Plux 1.0.0

没见过spec还可以用ubb代码,不过既然能够打包通过,说明没有什么问题。
描述性的文字最好用e文,中文容易产生乱码。


中文描述是 magic 的特色之一~~  
回复

使用道具 举报

 楼主| 发表于 2008-1-31 11:18:32 | 显示全部楼层
编译好了,由于没有空间,放到了fs2you.com。
Fluxbox 1.0.0 for  magiclinux 2.1
http://www.fs2you.com/files/cece7ea8-cf9a-11dc-be2f-0014221f4662/
FbDesk 1.4.1 ;
http://www.fs2you.com/files/59bb475c-cfa6-11dc-af4c-0014221f3995/
由于上传速度不很快,src.rpm就没有上传,希望对大家有用!
回复

使用道具 举报

发表于 2008-1-31 13:16:34 | 显示全部楼层
那个ubb代码是discuz自动加的。prefix是标准的话可以不在spec里定义的,你的spec有一个问题,就是%file段用了%_prefix,也即/usr,这样会把debug内容也包含进来的。最好列成比较详细的,比如%{_bindir}或%{_libdir/f*.so.*等类似的。
回复

使用道具 举报

 楼主| 发表于 2008-2-1 09:15:53 | 显示全部楼层
根据sejishikong提示,再打包了个vte,虽然是开发包,但把vte当终端用还是可以的。
http://www.fs2you.com/files/66ba0fe8-d063-11dc-9b6d-0014221f4662/
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-3-29 14:57 , Processed in 0.061870 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表