]> git.pld-linux.org Git - packages/kmymoney2.git/blame - kmymoney2.spec
- fix automoc breakage
[packages/kmymoney2.git] / kmymoney2.spec
CommitLineData
b872a997 1#
d6c18bea 2# TODO: - do something with rest of templates
11694bdb 3# - consider rename to kmymoney
fb7ebf92 4# - sqlcipher plugin (BR: sqlcipher-devel + qsqlite sources)
d6c18bea 5#
b872a997 6# Conditional build:
3663d915 7%bcond_without kbanking # kbanking support
8425379a 8
45286122 9%define real_name kmymoney
0d2d964f 10Summary: Personal finance application similar to Microsoft Money
32139f7b 11Summary(pl.UTF-8): Program do finansów osobistych, podobny do Microsoft Money
ddc5a04e 12Name: kmymoney2
fb7ebf92 13Version: 4.8.0
597cf877 14Release: 4
8418e9e4 15License: GPL v2+
ddc5a04e 16Group: X11/Applications
596daf8e 17Source0: http://downloads.sourceforge.net/kmymoney2/%{real_name}-%{version}.tar.xz
fb7ebf92 18# Source0-md5: a1cc5f862493f1abc1f660ffed4f1711
ddc5a04e 19URL: http://kmymoney2.sourceforge.net/
946a2498 20Patch0: %{name}-desktop.patch
fb7ebf92 21Patch1: %{name}-man.patch
8aacd4db 22Patch2: %{name}-types.patch
597cf877 23Patch3: 0240-Fix-duplicated-symbol-compile-error-on-Windows.patch
fb7ebf92 24%{?with_kbanking:BuildRequires: aqbanking-devel >= 5.5.1}
9a7c488d 25BuildRequires: automoc4
fb7ebf92
JB
26BuildRequires: boost-devel >= 1.33.1
27BuildRequires: cmake >= 2.8.9
28BuildRequires: doxygen
29BuildRequires: gmp-devel
30# included in kde4-kdelibs-devel
31#BuildRequires: gpgme-c++-devel
32#BuildRequires: gpgme-qt4-devel
33%{?with_kbanking:BuildRequires: gwenhywfar-devel >= 4.13.0}
34%{?with_kbanking:BuildRequires: gwenhywfar-gui-cpp-devel >= 4.13.0}
35%{?with_kbanking:BuildRequires: gwenhywfar-gui-qt4-devel >= 4.13.0}
36BuildRequires: kde4-kdelibs-devel >= 4.6.0
37BuildRequires: kde4-kdepimlibs-devel >= 4.6.0
38BuildRequires: libalkimia-devel >= 4.3.2
596daf8e 39BuildRequires: libical-c++-devel
6fa0322f 40BuildRequires: libofx-devel >= 0.9.4
fb7ebf92
JB
41BuildRequires: pkgconfig
42BuildRequires: qt4-build >= 4
43BuildRequires: rpmbuild(macros) >= 1.606
44BuildRequires: shared-mime-info
45BuildRequires: tar >= 1:1.22
46BuildRequires: xz
47Requires: kde4-kdelibs >= 4.6.0
48Requires: kde4-kdepimlibs >= 4.6.0
49Requires: libalkimia >= 4.3.2
50Requires: libofx >= 0.9.4
ddc5a04e
MK
51BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53%description
0d2d964f
PG
54KMyMoney is striving to be a full-featured replacement for your
55Windows-based finance software. We are a full double-entry accounting
56software package, for personal or small-business use.
ddc5a04e 57
25daf440
JR
58%description -l pl.UTF-8
59KMyMoney stara się być w pełni funkcjonalnym zamiennikiem dla
8418e9e4 60windowsowych programów finansowych. Jest to kompletny system
61podwójnego księgowania przeznaczony do użytku osobistego i dla małych
62firm.
ddc5a04e 63
9dfd1d7c 64%package devel
e97bc5b0 65Summary: kmymoney2 - header files
32139f7b
ER
66Summary(pl.UTF-8): kmymoney2 - pliki nagłówkowe
67Summary(pt_BR.UTF-8): Arquivos de inclusão para compilar aplicativos kmymoney2
68Summary(ru.UTF-8): Хедеры для компилляции программ kmymoney2
69Summary(uk.UTF-8): Хедери для компіляції програм kmymoney2
9dfd1d7c 70Group: X11/Development/Libraries
e97bc5b0 71Requires: %{name} = %{version}-%{release}
fb7ebf92 72Requires: kde4-kdelibs-devel >= 4.6.0
9dfd1d7c 73
74%description devel
e97bc5b0 75This package contains header files for kMyMoney2.
9dfd1d7c 76
25daf440
JR
77%description devel -l pl.UTF-8
78Pakiet ten zawiera pliki nagłówkowe potrzebne przy pisaniu własnych
79programów wykorzystujących kMyMoney2.
9dfd1d7c 80
25daf440
JR
81%description devel -l pt_BR.UTF-8
82Este pacote contém os arquivos de inclusão que são necessários para
9dfd1d7c 83compilar aplicativos kMyMoney2.
84
25daf440
JR
85%description devel -l ru.UTF-8
86Этот пакет содержит хедеры, необходимые для компиляции программ для
9dfd1d7c 87kMyMoney2.
88
25daf440
JR
89%description devel -l uk.UTF-8
90Цей пакет містить хедери, необхідні для компіляції програм для
e97bc5b0 91kMyMoney2.
9dfd1d7c 92
c6789919
JB
93%package kbanking
94Summary: KBanking plugin for KMyMoney2
32139f7b 95Summary(pl.UTF-8): Wtyczka KBanking dla KMyMoney2
c6789919
JB
96Group: X11/Libraries
97Requires: %{name} = %{version}-%{release}
fb7ebf92
JB
98Requires: aqbanking >= 5.5.1
99Requires: gwenhywfar >= 4.13.0
100Requires: gwenhywfar-gui-cpp >= 4.13.0
101Requires: gwenhywfar-gui-qt4 >= 4.13.0
c6789919
JB
102
103%description kbanking
104KBanking plugin for KMyMoney2.
105
25daf440 106%description kbanking -l pl.UTF-8
c6789919
JB
107Wtyczka KBanking dla KMyMoney2.
108
97539842
JB
109%package -n QtDesigner-plugin-kmymoney
110Summary: KMyMoney specific widget library for QtDesigner
111Summary(pl.UTF-8): Biblioteka widgetów KMyMoney dla QtDesignera
112Group: X11/Libraries
113Requires: %{name} = %{version}-%{release}
114Requires: QtDesigner >= 4
115
116%description -n QtDesigner-plugin-kmymoney
117KMyMoney specific widget library for QtDesigner.
118
119%description -n QtDesigner-plugin-kmymoney -l pl.UTF-8
120Biblioteka widgetów KMyMoney dla QtDesignera.
121
ddc5a04e 122%prep
45286122 123%setup -q -n kmymoney-%{version}
946a2498 124%patch0 -p1
b209c543 125%patch1 -p1
8aacd4db 126%patch2 -p1
597cf877 127%patch3 -p1
ddc5a04e
MK
128
129%build
45286122 130install -d build
131cd build
fd70690e 132%cmake .. \
fb7ebf92
JB
133 %{?with_kbanking:-DENABLE_KBANKING=ON} \
134 -DUSE_QT_DESIGNER=ON
45286122 135
ddc5a04e
MK
136%{__make}
137
138%install
139rm -rf $RPM_BUILD_ROOT
dbc5af92 140install -d $RPM_BUILD_ROOT%{_desktopdir}
ddc5a04e 141
45286122 142%{__make} -C build install \
143 DESTDIR=$RPM_BUILD_ROOT
ddc5a04e 144
97539842
JB
145%{__mv} $RPM_BUILD_ROOT%{_datadir}/apps/appdata \
146 $RPM_BUILD_ROOT%{_datadir}
147
45286122 148%find_lang %{real_name} --with-kde
ddc5a04e 149
8425379a
ER
150# not supported in pld
151%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/locolor
152
ddc5a04e
MK
153%clean
154rm -rf $RPM_BUILD_ROOT
155
e97bc5b0
JB
156%post -p /sbin/ldconfig
157%postun -p /sbin/ldconfig
158
45286122 159%files -f %{real_name}.lang
ddc5a04e 160%defattr(644,root,root,755)
fb7ebf92 161%doc AUTHORS BUGS README.Fileformats TODO
45286122 162%attr(755,root,root) %{_bindir}/kmymoney
8418e9e4 163%attr(755,root,root) %{_libdir}/libkmm_kdchart.so.*.*.*
164%attr(755,root,root) %ghost %{_libdir}/libkmm_kdchart.so.4
165%attr(755,root,root) %{_libdir}/libkmm_mymoney.so.*.*.*
166%attr(755,root,root) %ghost %{_libdir}/libkmm_mymoney.so.4
167%attr(755,root,root) %{_libdir}/libkmm_plugin.so.*.*.*
168%attr(755,root,root) %ghost %{_libdir}/libkmm_plugin.so.4
169%attr(755,root,root) %{_libdir}/libkmm_widgets.so.*.*.*
170%attr(755,root,root) %ghost %{_libdir}/libkmm_widgets.so.4
fb7ebf92
JB
171%attr(755,root,root) %{_libdir}/libkmm_payeeidentifier.so
172%attr(755,root,root) %{_libdir}/libpayeeidentifier_iban_bic.so.*.*.*
173%attr(755,root,root) %ghost %{_libdir}/libpayeeidentifier_iban_bic.so.4
174%attr(755,root,root) %{_libdir}/libpayeeidentifier_iban_bic_widgets.so.*.*.*
175%attr(755,root,root) %ghost %{_libdir}/libpayeeidentifier_iban_bic_widgets.so.4
176%attr(755,root,root) %{_libdir}/libpayeeidentifier_nationalAccount.so.*.*.*
177%attr(755,root,root) %ghost %{_libdir}/libpayeeidentifier_nationalAccount.so.4
13dc8323 178%attr(755,root,root) %{_libdir}/kde4/kcm_kmm_icalendarexport.so
8418e9e4 179%attr(755,root,root) %{_libdir}/kde4/kcm_kmm_printcheck.so
fb7ebf92 180%attr(755,root,root) %{_libdir}/kde4/kmm_csvexport.so
eb3e78ac 181%attr(755,root,root) %{_libdir}/kde4/kmm_csvimport.so
13dc8323 182%attr(755,root,root) %{_libdir}/kde4/kmm_icalendarexport.so
8418e9e4 183%attr(755,root,root) %{_libdir}/kde4/kmm_ofximport.so
184%attr(755,root,root) %{_libdir}/kde4/kmm_printcheck.so
185%attr(755,root,root) %{_libdir}/kde4/kmm_reconciliationreport.so
fb7ebf92
JB
186%attr(755,root,root) %{_libdir}/kde4/kmm_weboob.so
187%attr(755,root,root) %{_libdir}/kde4/konlinetasks_national.so
188%attr(755,root,root) %{_libdir}/kde4/konlinetasks_sepa.so
189%attr(755,root,root) %{_libdir}/kde4/payeeidentifier_iban_bic_delegates.so
190%attr(755,root,root) %{_libdir}/kde4/payeeidentifier_ibanbic_storageplugin.so
191%attr(755,root,root) %{_libdir}/kde4/payeeidentifier_nationalAccount_ui.so
192%attr(755,root,root) %{_libdir}/kde4/payeeidentifier_nationalaccount_storageplugin.so
015bf7b1 193%dir %{_datadir}/apps/kmymoney
45286122 194%{_datadir}/apps/kmymoney/icons
596daf8e 195%{_datadir}/apps/kmymoney/html
fb7ebf92 196%{_datadir}/apps/kmymoney/ibanbicdata
596daf8e 197%{_datadir}/apps/kmymoney/misc
45286122 198%{_datadir}/apps/kmymoney/pics
199%dir %{_datadir}/apps/kmymoney/templates
596daf8e
JR
200%{_datadir}/apps/kmymoney/templates/C
201%lang(de_AT) %{_datadir}/apps/kmymoney/templates/de_AT
202%lang(de_CH) %{_datadir}/apps/kmymoney/templates/de_CH
203%lang(de_DE) %{_datadir}/apps/kmymoney/templates/de_DE
204%lang(dk) %{_datadir}/apps/kmymoney/templates/dk
205%lang(el_GR) %{_datadir}/apps/kmymoney/templates/el_GR
206%lang(en_CA) %{_datadir}/apps/kmymoney/templates/en_CA
45286122 207%lang(en_GB) %{_datadir}/apps/kmymoney/templates/en_GB
208%lang(en_US) %{_datadir}/apps/kmymoney/templates/en_US
596daf8e
JR
209%lang(es_AR) %{_datadir}/apps/kmymoney/templates/es_AR
210%lang(es_ES) %{_datadir}/apps/kmymoney/templates/es_ES
211%lang(es_MX) %{_datadir}/apps/kmymoney/templates/es_MX
212%lang(fr_CA) %{_datadir}/apps/kmymoney/templates/fr_CA
213%lang(fr_CH) %{_datadir}/apps/kmymoney/templates/fr_CH
214%lang(fr_FR) %{_datadir}/apps/kmymoney/templates/fr_FR
215%lang(gl_ES) %{_datadir}/apps/kmymoney/templates/gl_ES
216%lang(hu_HU) %{_datadir}/apps/kmymoney/templates/hu_HU
45286122 217%lang(it) %{_datadir}/apps/kmymoney/templates/it
596daf8e
JR
218%lang(ja) %{_datadir}/apps/kmymoney/templates/jp
219%lang(nl_NL) %{_datadir}/apps/kmymoney/templates/nl_NL
220%lang(pt_PT) %{_datadir}/apps/kmymoney/templates/pt_PT
45286122 221%lang(pt_BR) %{_datadir}/apps/kmymoney/templates/pt_BR
222%lang(sk) %{_datadir}/apps/kmymoney/templates/sk
596daf8e
JR
223%lang(ro_RO) %{_datadir}/apps/kmymoney/templates/ro_RO
224%lang(ru_RU) %{_datadir}/apps/kmymoney/templates/ru_RU
225%lang(tr_TR) %{_datadir}/apps/kmymoney/templates/tr_TR
226%lang(uk_UA) %{_datadir}/apps/kmymoney/templates/uk_UA
45286122 227%lang(zh_CN) %{_datadir}/apps/kmymoney/templates/zh_CN
228%lang(zh_HK) %{_datadir}/apps/kmymoney/templates/zh_HK
229%lang(zh_TW) %{_datadir}/apps/kmymoney/templates/zh_TW
230%{_datadir}/apps/kmymoney/tips
d6c18bea 231%{_datadir}/apps/kmymoney/kmymoneyui.rc
fb7ebf92
JB
232%{_datadir}/apps/kconf_update/kmymoney.upd
233%{_datadir}/apps/kmm_csvexport
234%{_datadir}/apps/kmm_csvimport
235%{_datadir}/apps/kmm_icalendarexport
236%{_datadir}/apps/kmm_ofximport
237%{_datadir}/apps/kmm_printcheck
238%{_datadir}/apps/kmm_weboob
97539842 239%{_datadir}/appdata/kmymoney.appdata.xml
596daf8e 240%{_datadir}/config/csvimporterrc
fb7ebf92 241%{_datadir}/config.kcfg/kmymoney.kcfg
596daf8e 242%{_datadir}/mime/packages/x-kmymoney.xml
fb7ebf92
JB
243%dir %{_datadir}/kde4/services/ibanbicdata
244%{_datadir}/kde4/services/ibanbicdata/germany.desktop
015bf7b1
JB
245%{_datadir}/kde4/services/kcm_kmm_icalendarexport.desktop
246%{_datadir}/kde4/services/kcm_kmm_printcheck.desktop
fb7ebf92 247%{_datadir}/kde4/services/kmm_csvexport.desktop
015bf7b1
JB
248%{_datadir}/kde4/services/kmm_csvimport.desktop
249%{_datadir}/kde4/services/kmm_icalendarexport.desktop
250%{_datadir}/kde4/services/kmm_kbanking.desktop
251%{_datadir}/kde4/services/kmm_ofximport.desktop
252%{_datadir}/kde4/services/kmm_printcheck.desktop
253%{_datadir}/kde4/services/kmm_reconciliationreport.desktop
fb7ebf92
JB
254%{_datadir}/kde4/services/kmm_weboob.desktop
255%{_datadir}/kde4/services/kmymoney-ibanbic-delegate.desktop
256%{_datadir}/kde4/services/kmymoney-ibanbic-storageplugin.desktop
257%{_datadir}/kde4/services/kmymoney-nationalaccount-delegate.desktop
258%{_datadir}/kde4/services/kmymoney-nationalaccount-storageplugin.desktop
259%{_datadir}/kde4/services/kmymoney-nationalorders.desktop
260%{_datadir}/kde4/services/kmymoney-nationalordersui.desktop
261%{_datadir}/kde4/services/kmymoney-nationalstorageplugin.desktop
262%{_datadir}/kde4/services/kmymoney-sepaorders.desktop
263%{_datadir}/kde4/services/kmymoney-sepaordersui.desktop
264%{_datadir}/kde4/services/kmymoney-sepastorageplugin.desktop
265%{_datadir}/kde4/servicetypes/ibanbicdata.desktop
266%{_datadir}/kde4/servicetypes/kmymoney-importerplugin.desktop
267%{_datadir}/kde4/servicetypes/kmymoney-nationalaccountnumberplugin.desktop
268%{_datadir}/kde4/servicetypes/kmymoney-onlinetaskui.desktop
269%{_datadir}/kde4/servicetypes/kmymoney-payeeidentifierdelegate.desktop
270%{_datadir}/kde4/servicetypes/kmymoney-plugin.desktop
271%{_datadir}/kde4/servicetypes/kmymoney-sqlstorageplugin.desktop
272%{_desktopdir}/kde4/kmymoney.desktop
273%{_iconsdir}/hicolor/*x*/apps/kmymoney.png
274%{_iconsdir}/hicolor/*x*/mimetypes/application-x-kmymoney.png
45286122 275%{_mandir}/man1/kmymoney.1*
276
9dfd1d7c 277%files devel
278%defattr(644,root,root,755)
8418e9e4 279%attr(755,root,root) %{_libdir}/libkmm_kdchart.so
9dfd1d7c 280%attr(755,root,root) %{_libdir}/libkmm_mymoney.so
281%attr(755,root,root) %{_libdir}/libkmm_plugin.so
8418e9e4 282%attr(755,root,root) %{_libdir}/libkmm_widgets.so
fb7ebf92
JB
283%attr(755,root,root) %{_libdir}/libpayeeidentifier_iban_bic.so
284%attr(755,root,root) %{_libdir}/libpayeeidentifier_iban_bic_widgets.so
285%attr(755,root,root) %{_libdir}/libpayeeidentifier_nationalAccount.so
015bf7b1 286%{_includedir}/kmymoney
c6789919 287
3663d915 288%if %{with kbanking}
c6789919
JB
289%files kbanking
290%defattr(644,root,root,755)
3663d915 291%attr(755,root,root) %{_libdir}/kde4/kmm_kbanking.so
fb7ebf92
JB
292%{_datadir}/apps/kmm_kbanking
293%{_datadir}/config.kcfg/kbanking.kcfg
3f832dea 294%endif
97539842
JB
295
296%files -n QtDesigner-plugin-kmymoney
297%defattr(644,root,root,755)
298%attr(755,root,root) %{_libdir}/qt4/plugins/designer/kmymoneywidgets.so
This page took 0.13818 seconds and 4 git commands to generate.