summaryrefslogtreecommitdiffstats
path: root/kbfx.spec
blob: 9168ff59240c45093c1f83170ae69359f8ebfc4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
%define name	kbfx
%define version	0.4.9.3.1
%define kbfx_release 1
%define is_stable 1
%define debug_package %{nil}

%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)
%define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
%define is_fedora %(test -e /etc/fedora-release && echo 1 || echo 0)
%define is_mandrake %(test -e /etc/mandrake-release && echo 1 || echo 0)
%define is_pclinuxos %(test -e /etc/pclinuxos-release && echo 1 || echo 0)

%if %{is_suse}
%define prefix	/opt/trinity
Group:		System/GUI/KDE
Release:	%{kbfx_release}.suse%(echo "%{suse_version}" | %__sed -e 's/.$//')
Requires:	tdelibs3
BuildRequires:	tdelibs3-devel tdebase3-devel
BuildRequires:	cmake, automake, libtool
BuildRequires:	glibc-devel, libstdc++-devel
%endif

%if %{is_fedora}
%define fedora_version      %(rpm -q --queryformat '%{VERSION}' fedora-release)
%define fedora_vernum       %(echo "%{fedora_version}" | tr -d '.')
%define prefix	/usr
Group:		System/GUI/KDE
Release:	%{kbfx_release}.FC%{fedora_vernum}
Requires:	tdebase
BuildRequires:	tdebase-devel qt-devel
BuildRequires:	cmake, automake, libtool
BuildRequires:	glibc-devel, libstdc++-devel
%endif

%if %{is_mandrake}
%if %{is_pclinuxos} < 1
%define prefix	/usr
Group:		Graphical desktop/KDE
Release:	%{kbfx_release}.mdv%(echo "%{mdkversion}" | %__sed -e 's/.$//')
Requires:	tdebase
BuildRequires:	tdebase-devel
BuildRequires:	cmake, automake, libtool
BuildRequires:	glibc-devel, libstdc++-devel
%endif
%endif

%if %{is_pclinuxos}
%define prefix	/usr
Group:		Graphical desktop/KDE
Release:	%{kbfx_release}.pclos%{product_version}
Requires:	tdelibs
BuildRequires:	cmake, automake, libtool
BuildRequires:	tdelibs-devel
%endif

%if %{is_unknown}
%define prefix	%(kde-config --prefix)
Group:		Graphical desktop/KDE
Release:	%{kbfx_release}
BuildRequires:	cmake, automake, libtool
%endif


Name:		%{name}
Version:	%{version}
License:	GPL
URL:		http://www.kbfx.org
Summary:	An alternative to the classical K-Menu button and it's menu.
BuildRoot:	%{_tmppath}/build-%{name}-%{version}-root
Packager:	PhobosK <[email protected]>
Vendor:		KBFX TEAM
Provides:	kbfx

%if %{is_stable} < 1
Source:		%{name}-%{version}-%{kbfx_release}.tar.bz2
%else
Source:		%{name}-%{version}.tar.bz2
%endif

%description
KBFX is an alternative to the classical K-Menu button and it's menu.
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.
If you still want the old menu, because you're used to it, it is still available as an option in kbfx.

Main features:
 Spinx Bar has 6 Basic Functionalities.
 1.Selecting an Application Group
 2.Selecting an Application
 3.Type and locate an Application
 4.Logout of the Desktop
 5.Lock the Desktop
 6.Launch KBFX settings manager
 7.Scroll up and down the application list

Extra features:
 1.Double buffered Widgets to minimize flicker.
 2.Animated scroll bars
 3.New Tooltip
 4.Gif/Mng File Support
 5.New Control Manager

%prep

%if %{is_stable} < 1
%setup -n %{name}-%{version}-%{kbfx_release}
%else
%setup -n %{name}-%{version}
%endif

rm -Rf build
mkdir build
cd build
export DESTDIR=${RPM_BUILD_ROOT}
cmake  ../ -DCMAKE_INSTALL_PREFIX=%{prefix}

%build
cd build

%install
cd build
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -Rf ${RPM_BUILD_ROOT};
export DESTDIR=${RPM_BUILD_ROOT}
make install

%if %{is_mandrake}
mkdir -p ${RPM_BUILD_ROOT}%{_menudir}
cat << EOF > ${RPM_BUILD_ROOT}%{_menudir}/%{name}
?package(%{name}): needs="kde" kde_filename="kbfxconfig" \
section="System/Configuration/Other" title="KBFX Configurator" icon="kbfxconfigapp" \
command="kbfxconfigapp" longtitle="KBFX Configuration Utility" \
kde_opt="\\\\nEncoding=UTF-8\\\\nType=Application"
EOF
%endif

%post
if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
/sbin/ldconfig

%postun
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi
/sbin/ldconfig


%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && [ -d ${RPM_BUILD_ROOT} ] && rm -Rf ${RPM_BUILD_ROOT};

