KBFX – an alternative to T-Menu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

256 lines
8.3KB

  1. %define name @APPLICATION_NAME@
  2. %define version @APPLICATION_MAIN_VERSION@@APPLICATION_STABLE_RELEASE@
  3. %define kbfx_release @LIB_SUB_RELEASE@
  4. %define is_stable @APPLICATION_STABLE@
  5. %define debug_package %{nil}
  6. %define is_unknown %(test -e /etc/mandrake-release -o -e /etc/SuSE-release -o -e /etc/fedora-release -o -e /etc/pclinuxos-release && echo 0 || echo 1)
  7. %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
  8. %define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
  9. %define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
  10. %define is_pclinuxos %(test -e /etc/pclinuxos-release && echo 1 || echo 0)
  11. %if %{is_suse}
  12. %define prefix /opt/trinity
  13. Group: System/GUI/KDE
  14. Release: %{kbfx_release}.suse%(echo "%{suse_version}" | %__sed -e 's/.$//')
  15. Requires: tdelibs3
  16. BuildRequires: tdelibs3-devel tdebase3-devel
  17. BuildRequires: cmake, automake, libtool
  18. BuildRequires: glibc-devel, libstdc++-devel
  19. %endif
  20. %if %{is_fedora}
  21. %define fedora_version %(rpm -q --queryformat '%{VERSION}' fedora-release)
  22. %define fedora_vernum %(echo "%{fedora_version}" | tr -d '.')
  23. %define prefix /usr
  24. Group: System/GUI/KDE
  25. Release: %{kbfx_release}.FC%{fedora_vernum}
  26. Requires: tdebase
  27. BuildRequires: tdebase-devel qt-devel
  28. BuildRequires: cmake, automake, libtool
  29. BuildRequires: glibc-devel, libstdc++-devel
  30. %endif
  31. %if %{is_mandrake}
  32. %if %{is_pclinuxos} < 1
  33. %define prefix /usr
  34. Group: Graphical desktop/KDE
  35. Release: %{kbfx_release}.mdv%(echo "%{mdkversion}" | %__sed -e 's/.$//')
  36. Requires: tdebase
  37. BuildRequires: tdebase-devel
  38. BuildRequires: cmake, automake, libtool
  39. BuildRequires: glibc-devel, libstdc++-devel
  40. %endif
  41. %endif
  42. %if %{is_pclinuxos}
  43. %define prefix /usr
  44. Group: Graphical desktop/KDE
  45. Release: %{kbfx_release}.pclos%{product_version}
  46. Requires: tdelibs
  47. BuildRequires: cmake, automake, libtool
  48. BuildRequires: tdelibs-devel
  49. %endif
  50. %if %{is_unknown}
  51. %define prefix %(tde-config --prefix)
  52. Group: Graphical desktop/KDE
  53. Release: %{kbfx_release}
  54. BuildRequires: cmake, automake, libtool
  55. %endif
  56. Name: %{name}
  57. Version: %{version}
  58. License: GPL
  59. URL: http://www.kbfx.net
  60. Summary: An alternative to the classical K-Menu button and it's menu.
  61. BuildRoot: %{_tmppath}/build-%{name}-%{version}-root
  62. Packager: PhobosK <phobosk@mail.kbfx.net>
  63. Vendor: KBFX TEAM
  64. Provides: kbfx
  65. %if %{is_stable} < 1
  66. Source: %{name}-%{version}-%{kbfx_release}.tar.bz2
  67. %else
  68. Source: %{name}-%{version}.tar.bz2
  69. %endif
  70. %description
  71. KBFX is an alternative to the classical K-Menu button and it's menu.
  72. It improves the user experience by enabling the user to set a bigger (and thus more visible) start button and by finally replacing the Win95-like K-Menu with the Spinx bar.
  73. If you still want the old menu, because you're used to it, it is still available as an option in kbfx.
  74. Main features:
  75. Spinx Bar has 6 Basic Functionalities.
  76. 1.Selecting an Application Group
  77. 2.Selecting an Application
  78. 3.Type and locate an Application
  79. 4.Logout of the Desktop
  80. 5.Lock the Desktop
  81. 6.Launch KBFX settings manager
  82. 7.Scroll up and down the application list
  83. Extra features:
  84. 1.Double buffered Widgets to minimize flicker.
  85. 2.Animated scroll bars
  86. 3.New Tooltip
  87. 4.Gif/Mng File Support
  88. 5.New Control Manager
  89. %prep
  90. %if %{is_stable} < 1
  91. %setup -n %{name}-%{version}-%{kbfx_release}
  92. %else
  93. %setup -n %{name}-%{version}
  94. %endif
  95. rm -Rf build
  96. mkdir build
  97. cd build
  98. export DESTDIR=${RPM_BUILD_ROOT}
  99. cmake ../ -DCMAKE_INSTALL_PREFIX=%{prefix}
  100. %build
  101. cd build
  102. %install
  103. cd build
  104. [ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -Rf ${RPM_BUILD_ROOT};
  105. export DESTDIR=${RPM_BUILD_ROOT}
  106. make install
  107. %if %{is_mandrake}
  108. mkdir -p ${RPM_BUILD_ROOT}%{_menudir}
  109. cat << EOF > ${RPM_BUILD_ROOT}%{_menudir}/%{name}
  110. ?package(%{name}): needs="kde" kde_filename="kbfxconfig" \
  111. section="System/Configuration/Other" title="KBFX Configurator" icon="kbfxconfigapp" \
  112. command="kbfxconfigapp" longtitle="KBFX Configuration Utility" \
  113. kde_opt="\\\\nEncoding=UTF-8\\\\nType=Application"
  114. EOF
  115. %endif
  116. %post
  117. if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
  118. /sbin/ldconfig
  119. %postun
  120. if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
  121. /sbin/ldconfig
  122. %clean
  123. [ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -Rf ${RPM_BUILD_ROOT};
  124. %files
  125. %defattr(-, root, root)
  126. %{prefix}/*
  127. %changelog
  128. * Wed May 16 2007 0.4.9.3.1
  129. - CHANGED layout and font configfile specs
  130. - UPDATED help documentation
  131. - ADDED fade transition effect on the KBFX Button
  132. - ADDED install guides for using checkinstall
  133. - ADDED Hungarian translation (thanks to Ferenc Stelcz for it)
  134. - ADDED option to watch for KDE global changes like new installed applications
  135. - ADDED option for Theme Info
  136. - ADDED resizable configuration dialogs
  137. - ADDED drag&drop hover, pressed and normal images over the KBFX button
  138. - ADDED tooltip support for the KBFX button
  139. - ADDED switch between KBFX and K Menu
  140. - ADDED new two panel skin - "2panels"
  141. - ADDED configurable middle background - middleboxbg.png
  142. - ADDED fonts support in every part of the menu
  143. - ADDED layout support in the KBFX Configurator
  144. - ADDED support for the new versions of strigi
  145. - ADDED support for use of strigi in Gentoo
  146. - ADDED support for SVN version in Gentoo
  147. - ADDED support for PCLinuxOS rpm build (thanks to @PaGal and @tom777 for the testing)
  148. - ADDED support for future KDE4 (part 1)
  149. - ADDED uninstall option for "build.sh" script
  150. - FIXED cmake uninstall
  151. - FIXED RPM .la issues
  152. - FIXED some major bugs
  153. - REMOVED Water effect (too much CPU time consuming and not a favorite one for our users)
  154. * Wed Jan 17 2007 0.4.9.3-20070117
  155. - Initial Release of the 0.4.9.3 Series - KBFX Silk (0.4.9.3)
  156. - New Build system (cmake)
  157. - Re-write of the data backend
  158. - Re-write of the GUI
  159. - Totally new theme
  160. - Improved configuration dialog
  161. * Fri Nov 17 2006 0.4.9.2rc4
  162. - CHANGED some aspects of autoconf/automake behaviour
  163. - CHANGED "Toolbar Resize" behaviour - turned off by default so kicker doesn't change its size anymore
  164. - ADDED support for Mandriva 2007 compilation (no menudrake there by default)
  165. - FIXED Searchbar behaviour (thanks @gropiuskalle)
  166. - FIXED some minor bugs
  167. * Sun Nov 05 2006 0.4.9.2rc3
  168. - ADDED support for preparing .kbfxtheme files in konqueror (look the explanation in HOWTO file)
  169. - ADDED "--prepare" commandline option to pack existing KBFX Skin Folders to .kbfxtheme files
  170. - ADDED "Default Theme's Personal Image" to the "KBFX Configurator Application"
  171. - ADDED "Toolbar Resize" option to the "KBFX Configurator Application" for the toolbar where the KBFX Button resides
  172. - ADDED it, bg and nl translations
  173. - FIXED some minor bugs
  174. * Mon Sep 19 2006 0.4.9.2rc2
  175. - CHANGED "KBFX Configurator Application" - rewritten from scratch and is no more part of "kcontrol"
  176. - CHANGED "Tooltip Animation" behaviour - turned off by default
  177. - ADDED new Default Theme
  178. - ADDED fonts configuration option to the "KBFX Configurator Application"
  179. - ADDED Install/Delete Themes to the "KBFX Configurator Application"
  180. - ADDED support for .kbfxtheme files in konqueror (look the explanation in HOWTO file)
  181. - ADDED possibility to change "dude" image to the "KBFX Configurator Application"
  182. - ADDED Free-BSD Support
  183. - FIXED font alignment problems
  184. - FIXED long applications name problem
  185. - FIXED some memory leaks
  186. - FIXED some minor bugs
  187. * Sun Jun 18 2006 0.4.9.2-20060708cvs
  188. - UPDATED make system
  189. * Sun Jun 11 2006 0.4.9.2-20060611cvs
  190. - ADDED KNOWN_BUGS file in the project documents
  191. - ADDED PC-BSD Support
  192. - ADDED Drag and Drop Support
  193. - FIXED a bug with showing icons in "Recently Used" items
  194. - FIXED a bug with the placement of ".face.icon" (thanks @Nucc)
  195. - Flicker Free KBFX Button
  196. - Flicker Free KBFX SPINX Menu TOP
  197. - Better scrolling
  198. * Sun May 28 2006 0.4.9.2-20060528cvs
  199. - ADDED suport for Fedora rpm
  200. - ADDED an option to disable tooltip (see HOWTO file)
  201. - FIXED a problem with building SUSE rpm
  202. * Wed May 10 2006 0.4.9.2rc1
  203. - ADDED suport for SUSE rpm
  204. - ADDED support for Buttons with Drop shadows
  205. - ADDED Font settings as part of the Theme itself
  206. - ADDED Grouping header for each application group and sub groups
  207. - ADDED Kiosk mode support
  208. - ADDED Handling of submenus
  209. - FIXED a problem with make
  210. - FIXED make system for all distributions
  211. - Better support for Mandriva distribution
  212. - More applications for the menu
  213. * Sun Apr 16 2006 0.4.9.1-1
  214. Initial rpm release
  215. - FIXED Kbfx configuration
  216. - FIXED Slack 1.9 automake and compilation
  217. - FIXED /tmp/.kbfx.html