summaryrefslogtreecommitdiffstats
path: root/redhat/extras/knoda/trinity-knoda.spec
blob: 2d3a4e0def7cdc3a6f52a1fff5c9c7427f716123 (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
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".

# TDE 3.5.13 specific building variables
%define tde_version 14.0.1
%define tde_bindir %{tde_prefix}/bin
%define tde_datadir %{tde_prefix}/share
%define tde_confdir %{_sysconfdir}/trinity
%define tde_docdir %{tde_datadir}/doc
%define tde_includedir %{tde_prefix}/include
%define tde_libdir %{tde_prefix}/%{_lib}
%define tde_mandir %{tde_datadir}/man

%define tde_tdeappdir %{tde_datadir}/applications/kde
%define tde_tdedocdir %{tde_docdir}/tde
%define tde_tdeincludedir %{tde_includedir}/tde
%define tde_tdelibdir %{tde_libdir}/trinity

%define _docdir %{tde_docdir}

Name:           trinity-knoda
Version:        0.8.3
Release:        1%{?dist}
Summary:        A database frontend for TDE.

Group:          Applications/Productivity
License:        GPLv2+
URL:            http://sourceforge.net/projects/knoda/
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Source0:        http://downloads.sourceforge.net/project/knoda/knoda/0.8.3/knoda-%{tde_version}.tar.gz

BuildRequires:	desktop-file-utils
BuildRequires:	trinity-tdelibs-devel
BuildRequires:	hk_classes-devel
Requires:		hk_classes


%description


%package devel
Summary:  	Development files for %{name}
Group: 		Development/Libraries
Requires: 	%{name} = %{version}-%{release}


%description devel
%{summary}


%if 0%{?suse_version} || 0%{?pclinuxos}
%debug_package
%endif


%prep
%setup -q -n knoda-%{version}

%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"


%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export kde_confdir="%{tde_confdir}"


%configure \
	--prefix=%{tde_prefix} \
	--exec-prefix=%{tde_prefix} \
	--disable-dependency-tracking \
	--enable-rpath \
	--bindir=%{tde_bindir} \
	--libdir=%{tde_libdir} \
	--datadir=%{tde_datadir} \
	--includedir=%{tde_tdeincludedir} 

 
%__make %{?_smp_mflags} || %__make


%install
%__rm -rf $RPM_BUILD_ROOT
%__make install DESTDIR=$RPM_BUILD_ROOT


# Useless files ..
%__rm -f %{?buildroot}%{tde_libdir}/*.a
%__rm -f %{?buildroot}%{tde_tdelibdir}/*.a

%find_lang knoda

%clean
%__rm -rf $RPM_BUILD_ROOT


%post
for i in hicolor locolor ; do
 touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
 gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
done


%postun
for i in hicolor locolor ; do
 touch --no-create %{tde_datadir}/icons/$i 2>/dev/null || :
 gtk-update-icon-cache --quiet %{tde_datadir}/icons/$i 2>/dev/null || :
done


%files -f knoda.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING README ChangeLog
%{tde_bindir}/knoda
%{tde_bindir}/knoda-rt
%{tde_libdir}/libhk_kdeclasses.la
%{tde_libdir}/libhk_kdeclasses.so
%{tde_tdelibdir}/libhk_kdedbdesignerpart.la
%{tde_tdelibdir}/libhk_kdedbdesignerpart.so
%{tde_tdelibdir}/libhk_kdeformpart.la
%{tde_tdelibdir}/libhk_kdeformpart.so
%{tde_tdelibdir}/libhk_kdegridpart.la
%{tde_tdelibdir}/libhk_kdegridpart.so
%{tde_tdelibdir}/libhk_kdemodulepart.la
%{tde_tdelibdir}/libhk_kdemodulepart.so
%{tde_tdelibdir}/libhk_kdeqbepart.la
%{tde_tdelibdir}/libhk_kdeqbepart.so
%{tde_tdelibdir}/libhk_kdequerypart.la
%{tde_tdelibdir}/libhk_kdequerypart.so
%{tde_tdelibdir}/libhk_kdereportpart.la
%{tde_tdelibdir}/libhk_kdereportpart.so
%{tde_tdelibdir}/libhk_kdetablepart.la
%{tde_tdelibdir}/libhk_kdetablepart.so
%{tde_datadir}/applnk/Office/knoda.desktop
%{tde_datadir}/apps/hk_kdeclasses/
%{tde_datadir}/apps/knoda/
%{tde_confdir}/magic/hk_classes.magic
%{tde_tdedocdir}/HTML/en/knoda/
%{tde_datadir}/icons/hicolor/*/apps/knoda.png
%{tde_datadir}/icons/locolor/*/apps/knoda.png
%{tde_datadir}/mimelnk/application/x-hk_classes-sqlite2.desktop
%{tde_datadir}/mimelnk/application/x-hk_classes-sqlite3.desktop
%{tde_datadir}/mimelnk/application/x-hk_connection.desktop
%{tde_datadir}/mimelnk/application/x-paradox.desktop
%{tde_datadir}/mimelnk/application/x-xbase.desktop
%{tde_datadir}/services/hk_kdedbdesignerpart.desktop
%{tde_datadir}/services/hk_kdeformpart.desktop
%{tde_datadir}/services/hk_kdegridpart.desktop
%{tde_datadir}/services/hk_kdemodulepart.desktop
%{tde_datadir}/services/hk_kdeqbepart.desktop
%{tde_datadir}/services/hk_kdequerypart.desktop
%{tde_datadir}/services/hk_kdereportpart.desktop
%{tde_datadir}/services/hk_kdetablepart.desktop


%files devel
%defattr(-,root,root,-)
%{tde_tdeincludedir}/hk_kdeboolean.h
%{tde_tdeincludedir}/hk_kdebutton.h
%{tde_tdeincludedir}/hk_kdecolumn.h
%{tde_tdeincludedir}/hk_kdecombobox.h
%{tde_tdeincludedir}/hk_kdecsvexportdialog.h
%{tde_tdeincludedir}/hk_kdecsvimportdialog.h
%{tde_tdeincludedir}/hk_kdecsvimportdialogbase.h
%{tde_tdeincludedir}/hk_kdedatasource.h
%{tde_tdeincludedir}/hk_kdedate.h
%{tde_tdeincludedir}/hk_kdedbdesignerpart.h
%{tde_tdeincludedir}/hk_kdedbdesignerpartfactory.h
%{tde_tdeincludedir}/hk_kdedblistview.h
%{tde_tdeincludedir}/hk_kdedriverdialog.h
%{tde_tdeincludedir}/hk_kdefilterdialog.h
%{tde_tdeincludedir}/hk_kdefilterdialogbase.h
%{tde_tdeincludedir}/hk_kdefinddialog.h
%{tde_tdeincludedir}/hk_kdefinddialogbase.h
%{tde_tdeincludedir}/hk_kdeform.h
%{tde_tdeincludedir}/hk_kdeformdatasourcedialog.h
%{tde_tdeincludedir}/hk_kdeformdatasourcedialogbase.h
%{tde_tdeincludedir}/hk_kdeformfocus.h
%{tde_tdeincludedir}/hk_kdeformpart.h
%{tde_tdeincludedir}/hk_kdeformpartfactory.h
%{tde_tdeincludedir}/hk_kdeformpartwidget.h
%{tde_tdeincludedir}/hk_kdegrid.h
%{tde_tdeincludedir}/hk_kdegridcolumndialog.h
%{tde_tdeincludedir}/hk_kdegridcolumndialogbase.h
%{tde_tdeincludedir}/hk_kdegridpart.h
%{tde_tdeincludedir}/hk_kdegridpartfactory.h
%{tde_tdeincludedir}/hk_kdeimage.h
%{tde_tdeincludedir}/hk_kdeindexeditwindow.h
%{tde_tdeincludedir}/hk_kdeinterpreterdialog.h
%{tde_tdeincludedir}/hk_kdelabel.h
%{tde_tdeincludedir}/hk_kdelineedit.h
%{tde_tdeincludedir}/hk_kdememo.h
%{tde_tdeincludedir}/hk_kdemessages.h
%{tde_tdeincludedir}/hk_kdemodule.h
%{tde_tdeincludedir}/hk_kdemodulepart.h
%{tde_tdeincludedir}/hk_kdemodulepartfactory.h
%{tde_tdeincludedir}/hk_kdenewpassworddialog.h
%{tde_tdeincludedir}/hk_kdenewpassworddialogbase.h
%{tde_tdeincludedir}/hk_kdepassworddialog.h
%{tde_tdeincludedir}/hk_kdeproperty.h
%{tde_tdeincludedir}/hk_kdepropertybase.h
%{tde_tdeincludedir}/hk_kdeqbe.h
%{tde_tdeincludedir}/hk_kdeqbepart.h
%{tde_tdeincludedir}/hk_kdeqbepartfactory.h
%{tde_tdeincludedir}/hk_kdequery.h
%{tde_tdeincludedir}/hk_kdequerypart.h
%{tde_tdeincludedir}/hk_kdequerypartfactory.h
%{tde_tdeincludedir}/hk_kdequerypartwidget.h
%{tde_tdeincludedir}/hk_kdereport.h
%{tde_tdeincludedir}/hk_kdereportdata.h
%{tde_tdeincludedir}/hk_kdereportpart.h
%{tde_tdeincludedir}/hk_kdereportpartfactory.h
%{tde_tdeincludedir}/hk_kdereportpartwidget.h
%{tde_tdeincludedir}/hk_kdereportproperty.h
%{tde_tdeincludedir}/hk_kdereportpropertybase.h
%{tde_tdeincludedir}/hk_kdereportsection.h
%{tde_tdeincludedir}/hk_kdereportsectiondialog.h
%{tde_tdeincludedir}/hk_kdereportsectiondialogbase.h
%{tde_tdeincludedir}/hk_kderowselector.h
%{tde_tdeincludedir}/hk_kdesimpleform.h
%{tde_tdeincludedir}/hk_kdesimplegrid.h
%{tde_tdeincludedir}/hk_kdesimplereport.h
%{tde_tdeincludedir}/hk_kdesubform.h
%{tde_tdeincludedir}/hk_kdesubreportdialog.h
%{tde_tdeincludedir}/hk_kdesubreportdialogbase.h
%{tde_tdeincludedir}/hk_kdetable.h
%{tde_tdeincludedir}/hk_kdetabledesign.h
%{tde_tdeincludedir}/hk_kdetablepart.h
%{tde_tdeincludedir}/hk_kdetablepartfactory.h
%{tde_tdeincludedir}/hk_kdetablepartwidget.h
%{tde_tdeincludedir}/hk_kdetoolbar.h
%{tde_tdeincludedir}/hk_kdexmlexportdialog.h
%{tde_tdeincludedir}/hk_kdexmlexportdialogbase.h


%changelog
* Mon Apr 08 2013 Francois Andriot <francois.andriot@free.fr> - 0.5b-1
- Initial release for TDE 3.5.13.2