fbpanel-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. Summary: Lightweight desktop panel
  2. Summary(ja): 軽量デスクトップパネル
  3. Name: fbpanel
  4. Version: 6.1
  5. Release: 2%{?_dist_release}
  6. # %%{_bindir}/fbpanel-bin and almost all plugins are under LGPLv2+
  7. # Some plugins (cpu.so, pager.so, tray.so) are under GPLv2+
  8. License: LGPLv2+, GPLv2+
  9. URL: http://fbpanel.sourceforge.net/
  10. Group: User Interface/X
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: TANAKA hiroaki <mosaicist@jcom.home.ne.jp>
  15. BuildRequires: gtk2-devel libXpm-devel libXmu-devel desktop-file-utils
  16. ###BuildRequires: gdk-pixbuf2-devel
  17. Requires: fontconfig, freetype2, ncurses, zenity
  18. Source0: http://sourceforge.net/projects/fbpanel/files/%{name}/%version}/%{name}-%{version}.tbz2
  19. # icons
  20. Source10: fbpanel_data.tar.bz2
  21. # utils
  22. Source11: fbpanel_exec.tar.bz2
  23. # start script
  24. Source12: fbpanel_start
  25. # additional icons
  26. Patch1: fbpanel-6.0-icons.patch
  27. # default apps
  28. Patch2: fbpanel-6.0-mkprof.patch
  29. # default configuration
  30. Patch3: fbpanel-6.1-default_in.patch
  31. # logout script
  32. Patch4: fbpanel-6.0-xlogout.patch
  33. # additional utils
  34. Patch5: fbpanel-6.0-exec.patch
  35. # binary name (fbpanel -> fbpanel-bin)
  36. Patch6: fbpanel-6.0-panname.patch
  37. %description
  38. Fbpanel is a lightweight, NETWM(wm-spec) compliant desktop panel. It works with any NETWM compliant window manager
  39. %description -l ja
  40. FBpanel は NETWM(wm-spec)準拠のウィンドウマネージャ環境で作動する軽量デスクトップパネルです。
  41. %prep
  42. %setup -q -a 10 -a 11
  43. %patch1 -p1
  44. %patch2 -p1
  45. %patch3 -p1
  46. %patch4 -p1
  47. %patch5 -p1
  48. %patch6 -p1
  49. %build
  50. %__rm -rf %{buildroot}
  51. CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
  52. LDFLAGS="${LDFLAGS} -lX11 -lm" ; export LDFLAGS
  53. ./configure \
  54. --host=%{_host} --build=%{_build} \
  55. --target=%{_target_platform} \
  56. --prefix=%{_prefix} \
  57. --bindir=%{_bindir} \
  58. --datadir=%{_datadir} \
  59. --libdir=%{_libdir} \
  60. --mandir=%{_mandir} \
  61. %__make
  62. %{__gzip} data/man/fbpanel.1
  63. %install
  64. %__make "DESTDIR=%{buildroot}" install
  65. # install manpage
  66. %{__mkdir_p} %{buildroot}%{_mandir}/man1/
  67. %{__install} -m 644 data/man/%{name}.1.gz %{buildroot}%{_mandir}/man1/
  68. # install startup script
  69. %{__install} -m 755 %{SOURCE12} %{buildroot}%{_bindir}/fbpanel
  70. # install README.ja
  71. %{__install} -m 644 data/README.ja %{buildroot}%{_datadir}/%{name}/
  72. # install desktop-entry
  73. %{__mkdir_p} %{buildroot}%{_datadir}/applications/
  74. %__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
  75. [Desktop Entry]
  76. Name=FbPanel
  77. Name[ja]=FbPanel
  78. Comment=FbPanel
  79. Comment[ja]=軽量デスクトップパネル
  80. Exec=fbpanel
  81. Icon=/usr/share/fbpanel/images/vine.svg
  82. Terminal=false
  83. MultipleArgs=false
  84. Type=Application
  85. Categories=Application;Utility;
  86. EOF
  87. %clean
  88. rm -rf %{buildroot}
  89. %files
  90. %defattr(-,root,root)
  91. %{_bindir}/*
  92. %{_libdir}/*
  93. %{_libexecdir}/*
  94. %{_datadir}/*
  95. %changelog
  96. * Sun Dec 29 2013 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 6.1-2
  97. - rebuild with gcc-4.8
  98. * Fri Mar 23 2012 KATO Masashi <mkato@par.odn.ne.jp> 6.1-1
  99. - upstream update
  100. - removed BR: gdk-pixbuf2-devel
  101. - added linker option "-lm"
  102. - updated Patch3 (fbpanel-6.1-default_in.patch)
  103. * Sat Mar 10 2012 KATO Masashi <mkato@par.odn.ne.jp> 6.0-2
  104. - changed BR: gdk-pixbuf-devel with gdk-pixbuf2-devel
  105. - added linker option "-lX11"
  106. * Wed May 26 2010 KATO Masashi <mkato@par.odn.ne.jp> 6.0-1
  107. - upstream update
  108. - added icons (Source10 & Patch1)
  109. - arranged default config file (Patch2, Patch3)
  110. - added & arranged util-scripts (Source11 & Patch4, Patch5)
  111. - added startup script
  112. * Mon Mar 22 2010 KATO Masashi <mkato@par.odn.ne.jp> 5.6-1
  113. - initial build for Vine Linux