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