%files
%defattr(-, root, root)
%{prefix}/*

%changelog

* Wed May 16 2007 0.4.9.3.1
 - CHANGED layout and font configfile specs
 - UPDATED help documentation
 - ADDED fade transition effect on the KBFX Button
 - ADDED install guides for using checkinstall
 - ADDED Hungarian translation (thanks to Ferenc Stelcz for it)
 - ADDED option to watch for KDE global changes like new installed applications
 - ADDED option for Theme Info
 - ADDED resizable configuration dialogs
 - ADDED drag&drop hover, pressed and normal images over the KBFX button
 - ADDED tooltip support for the KBFX button
 - ADDED switch between KBFX and K Menu
 - ADDED new two panel skin - "2panels"
 - ADDED configurable middle background - middleboxbg.png
 - ADDED fonts support in every part of the menu
 - ADDED layout support in the KBFX Configurator
 - ADDED support for the new versions of strigi
 - ADDED support for use of strigi in Gentoo
 - ADDED support for SVN version in Gentoo
 - ADDED support for PCLinuxOS rpm build (thanks to @PaGal and @tom777 for the testing)
 - ADDED support for future KDE4 (part 1)
 - ADDED uninstall option for "build.sh" script
 - FIXED cmake uninstall
 - FIXED RPM .la issues
 - FIXED some major bugs
 - REMOVED Water effect (too much CPU time consuming and not a favorite one for our users)

* Wed Jan 17 2007 0.4.9.3-20070117
 - Initial Release of the 0.4.9.3 Series - KBFX Silk (0.4.9.3)
 - New Build system (cmake)
 - Re-write of the data backend
 - Re-write of the GUI
 - Totally new theme
 - Improved configuration dialog

* Fri Nov 17 2006 0.4.9.2rc4
 - CHANGED some aspects of autoconf/automake behaviour
 - CHANGED "Toolbar Resize" behaviour - turned off by default so kicker doesn't change its size anymore
 - ADDED support for Mandriva 2007 compilation (no menudrake there by default)
 - FIXED Searchbar behaviour (thanks @gropiuskalle)
 - FIXED some minor bugs

* Sun Nov 05 2006 0.4.9.2rc3
 - ADDED support for preparing .kbfxtheme files in konqueror (look the explanation in HOWTO file)
 - ADDED "--prepare" commandline option to pack existing KBFX Skin Folders to .kbfxtheme files
 - ADDED "Default Theme's Personal Image" to the "KBFX Configurator Application"
 - ADDED "Toolbar Resize" option to the "KBFX Configurator Application" for the toolbar where the KBFX Button resides
 - ADDED it, bg and nl translations
 - FIXED some minor bugs

* Mon Sep 19 2006 0.4.9.2rc2
 - CHANGED "KBFX Configurator Application" - rewritten from scratch and is no more part of "kcontrol"
 - CHANGED "Tooltip Animation" behaviour - turned off by default
 - ADDED new Default Theme
 - ADDED fonts configuration option to the "KBFX Configurator Application"
 - ADDED Install/Delete Themes to the "KBFX Configurator Application"
 - ADDED support for .kbfxtheme files in konqueror (look the explanation in HOWTO file)
 - ADDED possibility to change "dude" image to the "KBFX Configurator Application"
 - ADDED Free-BSD Support
 - FIXED font alignment problems
 - FIXED long applications name problem
 - FIXED some memory leaks
 - FIXED some minor bugs

* Sun Jun 18 2006 0.4.9.2-20060708cvs
 - UPDATED make system

* Sun Jun 11 2006 0.4.9.2-20060611cvs
 - ADDED KNOWN_BUGS file in the project documents
 - ADDED PC-BSD Support
 - ADDED Drag and Drop Support
 - FIXED a bug with showing icons in "Recently Used" items
 - FIXED a bug with the placement of ".face.icon" (thanks @Nucc)
 - Flicker Free KBFX Button
 - Flicker Free KBFX SPINX Menu TOP
 - Better scrolling


* Sun May 28 2006 0.4.9.2-20060528cvs
 - ADDED suport for Fedora rpm
 - ADDED an option to disable tooltip (see HOWTO file)
 - FIXED a problem with building SUSE rpm


* Wed May 10 2006 0.4.9.2rc1
 - ADDED suport for SUSE rpm
 - ADDED support for Buttons with Drop shadows
 - ADDED Font settings as part of the Theme itself
 - ADDED Grouping header for each application group and sub groups
 - ADDED Kiosk mode support
 - ADDED Handling of submenus
 - FIXED a problem with make
 - FIXED make system for all distributions
 - Better support for Mandriva distribution
 - More applications for the menu


* Sun Apr 16 2006 0.4.9.1-1
 Initial rpm release
 - FIXED Kbfx configuration
 - FIXED Slack 1.9 automake and compilation
 - FIXED /tmp/.kbfx.html