summaryrefslogtreecommitdiffstats
path: root/mandriva/2010.2/applications/knoda/knoda.spec
blob: d825dd70a74407afe976e4b8ef597bf0da01a095 (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
# THIS PACKAGE IS HOSTED AT MANDRIVA SVN
# PLEASE DO NOT UPLOAD DIRECTLY BEFORE COMMIT

%define LIBMAJ 0
%define libname %mklibname %name %LIBMAJ
%define develname %mklibname %name -d

%define name knoda
%define version 0.8.3
%define hk_version 0.8.3
%define release %mkrel 10

Summary:	Database frontend for KDE
Name:		%{name}
Version:        %{version}
Release:        %{release}
License:	GPL
Group:		Databases

Source:		http://hk-classes.sourceforge.net/%{name}-%{version}.tar.bz2
Source1:	http://hk-classes.sourceforge.net/%{name}python.tar.bz2
Source2:	lo48-app-knoda.png
Patch0:		knoda-0.8.3-remove-fr-comment.patch
Patch1:		knoda-0.8.3-fix-icon-ext.patch
Url:		http://www.knoda.org
BuildRoot:	%_tmppath/%name-%version-root

BuildRequires:	hk_classes-devel = %{hk_version} 
BuildRequires:	kdelibs-devel 
BuildRequires:  python-devel
BuildRequires:	desktop-file-utils

Requires: 	hk_classes = %{hk_version} 
Obsoletes:      %{libname}

%description
Knoda is a database frontend for KDE. It is based on hk_classes.
Knoda allows you to:

 * define and delete databases;
 * create, alter and delete tables and indices;
 * add, change and delete data in tables;
 * define, execute and store sql queries;
 * import and export CSV data;
 * define and use forms; and
 * define and print reports

Its driver concept allows a uniform connection to different database 
servers.

Note: If you've used knoda 0.6, you'll probably want to delete 
~/.hk_classes/preferences, as the driver paths have changed.

%package devel
Summary:        Headers for hk_kdeclasses application development
Group:          Development/Databases
Requires:	%{name} = %{version}-%{release}
Obsoletes:	%{libname}-devel
Obsoletes:	%{develname}

%description devel
Hk_kdeclasses headers for application development


%prep
%setup -q -a 1 -n %{name}-%{version}
%patch0 -p0
%patch1 -p0

%build
%configure_kde3 --disable-final \
  --with-hk_classes-dir=%{_libdir}/hk_classes \
  --with-hk_classes-incdir=%{_includedir}/hk_classes
%make 

%install
rm -rf %{buildroot}
%makeinstall_std

# (sb) get rid of CVS in python docs
rm -rf %{name}python/common/CVS

mkdir -p $RPM_BUILD_ROOT%{_kde3_datadir}/applications/kde
desktop-file-install --vendor="" --delete-original \
	--dir $RPM_BUILD_ROOT%{_kde3_datadir}/applications/kde \
	$RPM_BUILD_ROOT%{_kde3_datadir}/applnk/Office/%{name}.desktop

%find_lang %name --with-html

%if %mdkversion < 200900
%post
%update_menus
%{update_desktop_database}
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%{update_desktop_database}
%clean_icon_cache hicolor
%endif

%clean
rm -fr %buildroot

%files -f %name.lang
%defattr(-,root,root)
%doc ChangeLog COPYING NEWS INSTALL README
%doc %{name}python/*
%{_kde3_bindir}/*
%{_kde3_datadir}/applications/kde/%{name}.desktop
%{_kde3_datadir}/apps/hk_kdeclasses
%{_kde3_datadir}/apps/%{name}
%{_kde3_datadir}/config/magic/*.magic
%{_kde3_datadir}/mimelnk/application/*.desktop
%{_kde3_iconsdir}/*/*/apps/*.png
%{_kde3_datadir}/services/hk_kde*.desktop
%{_kde3_libdir}/*

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


%changelog
* Fri Jul 22 2011 Tim Williams <tim@my-place.org.uk> 0.8.3-9mdv2010.2
+ Rebuild for Trinity

* Wed Jul 21 2010 Tim Williams <tim@my-place.org.uk> 0.8.3-9mdv2010.1
+ Rebuild for MDV 2010.1

* Tue Nov 24 2009 Tim Williams <tim@my-place.org.uk> 0.8.3-8mdv2010.0
+ Rebuild for MDV 2010.0

* Thu Jul 31 2008 Funda Wang <fundawang@mandriva.org> 0.8.3-7mdv2009.0
+ Revision: 257899
- switch to /opt

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Mon Feb 18 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.8.3-5mdv2008.1
+ Revision: 170929
- rebuild
- fix "foobar is blabla" summary (=> "blabla") so that it looks nice in rpmdrake
- fix spacing at top of description
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Oct 23 2007 Funda Wang <fundawang@mandriva.org> 0.8.3-4mdv2008.1
+ Revision: 101432
- cleanup spec file
- fix desktop file icon ext
- drop libpackage as it is wrongly introduced.

* Sat Sep 01 2007 Funda Wang <fundawang@mandriva.org> 0.8.3-3mdv2008.0
+ Revision: 77297
- Remove invalid fr comment of menu entry

* Fri Aug 10 2007 Funda Wang <fundawang@mandriva.org> 0.8.3-2mdv2008.0
+ Revision: 61513
- don't use chrpath

* Tue Jun 26 2007 Funda Wang <fundawang@mandriva.org> 0.8.3-1mdv2008.0
+ Revision: 44338
- new develpackage policy
  drop old menu

  + Per Øyvind Karlsen <peroyvind@mandriva.org>
    - update to 0.8.3
    - wipe out buildroot before install


* Mon Jan 15 2007 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.2-1mdv2007.0
+ Revision: 109306

  + Lenny Cartier <lenny@mandriva.com>
    - Update to 0.8.2

* Mon Jul 10 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.1-1mdv2007.0
+ Revision: 38589
- Fix xdg menu
- right require on hk_version
- 0.8.1
- Fix Menu for xdg
- Use macros
- Increase release
- Fix menu
- Use macros
- import knoda-0.8-1mdk

* Sun Dec 11 2005 Gaetan Lehmann <gaetan.lehmann@jouy.inra.fr> 0.8-1mdk
- 0.8
- fix build on x86_64

* Wed Oct 05 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-6mdk
- Rebuild

* Tue Oct 04 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-5mdk
- BuildRequires fix

* Sun Sep 18 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-4mdk
- Fix Requires

* Wed Jul 13 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-3mdk
- Rebuild for new hk_classes

* Tue Jul 05 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-2mdk
- Remove conflict : i suxx

* Sat Jul 02 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-1mdk
- 0.7.4
- Fix conflicts with mandrake-mime BR: 16672

* Sat Apr 30 2005 Nicolas Lcureuil <neoclust@mandriva.org> 0.7.4-0.test1.1mdk
- New release 0.7.4-test1

* Mon Feb 07 2005 Stew Benedict <sbenedict@mandrakesoft.com> 0.7.2-2mdk
- rebuild for new python

* Tue Nov 30 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.7.2-1mdk
- 0.7.2, make sure it requires hk_classes with the same version
- roll python-knoda into the main package, since it's just docs

* Sat Oct 02 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.7.1-2mdk
- fix crash bug (missing /usr/lib/kde3/libhk*.la files - #11863)

* Fri Sep 24 2004 Lenny Cartier <lenny@mandrakesoft.com> 0.7.1-1mdk
- 0.7.1

* Thu Jun 17 2004 Stew Benedict <sbenedict@mandrakesoft.com> 0.6.3-2mdk
- rebuild, patch to build with gcc-3.4.1 (patch0, extra ";"s)
- some rpmlint fixes

* Thu Apr 22 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.6.3-1mdk
- 0.6.3