]> git.pld-linux.org Git - packages/kmymoney.git/blobdiff - kmymoney2.spec
- updated gwenhywfar-gui-qt4 package name
[packages/kmymoney.git] / kmymoney2.spec
index 72cb3ef0ca55db864ccd5b018b4e17b9efa58744..aad5befa767674b1e9d348ac19737de75663ab0a 100644 (file)
@@ -1,32 +1,41 @@
 #
+# TODO: - do something with rest of templates
+#      - drop fr_translation.patch when french translation is fixed
+#      - consider rename to kmymoney
+#
 # Conditional build:
 %bcond_without kbanking        # kbanking support
-#
+
 %define                real_name kmymoney
 Summary:       Personal finance application similar to Microsoft Money
 Summary(pl.UTF-8):     Program do finansów osobistych, podobny do Microsoft Money
 Name:          kmymoney2
-Version:       4.5
-Release:       0.1
-License:       GPL
+Version:       4.6.4
+Release:       4
+License:       GPL v2+
 Group:         X11/Applications
-Source0:       http://downloads.sourceforge.net/kmymoney2/%{version}/%{real_name}-%{version}.tar.bz2
-# Source0-md5: a764fe259c7885f22a10049cef68398e
+Source0:       http://downloads.sourceforge.net/kmymoney2/%{real_name}-%{version}.tar.xz
+# Source0-md5: 0674b9ef7ed5447e6a88b56a834389f8
 URL:           http://kmymoney2.sourceforge.net/
-#Patch0:               %{name}-desktop.patch
-#%%{?with_kbanking:BuildRequires:      aqbanking-frontend-kbanking-devel >= 0.1.0.0}
-#BuildRequires:        arts-qt-devel
-#BuildRequires:        artsc-devel
+Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-fr_translation.patch
+%{?with_kbanking:BuildRequires:        aqbanking-devel >= 5.0.0}
 BuildRequires: automoc4
+BuildRequires: cmake
+BuildRequires: gpgme-devel
+%{?with_kbanking:BuildRequires:        gwenhywfar-devel >= 4.0.0}
+%{?with_kbanking:BuildRequires:        gwenhywfar-gui-qt4-devel >= 4.0.0}
 BuildRequires: kde4-kdelibs-devel
 BuildRequires: kde4-kdepimlibs-devel
+BuildRequires: libalkimia-devel >= 4.3.1
 BuildRequires: libassuan-devel
-#BuildRequires:        libofx-devel
-#BuildRequires:        libxml2-devel >= 2.0.0
+BuildRequires: libical-c++-devel
+BuildRequires: libofx-devel >= 0.9.4
+BuildRequires: libxml++2-devel
 BuildRequires: pth-devel
-BuildRequires: rpmbuild(macros) >= 1.577
+BuildRequires: qt4-build
+BuildRequires: rpmbuild(macros) >= 1.600
 BuildRequires: soprano-devel
-#BuildRequires:        xrender-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -36,8 +45,9 @@ software package, for personal or small-business use.
 
 %description -l pl.UTF-8
 KMyMoney stara się być w pełni funkcjonalnym zamiennikiem dla
-windowsowych programów finansowych. Jest to kompletny system podwójnego
-księgowania przeznaczony do użytku osobistego i dla małych firm.
+windowsowych programów finansowych. Jest to kompletny system
+podwójnego księgowania przeznaczony do użytku osobistego i dla małych
+firm.
 
 %package devel
 Summary:       kmymoney2 - header files
@@ -81,17 +91,14 @@ Wtyczka KBanking dla KMyMoney2.
 
 %prep
 %setup -q -n kmymoney-%{version}
-#%%patch0 -p1
+%patch0 -p1
+%patch1 -p1
 
 %build
-#CONFIG_SHELL="/bin/bash" \
-#%%configure \
-#%     %{?with_kbanking:--enable-kbanking} \
-#%     --with-qt-libraries=%{_libdir}
-
 install -d build
 cd build
-%cmake ..
+%cmake .. \
+       %{?with_kbanking:-DENABLE_KBANKING="on"}
 
 %{__make}
 
@@ -99,18 +106,14 @@ cd build
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_desktopdir}
 
