]> git.pld-linux.org Git - packages/kmymoney.git/blobdiff - kmymoney2.spec
- do not build french doc translation (it's broken)
[packages/kmymoney.git] / kmymoney2.spec
index 9847faa00d4da9e50d48b628a969088567c88b97..794bdd6c8971becde409716a205509868ec44388 100644 (file)
@@ -1,4 +1,8 @@
 #
+# TODO: - do something with rest of templates
+#      - do we really need kmymoney2-devel package?
+#      - drop fr_translation.patch when french translation is fixed
+#
 # Conditional build:
 %bcond_without kbanking        # kbanking support
 #
 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.0
+Release:       1
+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.bz2
+# Source0-md5: 166131b53da426643bd40a0ca6f5c022
 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
+%{?with_kbanking:BuildRequires:        gwenhywfar-devel >= 4.0.0}
+%{?with_kbanking:BuildRequires:        gwenhywfar-qt-devel >= 4.0.0}
 BuildRequires: kde4-kdelibs-devel
 BuildRequires: kde4-kdepimlibs-devel
+BuildRequires: gpgme-devel
+BuildRequires: libalkimia-devel >= 4.3.1
 BuildRequires: libassuan-devel
-#BuildRequires:        libofx-devel
-#BuildRequires:        libxml2-devel >= 2.0.0
+BuildRequires: libofx-devel >= 0.9.4
 BuildRequires: pth-devel
-BuildRequires: rpmbuild(macros) >= 1.577
-#BuildRequires:        xrender-devel
+BuildRequires: qt4-build
+BuildRequires: rpmbuild(macros) >= 1.600
+BuildRequires: soprano-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -35,8 +43,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
@@ -80,17 +89,15 @@ 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}
 
@@ -98,16 +105,9 @@ 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
 
 %clean
@@ -119,6 +119,20 @@ rm -rf $RPM_BUILD_ROOT
 %files -f %{real_name}.lang
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/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_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/pics
@@ -132,58 +146,31 @@ rm -rf $RPM_BUILD_ROOT
 %lang(zh_HK) %{_datadir}/apps/kmymoney/templates/zh_HK
 %lang(zh_TW) %{_datadir}/apps/kmymoney/templates/zh_TW
 %{_datadir}/apps/kmymoney/tips
+%{_datadir}/apps/kmymoney/kmymoneyui.rc
+%dir %{_datadir}/apps/kmm_ofximport
+%{_datadir}/apps/kmm_ofximport/kmm_ofximport.rc
+%dir %{_datadir}/apps/kmm_printcheck
+%{_datadir}/apps/kmm_printcheck/kmm_printcheck.rc
 %dir %{_iconsdir}/*
 %dir %{_iconsdir}/*/*
 %dir %{_iconsdir}/*/*/*
 %{_iconsdir}/*/*/*/*.png
+%{_desktopdir}/kde4/kmymoney.desktop
 %{_datadir}/kde4/services/*.desktop
 %{_datadir}/kde4/servicetypes/*.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
+%attr(755,root,root) %{_libdir}/libkmm_widgets.so
 %dir %{_includedir}/kmymoney
 %{_includedir}/kmymoney/*.h
 
+%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
+%endif
This page took 0.036616 seconds and 4 git commands to generate.