fluxbox-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  1. %define FBversion 1.3.2
  2. %define pversion 1.3.0
  3. %define patchversion 1.1.0.1
  4. %define fbumenu_version 0.5.5
  5. %define vinefiles_version 11.3
  6. Summary: Fluxbox is a windowmanager that is based on Blackbox.
  7. summary(ja): Fluxbox は Blackbox から派生したウインドウマネージャです。
  8. Name: fluxbox
  9. Version: %{FBversion}
  10. Release: 2%{?_dist_release}
  11. Group: User Interface/Desktops
  12. License: MIT
  13. URL: http://fluxbox.org/
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Source0: http://sourceforge.net/projects/fluxbox/files/fluxbox/%{version}/fluxbox-%{version}.tar.bz2
  17. # styles & scripts
  18. Source1: %{name}-vinefiles-%{vinefiles_version}.tar.bz2
  19. Source2: styles2-2.tar.bz2
  20. Source3: fb_libexec.tar.bz2
  21. Source4: fb_extend_menu
  22. ### data/init.in
  23. Patch0: fluxbox-init_in.patch
  24. ### nls/Translation.m
  25. Patch3: fluxbox-%{pversion}.nls-ja.patch
  26. ### util/startfluxbox.in
  27. Patch4: fluxbox-%{pversion}-2.startfb.patch
  28. ### util/sfluxbox-generate_menu
  29. Patch92: fluxbox-1.3.2.menugen.patch
  30. ### util/fbsetbg
  31. Patch10: fbsetbg_setter_priority.patch
  32. ### nls/ja_JP/Makefile.in
  33. Patch40: fluxbox-%{patchversion}.nls-ja-make.patch
  34. ### util/fluxbox-update_configs.cc
  35. Patch41: fluxbox-%{pversion}.update_cfg.patch
  36. ### data/windowmenu
  37. Patch50: fluxbox.windowmenu-1.patch
  38. ### data/keys
  39. Patch51: fluxbox.keys-1.patch
  40. BuildRoot: %{_tmppath}/%{name}-buildroot
  41. BuildRequires: libX11-devel libXext-devel
  42. BuildRequires: bzip2 imlib2-devel zlib-devel freetype2-devel
  43. BuildRequires: libXpm-devel nkf libXft-devel
  44. BuildRequires: libICE-devel libSM-devel libXinerama-devel
  45. BuildRequires: libXrandr-devel libXrender-devel
  46. BuildRequires: fontconfig-devel libtool
  47. Requires: imlib2 imlib2-loader ImageMagick nkf xsri task-xorg-x11
  48. Requires: zenity bash
  49. %description
  50. Fluxbox is yet another windowmanager for X.
  51. It's based on the Blackbox 0.61.1 code.
  52. Fluxbox looks like blackbox and handles styles, colors, window
  53. placement and similar thing exactly like blackbox
  54. (100% theme/style compability).
  55. So what's the difference between fluxbox and blackbox then?
  56. The answer is: LOTS!
  57. Here is a list of features that fluxbox already has, or is in the works...
  58. %description -l ja
  59. fluxbox は X Window System 用の、一味違ったウィンドウマネージャです。
  60. それは blackbox-0.61.1 のプログラムコードをベースに開発されています。
  61. fluxbox は blackbox によく似ていて、スタイル、カラーリング、ウィンドウ
  62. の配置などを blackbox 同様に処理します。(スタイル(テーマ)は 100% 互換)
  63. では、fluxbox と blackbox の違いは? ... その答えは「いっぱい」!
  64. fluxbox に何が出来るか、今後何を計画しているのか?
  65. 詳しくは http://fluxbox.sourceforge.net/ をご覧下さい。
  66. %prep
  67. %__rm -rf %{buildroot}
  68. %setup -q -a 1 -a 2 -a 3
  69. ## init
  70. %patch0 -p1
  71. ## nls
  72. %patch3 -p1
  73. ## startfluxbox
  74. %patch4 -p1
  75. ## fluxbox-generete_menu
  76. %patch92 -p1
  77. ## fbsetbg_setter_priority
  78. %patch10 -p1
  79. ## nls Makefile.in
  80. %patch40 -p1
  81. ## fluxbox-update_configs.cc
  82. %patch41 -p1
  83. ## windowmenu
  84. %patch50 -p1
  85. ## keys
  86. %patch51 -p1
  87. %build
  88. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
  89. CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
  90. FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
  91. ./configure --enable-nls \
  92. --prefix=%{_prefix} \
  93. --exec-prefix=%{_exec_prefix} \
  94. --bindir=%{_bindir} \
  95. --sbindir=%{_sbindir} \
  96. --sysconfdir=%{_sysconfdir} \
  97. --datadir=%{_datadir} \
  98. --includedir=%{_includedir} \
  99. --libdir=%{_libdir} \
  100. --libexecdir=%{_libexecdir} \
  101. --localstatedir=%{_localstatedir} \
  102. --sharedstatedir=%{_sharedstatedir} \
  103. --mandir=%{_mandir} \
  104. --infodir=%{_infodir}
  105. %__make
  106. %install
  107. %__rm -rf %{buildroot}
  108. # fluxbox installation
  109. make "DESTDIR=%{buildroot}" install
  110. # styles
  111. %__rm data/styles/Makefile*
  112. %__cp -a data/styles %{buildroot}%{_datadir}/%{name}/
  113. %__cp -a data/styles2 %{buildroot}%{_datadir}/%{name}/
  114. # wallpapers
  115. %__cp -a data/backgrounds %{buildroot}%{_datadir}/%{name}/
  116. # HTML images
  117. %__cp -a data/images %{buildroot}%{_datadir}/%{name}/
  118. # UserMenu samples
  119. %__cp -a data/UserMenu %{buildroot}%{_datadir}/%{name}/
  120. # HTML docs
  121. %__cp data/*.html %{buildroot}%{_datadir}/%{name}/
  122. # scripts
  123. %__cp data/fb_welcome %{buildroot}%{_datadir}/%{name}/
  124. %__cp data/cng_fbtips %{buildroot}%{_datadir}/%{name}/
  125. %__cp data/change-rootcmd %{buildroot}%{_datadir}/%{name}/
  126. %__cp data/change-init_rootcmd %{buildroot}%{_datadir}/%{name}/
  127. %__cp data/applyoldstyle %{buildroot}%{_datadir}/%{name}/
  128. %__cp data/mk-rootcmds %{buildroot}%{_bindir}/
  129. %__cp data/fbumenu_gen-%{fbumenu_version} %{buildroot}%{_bindir}/fbumenu_gen
  130. # changelog
  131. %__cp ChangeLog %{buildroot}%{_datadir}/%{name}/
  132. # xsession desktop entry
  133. %__mkdir_p %{buildroot}%{_datadir}/xsessions/
  134. #%__cp data/fluxbox.desktop %{buildroot}%{_datadir}/xsessions/
  135. %__install -m 644 data/fluxbox.desktop %{buildroot}%{_datadir}/xsessions/
  136. # logout, reboot, shutdown commands
  137. %__mkdir_p %{buildroot}%{_libexecdir}/%{name}
  138. %__install -m 755 fb_libexec/* %{buildroot}%{_libexecdir}/%{name}/
  139. # extend menu
  140. %__mkdir_p %{buildroot}%{_datadir}/%{name}/
  141. %__install -m 755 %{SOURCE4} %{buildroot}%{_datadir}/%{name}/
  142. if [ -z "$DEBUG" ]; then
  143. strip %{buildroot}%{_bindir}/fluxbox \
  144. %{buildroot}%{_bindir}/fbsetroot \
  145. %{buildroot}%{_bindir}/fbrun
  146. fi
  147. bzip2 %{buildroot}%{_mandir}/man1/*.1
  148. %post
  149. # New menu-system
  150. %__rm %{_datadir}/fluxbox/menu*
  151. %{_bindir}/fluxbox-generate_menu \
  152. -in -B \
  153. -p %{_prefix} \
  154. -o %{_datadir}/fluxbox/menu 2> /dev/null
  155. %clean
  156. %__rm -rf %{buildroot}
  157. %files
  158. %defattr(-,root,root,755)
  159. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
  160. %{_bindir}/*
  161. %{_datadir}/*
  162. %{_libexecdir}/*
  163. %changelog
  164. * Mon Nov 14 2011 KATO Masashi <mkato@par.odn.ne.jp> 1.3.2-2
  165. - rewrited spec file
  166. (reformat %changelog)
  167. * Mon Nov 14 2011 KATO Masashi <mkato@par.odn.ne.jp> 1.3.2-1
  168. - new upstream release.
  169. * Sat Mar 26 2011 KATO Masashi <mkato@par.odn.ne.jp> 1.3.1-2
  170. - added wide wall paper
  171. - update documents(flux_news.html)
  172. * Mon Mar 7 2011 KATO Masashi <mkato@par.odn.ne.jp> 1.3.1-1
  173. - new upstream release.
  174. * Tue Mar 1 2011 KATO Masashi <mkato@par.odn.ne.jp> 1.3.0-1
  175. - new upstream release.
  176. - updated patchs.
  177. - added keys & windowmenu patch.
  178. - update documents(flux_news.html,styles.html)
  179. * Tue Oct 5 2010 KATO Masashi <mkato@par.odn.ne.jp> 1.1.1-5
  180. - added BR: libICE-devel libSM-devel libXinerama-devel
  181. libXrandr-devel libXrender-devel fontconfig-devel libtool
  182. - added Requires: task-xorg-x11 bash
  183. - dropped Requires: xinitrc libXpm
  184. * Mon Oct 4 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.1-4
  185. - add BR: libXft-devel (1.1.1-3.ppc was built w/o libXft-devel)
  186. * Wed May 26 2010 KATO Masashi <mkato@par.odn.ne.jp> 1.1.1-3
  187. - update & added Vine documents. (apps.html, config_files.html)
  188. - Combined some of patches.
  189. - update fbumenu_gen script(usermenu generator).
  190. - added menu commands. (logout, reboot, shutdown)
  191. - added extend application menu script. (%{SOURCE4})
  192. * Tue Mar 16 2010 KATO Masashi <mkato@par.odn.ne.jp> 1.1.1-2
  193. - updated wallpapers.
  194. - moved desktop-entry to %{_datadir}/xsessions/ .
  195. * Fri Sep 19 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.1.1-1
  196. - new upstream release.
  197. - removed upstream patchs.
  198. - rewrote Vine documents.
  199. * Sat Sep 14 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.1.0.1-3
  200. - Applied upstream patchs.
  201. * Fri Sep 12 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.1.0.1-2
  202. - updated mk-rootcmds
  203. - updated vine documents. (keys.html, flux_news.html)
  204. * Thu Sep 11 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.1.0.1-1
  205. - new upstream release
  206. - removed fluxbox-%{FBversion}.nls-hh.patch
  207. - rewrote documents. (keys.html, flux_news.html)
  208. - added new default keys file
  209. * Sun Aug 24 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-6
  210. - fixed locale problem
  211. - rewrote scripts for eucJP and UTF-8
  212. - revived fluxbox-%{FBversion}.Xclients.patch. (for startx)
  213. * Sun Jun 22 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-5
  214. - add new style. (tux)
  215. * Mon Jun 16 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-3
  216. - corrected line gap of nls-header
  217. - (fluxbox-1.0.0.nls-hh.patch)
  218. * Tue May 27 2008 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-2
  219. - adjust startup sequence
  220. - (rewrite desktop entry file for dm sessions)
  221. - (remove fluxbox-%{FBversion}.Xclients.patch)
  222. * Sun May 25 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.0-1
  223. - applied new versioning policy
  224. - rebuilt with xorg-x11 7.3
  225. - spec in UTF-8
  226. * Tue Dec 4 2007 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-0vl3, 4
  227. - retouch patchs for ja_JP.UTF-8 locale
  228. - : for root menu & help message
  229. - rewrite vine documents
  230. * Mon Oct 15 2007 KATO Masashi <mkato@par.odn.ne.jp> 1.0.0-0vl1, 2
  231. - new upstream 'stable' release
  232. - add new documents(styles tips, keys tips).
  233. - add new styles
  234. - update patch files, vine documents, vine scripts
  235. * Wed Apr 11 2007 KATO Masashi <mkato@par.odn.ne.jp> 1.0-0vl0.rc3.1, 2
  236. - new upstream release
  237. - add rewrited system styles
  238. - update patch files
  239. - update vine documents
  240. * Sun Dec 24 2006 KATO Masashi <mkato@par.odn.ne.jp> 1.0-0vl0.rc2.3, 4
  241. - add BuildRequires: zlib-devel freetype2-devel
  242. - add Requires: xsri
  243. - Change wpsetter''s priority (fbsetbg_setter_priority.patch)
  244. * Thu Jul 20 2006 KATO Masashi <mkato@par.odn.ne.jp> 1.0-0vl0.rc2.1, 2
  245. - new upstream release
  246. - update patch files
  247. - update vine documents
  248. * Thu Jul 6 2006 KATO Masashi <mkato@par.odn.ne.jp> 1.0-0vl0.rc0.1, 2
  249. - new upstream release
  250. - update patch files
  251. - added 'additional applications' extension to fluxbox-generate_menu
  252. * Tue Apr 8 2006 KATO Masashi <mkato@par.odn.ne.jp> 0.9.15.1-0vl1, 2
  253. - new upstream release
  254. - add 'init file rewrite' script for back-compatible
  255. - rewrite documents
  256. * Wed Mar 29 2006 KATO Masashi <mkato@par.odn.ne.jp> 0.9.15-0vl1, 2
  257. - new upstream release
  258. - update *tips*
  259. - update patch files
  260. - add & update script files
  261. - update & retouch style files (VineStyle*, BlueStar*)
  262. - retouch menu structure (Vine tools)
  263. - add script for back compatible to background-style
  264. * Sun Mar 19 2006 KATO Masashi <mkato@par.odn.ne.jp> 0.9.14-0vl1.1, 2.2
  265. - update *_tips.html
  266. (retouch link errors)
  267. - retouch ja_JP/Translation.m
  268. - update menugen patch
  269. - update style file (VineStyle, BlueStar)
  270. - add index.html, scripts for 'wellcome'
  271. * Tue Oct 25 2005 KATO Masashi <mkato@par.odn.ne.jp> 0.9.14-0vl1, 2
  272. - new upstream release
  273. - update vine patch
  274. (retouch init file for new spec.)
  275. - update vinefiles
  276. (update fbumenu_gen(usermenu generator))
  277. (update 2 style files for new spec.)
  278. (update fluxtips.txt)
  279. - update fluxbox_menu_tips.html
  280. * Sun Jun 5 2005 KATO Masashi <mkato@par.odn.ne.jp> 0.9.13-0vl3, 4
  281. - update vine patch
  282. (add some menu items to fluxbox-generate_menu)
  283. (retouch menu structure)
  284. (rewrite 'about menu')
  285. - update vinefiles
  286. (add usermenu generator to x-utilus)
  287. - update fluxbox_menu_tips.html
  288. * Fri May 27 2005 KATO Masashi <mkato@par.odn.ne.jp> 0.9.13-0vl1
  289. - new upstream release
  290. - update vine patch
  291. (add some menu items to fluxbox-generate_menu)
  292. (extend 'about toolbar')
  293. - update nls-ja patch
  294. - update fluxtips.txt
  295. (rewrite, add '0.9.13 news')
  296. * Sun Feb 6 2005 KATO Masashi <mkato@par.odn.ne.jp> 0.9.12-0vl1
  297. - new upstream release
  298. - update vine patch
  299. (add some menu items to fluxbox-generate_menu)
  300. (include blackbox styles)
  301. (extend 'my_mail')
  302. (extend 'about menu')
  303. - add nls-ja patch
  304. * Sun Dec 12 2004 KATO Masashi <mkato@par.odn.ne.jp> 0.9.11-0vl1
  305. - new upstream release
  306. - update vine patch
  307. (generate japanese menu)
  308. (add some menu items to fluxbox-generate_menu)
  309. (retouch menu structure)
  310. (fix menu backup problem)
  311. * Wed Nov 24 2004 IWAI, Masaharu <iwai@alib.jp> 0.9.10-0vl1
  312. - new upstream release
  313. - update vine patch ( merged vine patches )
  314. - add font_locale patch ( Patch100 )
  315. - fix typo: s/buidroot/buildroot/g
  316. * Sun Jun 20 2004 KATO Masashi <mkato@par.odn.ne.jp> 0.9.9-0vl2
  317. - rewrite 2 styles (VineStyleII, BlueStarII)
  318. - rewrite fluxtips.txt(for 0.9.x)
  319. - modifying menu-generator
  320. (fix problems of 'can't generates some menus'')
  321. (add some menu items)
  322. (Japanese help messages)
  323. - modifying 'init' file(default style, menu-alpha)
  324. - append sample of 'keys' file
  325. * Sun May 2 2004 IWAI, Masaharu <iwai@alib.jp> 0.9.9-0vl1
  326. - new upstream release
  327. * Sun Mar 14 2004 IWAI, Masaharu <iwai@alib.jp> 0.9.8-0vl2
  328. - using rpm macros
  329. - fix nonexistent directory for styles in postscript
  330. - add BuildRequires: bzip2
  331. - drop Prefix tag
  332. * Sat Mar 6 2004 IWAI, Masaharu <iwai@alib.jp> 0.9.8-0vl1
  333. - new upstream release
  334. - update vine patch (Patch101)
  335. * Mon Aug 11 2003 IWAI, Masaharu <iwai@alib.jp> 0.1.14-1_0vl2
  336. - build for VineSeed
  337. - fix Group tag for VineLinux:
  338. Graphical desktop/Other -> User Interface/Desktops
  339. - add /usr/share/%%{name} directory in %%files section
  340. * Sat May 31 2003 KATO Masashi <mkato@par.odn.ne.jp> 0.1.14-1_0vl1
  341. - fluxbox for Vine Linux. Japanese menu enabled at default.
  342. (initial package for Vine Linux)
  343. - modified menu-generator patch (x-terminals)
  344. - modified init.in patch (date,workspace name,default style)
  345. - added 2 styles (VineStyle, BlueStar)