-#%%{__make} install \
-#      DESTDIR=$RPM_BUILD_ROOT \
-#      kde_htmldir=%{_kdedocdir}
-
 %{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
-#mv $RPM_BUILD_ROOT%{_iconsdir}/{l,L}ocolor
-#mv $RPM_BUILD_ROOT%{_datadir}/locale/pt{_PT,}
-
 %find_lang %{real_name} --with-kde
 
+# not supported in pld
+%{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/locolor
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -120,71 +123,99 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{real_name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/kmymoney
-%dir %{_datadir}/apps/kmymoney/
+%attr(755,root,root) %{_libdir}/libkmm_kdchart.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libkmm_kdchart.so.4
+%attr(755,root,root) %{_libdir}/libkmm_mymoney.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libkmm_mymoney.so.4
+%attr(755,root,root) %{_libdir}/libkmm_plugin.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libkmm_plugin.so.4
+%attr(755,root,root) %{_libdir}/libkmm_widgets.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libkmm_widgets.so.4
+%attr(755,root,root) %{_libdir}/kde4/kcm_kmm_icalendarexport.so
+%attr(755,root,root) %{_libdir}/kde4/kcm_kmm_printcheck.so
+%attr(755,root,root) %{_libdir}/kde4/kmm_csvimport.so
+%attr(755,root,root) %{_libdir}/kde4/kmm_icalendarexport.so
+%attr(755,root,root) %{_libdir}/kde4/kmm_ofximport.so
+%attr(755,root,root) %{_libdir}/kde4/kmm_printcheck.so
+%attr(755,root,root) %{_libdir}/kde4/kmm_reconciliationreport.so
+%dir %{_datadir}/apps/kmymoney
 %{_datadir}/apps/kmymoney/icons
+%{_datadir}/apps/kmymoney/html
+%{_datadir}/apps/kmymoney/misc
 %{_datadir}/apps/kmymoney/pics
 %dir %{_datadir}/apps/kmymoney/templates
+%{_datadir}/apps/kmymoney/templates/C
+%lang(de_AT) %{_datadir}/apps/kmymoney/templates/de_AT
+%lang(de_CH) %{_datadir}/apps/kmymoney/templates/de_CH
+%lang(de_DE) %{_datadir}/apps/kmymoney/templates/de_DE
+%lang(dk) %{_datadir}/apps/kmymoney/templates/dk
+%lang(el_GR) %{_datadir}/apps/kmymoney/templates/el_GR
+%lang(en_CA) %{_datadir}/apps/kmymoney/templates/en_CA
 %lang(en_GB) %{_datadir}/apps/kmymoney/templates/en_GB
 %lang(en_US) %{_datadir}/apps/kmymoney/templates/en_US
+%lang(es_AR) %{_datadir}/apps/kmymoney/templates/es_AR
+%lang(es_ES) %{_datadir}/apps/kmymoney/templates/es_ES
+%lang(es_MX) %{_datadir}/apps/kmymoney/templates/es_MX
+%lang(fr_CA) %{_datadir}/apps/kmymoney/templates/fr_CA
+%lang(fr_CH) %{_datadir}/apps/kmymoney/templates/fr_CH
+%lang(fr_FR) %{_datadir}/apps/kmymoney/templates/fr_FR
+%lang(gl_ES) %{_datadir}/apps/kmymoney/templates/gl_ES
+%lang(hu_HU) %{_datadir}/apps/kmymoney/templates/hu_HU
 %lang(it) %{_datadir}/apps/kmymoney/templates/it
+%lang(ja) %{_datadir}/apps/kmymoney/templates/jp
+%lang(nl_NL) %{_datadir}/apps/kmymoney/templates/nl_NL
+%lang(pt_PT) %{_datadir}/apps/kmymoney/templates/pt_PT
 %lang(pt_BR) %{_datadir}/apps/kmymoney/templates/pt_BR
 %lang(sk) %{_datadir}/apps/kmymoney/templates/sk
+%lang(ro_RO) %{_datadir}/apps/kmymoney/templates/ro_RO
+%lang(ru_RU) %{_datadir}/apps/kmymoney/templates/ru_RU
+%lang(tr_TR) %{_datadir}/apps/kmymoney/templates/tr_TR
+%lang(uk_UA) %{_datadir}/apps/kmymoney/templates/uk_UA
 %lang(zh_CN) %{_datadir}/apps/kmymoney/templates/zh_CN
 %lang(zh_HK) %{_datadir}/apps/kmymoney/templates/zh_HK
 %lang(zh_TW) %{_datadir}/apps/kmymoney/templates/zh_TW
 %{_datadir}/apps/kmymoney/tips
-%dir %{_iconsdir}/*
-%dir %{_iconsdir}/*/*
-%dir %{_iconsdir}/*/*/*
-%{_iconsdir}/*/*/*/*.png
-%{_datadir}/kde4/services/*.desktop
-%{_datadir}/kde4/servicetypes/*.desktop
+%{_datadir}/apps/kmymoney/kmymoneyui.rc
+%dir %{_datadir}/apps/kmm_csvimport
+%{_datadir}/apps/kmm_csvimport/kmm_csvimport.rc
+%dir %{_datadir}/apps/kmm_icalendarexport
+%{_datadir}/apps/kmm_icalendarexport/kmm_icalendarexport.rc
+%dir %{_datadir}/apps/kmm_ofximport
+%{_datadir}/apps/kmm_ofximport/kmm_ofximport.rc
+%dir %{_datadir}/apps/kmm_printcheck
+%{_datadir}/apps/kmm_printcheck/check_template.html
+%{_datadir}/apps/kmm_printcheck/check_template_green_linen.html
+%{_datadir}/apps/kmm_printcheck/kmm_printcheck.rc
+%{_datadir}/config.kcfg/kmymoney.kcfg
+%{_datadir}/config/csvimporterrc
+%{_datadir}/mime/packages/x-kmymoney.xml
+%{_iconsdir}/hicolor/*/apps/kmymoney.png
+%{_iconsdir}/hicolor/*/mimetypes/kmy.png
+%{_desktopdir}/kde4/kmymoney.desktop
+%{_datadir}/kde4/services/kcm_kmm_icalendarexport.desktop
+%{_datadir}/kde4/services/kcm_kmm_printcheck.desktop
+%{_datadir}/kde4/services/kmm_csvimport.desktop
+%{_datadir}/kde4/services/kmm_icalendarexport.desktop
+%{_datadir}/kde4/services/kmm_kbanking.desktop
+%{_datadir}/kde4/services/kmm_ofximport.desktop
+%{_datadir}/kde4/services/kmm_printcheck.desktop
+%{_datadir}/kde4/services/kmm_reconciliationreport.desktop
+%{_datadir}/kde4/servicetypes/kmymoneyimporterplugin.desktop
+%{_datadir}/kde4/servicetypes/kmymoneyplugin.desktop
 %{_mandir}/man1/kmymoney.1*
 
-
-%if 0
-%attr(755,root,root) %{_libdir}/libkmm_mymoney.so.*.*.*
-%attr(755,root,root) %{_libdir}/libkmm_plugin.so.*.*.*
-%{_libdir}/libkmm_mymoney.la
-%{_libdir}/libkmm_plugin.la
-%attr(755,root,root) %{_libdir}/kde3/kmm_ofximport.so
-%{_libdir}/kde3/kmm_ofximport.la
-%dir %{_datadir}/apps/kmymoney2
-%dir %{_datadir}/apps/kmymoney2/templates
-%{_datadir}/apps/kmymoney2/templates/C
-%{_datadir}/apps/kmymoney2/templates/README
-%{_datadir}/apps/kmymoney2/templates/en_GB
-%{_datadir}/apps/kmymoney2/templates/en_US
-%dir %{_datadir}/apps/kmymoney2/html
-%{_datadir}/apps/kmymoney2/html/home.html
-%{_datadir}/apps/kmymoney2/html/whats_new.html
-%{_datadir}/apps/kmymoney2/html/*.css
-%{_datadir}/apps/kmymoney2/html/images
-%lang(pt_BR) %{_datadir}/apps/kmymoney2/html/home_br.pt_BR.html
-%lang(de) %{_datadir}/apps/kmymoney2/html/home_de.de.html
-%lang(de) %{_datadir}/apps/kmymoney2/html/whats_new_de.html
-%lang(fr) %{_datadir}/apps/kmymoney2/html/home_fr.fr.html
-%lang(fr) %{_datadir}/apps/kmymoney2/html/whats_new_fr.html
-%lang(gl) %{_datadir}/apps/kmymoney2/html/home_gl.html
-%lang(gl) %{_datadir}/apps/kmymoney2/html/whats_new_gl.html
-%lang(it) %{_datadir}/apps/kmymoney2/html/home_it.html
-%lang(it) %{_datadir}/apps/kmymoney2/html/whats_new_it.html
-%lang(ru) %{_datadir}/apps/kmymoney2/html/home_ru.ru.html
-%{_datadir}/apps/kmymoney2/kmymoney2ui.rc
-%{_desktopdir}/kde/*.desktop
-%{_datadir}/mimelnk/application/x-kmymoney2.desktop
-%endif
-
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libkmm_kdchart.so
 %attr(755,root,root) %{_libdir}/libkmm_mymoney.so
 %attr(755,root,root) %{_libdir}/libkmm_plugin.so
-%dir %{_includedir}/kmymoney
-%{_includedir}/kmymoney/*.h
+%attr(755,root,root) %{_libdir}/libkmm_widgets.so
+%{_includedir}/kmymoney
 
+%if %{with kbanking}
 %files kbanking
 %defattr(644,root,root,755)
-#%%attr(755,root,root) %{_libdir}/kde3/kmm_kbanking.so
-#%%{_libdir}/kde3/kmm_kbanking.la
-#%%{_datadir}/apps/kmm_kbanking
-#%%{_datadir}/services/kmm_kbanking.desktop
+%attr(755,root,root) %{_libdir}/kde4/kmm_kbanking.so
+%dir %{_datadir}/apps/kmm_kbanking
+%{_datadir}/apps/kmm_kbanking/kmm_kbanking.rc
+%endif
This page took 0.045586 seconds and 4 git commands to generate.