parent
e3e089f270
commit
ce7695882b
@ -0,0 +1,12 @@
|
|||||||
|
--- ./kmymoney2/mymoney/mymoneyfile.cpp.ORI 2011-11-26 18:31:18.266423206 +0100
|
||||||
|
+++ ./kmymoney2/mymoney/mymoneyfile.cpp 2011-11-26 18:31:26.417214675 +0100
|
||||||
|
@@ -1940,7 +1940,8 @@
|
||||||
|
|
||||||
|
const MyMoneySecurity& curr = d->m_cache.security(id);
|
||||||
|
if(curr.id().isEmpty())
|
||||||
|
- throw new MYMONEYEXCEPTION("Currency not found.");
|
||||||
|
+ return baseCurrency();
|
||||||
|
+// throw new MYMONEYEXCEPTION("Currency not found.");
|
||||||
|
return curr;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
--- kmymoney/doc/en/Makefile.am.ORI 2011-11-26 17:57:22.473298551 +0100
|
||||||
|
+++ kmymoney/doc/en/Makefile.am 2011-11-26 17:58:18.611423284 +0100
|
||||||
|
@@ -111,7 +111,7 @@
|
||||||
|
kmymoney-user.pdf: $(DOCBOOK_FILES) $(SCREENSHOT_FILES)
|
||||||
|
$(MAKE) get-files
|
||||||
|
$(MEINPROC) --check --stylesheet `dirname $(KDE_XSL_STYLESHEET)`/kde-nochunk.xsl $(srcdir)/index.docbook -o index.html;
|
||||||
|
- recode utf8..latin1 index.html
|
||||||
|
+ recode utf8..latin1 index.html || :
|
||||||
|
html2ps -o kmymoney-user.ps -n index.html
|
||||||
|
ps2pdf kmymoney-user.ps kmymoney-user.pdf
|
||||||
|
rm index.html kmymoney-user.ps
|
||||||
|
--- kmymoney/developer-doc/phb/Makefile.am.ORI 2011-11-26 12:00:54.708855347 -0500
|
||||||
|
+++ kmymoney/developer-doc/phb/Makefile.am 2011-11-26 12:01:01.683692300 -0500
|
||||||
|
@@ -106,7 +106,7 @@
|
||||||
|
kmymoney-phb.pdf: $(DOCBOOK_FILES)
|
||||||
|
$(MAKE) get-files
|
||||||
|
$(MEINPROC) --stylesheet `dirname $(KDE_XSL_STYLESHEET)`/kde-nochunk.xsl $(srcdir)/phb.docbook -o index.html
|
||||||
|
- recode utf8..latin1 index.html
|
||||||
|
+ recode utf8..latin1 index.html || :
|
||||||
|
html2ps -o kmymoney-phb.ps -n index.html
|
||||||
|
ps2pdf kmymoney-phb.ps kmymoney-phb.pdf
|
||||||
|
rm index.html kmymoney-phb.ps
|
After Width: | Height: | Size: 557 B |
@ -0,0 +1,199 @@
|
|||||||
|
# Default version for this component
|
||||||
|
%define kdecomp kmymoney
|
||||||
|
%define version 1.0.4
|
||||||
|
%define release 1
|
||||||
|
|
||||||
|
# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt".
|
||||||
|
%if "%{?_prefix}" != "/usr"
|
||||||
|
%define _variant .opt
|
||||||
|
%define _docdir %{_prefix}/share/doc
|
||||||
|
%endif
|
||||||
|
|
||||||
|
# TDE 3.5.13 specific building variables
|
||||||
|
BuildRequires: autoconf automake libtool m4
|
||||||
|
%define tde_docdir %{_docdir}/kde
|
||||||
|
%define tde_includedir %{_includedir}/kde
|
||||||
|
%define tde_libdir %{_libdir}/trinity
|
||||||
|
|
||||||
|
|
||||||
|
Name: trinity-%{kdecomp}
|
||||||
|
Summary: personal finance manager for TDE
|
||||||
|
|
||||||
|
Version: %{?version}
|
||||||
|
Release: %{?release}%{?dist}%{?_variant}
|
||||||
|
|
||||||
|
License: GPLv2+
|
||||||
|
Group: Applications/Utilities
|
||||||
|
|
||||||
|
Vendor: Trinity Project
|
||||||
|
Packager: Francois Andriot <francois.andriot@free.fr>
|
||||||
|
URL: http://www.trinitydesktop.org/
|
||||||
|
|
||||||
|
Prefix: %{_prefix}
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
|
Source0: %{kdecomp}-3.5.13.tar.gz
|
||||||
|
Source1: kmymoneytitlelabel.png
|
||||||
|
Patch0: kmymoney-3.5.13-recode_ftbfs.patch
|
||||||
|
Patch1: kmymoney-3.5.13-default_money_crash.patch
|
||||||
|
|
||||||
|
BuildRequires: tqtinterface-devel
|
||||||
|
BuildRequires: trinity-arts-devel
|
||||||
|
BuildRequires: trinity-kdelibs-devel
|
||||||
|
BuildRequires: trinity-kdebase-devel
|
||||||
|
BuildRequires: desktop-file-utils
|
||||||
|
|
||||||
|
BuildRequires: recode
|
||||||
|
BuildRequires: html2ps
|
||||||
|
BuildRequires: opensp-devel
|
||||||
|
BuildRequires: libofx-devel
|
||||||
|
|
||||||
|
Requires: %{name}-common == %{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
KMyMoney is the Personal Finance Manager for TDE. It operates similar to
|
||||||
|
MS-Money and Quicken, supports different account types, categorisation of
|
||||||
|
expenses, QIF import/export, multiple currencies and initial online banking
|
||||||
|
support.
|
||||||
|
|
||||||
|
|
||||||
|
%package common
|
||||||
|
Summary: KMyMoney architecture independent files
|
||||||
|
Group: Applications/Utilities
|
||||||
|
Requires: %{name} == %{version}
|
||||||
|
|
||||||
|
%description common
|
||||||
|
This package contains architecture independent files needed for KMyMoney to
|
||||||
|
run properly. It also provides KMyMoney documentation. Therefore, unless you
|
||||||
|
have '%{name}' package installed, you will hardly find this package useful.
|
||||||
|
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: KMyMoney development files
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %{name} == %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains development files needed for KMyMoney plugins.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n applications/%{kdecomp}
|
||||||
|
%patch0 -p1
|
||||||
|
#patch1 -p1
|
||||||
|
%__install -m644 %{SOURCE1} kmymoney2/widgets/
|
||||||
|
|
||||||
|
# Ugly hack to modify TQT include directory inside autoconf files.
|
||||||
|
# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 !
|
||||||
|
%__sed -i admin/acinclude.m4.in \
|
||||||
|
-e "s,/usr/include/tqt,%{_includedir}/tqt,g" \
|
||||||
|
-e "s,kde_htmldir='.*',kde_htmldir='%{tde_docdir}/HTML',g"
|
||||||
|
|
||||||
|
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
||||||
|
%__cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh"
|
||||||
|
%__make -f "admin/Makefile.common"
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
export LDFLAGS="-L%{_libdir} -I%{_includedir}"
|
||||||
|
|
||||||
|
%configure \
|
||||||
|
--disable-rpath \
|
||||||
|
--with-extra-includes=%{_includedir}/tqt \
|
||||||
|
--enable-closure \
|
||||||
|
--enable-pdf-docs \
|
||||||
|
--enable-ofxplugin \
|
||||||
|
--enable-ofxbanking \
|
||||||
|
--enable-qtdesigner \
|
||||||
|
--enable-sqlite3
|
||||||
|
|
||||||
|
%__make %{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
export PATH="%{_bindir}:${PATH}"
|
||||||
|
%__rm -rf %{buildroot}
|
||||||
|
%__make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## File lists
|
||||||
|
# HTML (1.0)
|
||||||
|
HTML_DIR=$(kde-config --expandvars --install html)
|
||||||
|
if [ -d %{buildroot}$HTML_DIR ]; then
|
||||||
|
for lang_dir in %{buildroot}$HTML_DIR/* ; do
|
||||||
|
if [ -d $lang_dir ]; then
|
||||||
|
lang=$(basename $lang_dir)
|
||||||
|
echo "%lang($lang) $HTML_DIR/$lang/*" >> %{name}.lang
|
||||||
|
# replace absolute symlinks with relative ones
|
||||||
|
pushd $lang_dir
|
||||||
|
for i in *; do
|
||||||
|
[ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%__rm -rf %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||||||
|
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||||
|
|
||||||
|
%postun
|
||||||
|
/sbin/ldconfig
|
||||||
|
touch --no-create %{_datadir}/icons/hicolor || :
|
||||||
|
gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_bindir}/kmymoney
|
||||||
|
%{_bindir}/kmymoney2
|
||||||
|
%{_datadir}/applications/kde/kmymoney2.desktop
|
||||||
|
%{_datadir}/mimelnk/application/x-kmymoney2.desktop
|
||||||
|
%{_datadir}/servicetypes/kmymoneyimporterplugin.desktop
|
||||||
|
%{_datadir}/servicetypes/kmymoneyplugin.desktop
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%{tde_libdir}/kmm_ofximport.la
|
||||||
|
%{tde_libdir}/kmm_ofximport.so
|
||||||
|
|
||||||
|
%files common
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_datadir}/apps/kmymoney2/html/
|
||||||
|
%{_datadir}/apps/kmymoney2/icons/*/*/*/*.png
|
||||||
|
%{_datadir}/apps/kmymoney2/kmymoney2ui.rc
|
||||||
|
%{_datadir}/apps/kmymoney2/misc/financequote.pl
|
||||||
|
%{_datadir}/apps/kmymoney2/pics/*.png
|
||||||
|
%{_datadir}/apps/kmymoney2/templates/*/*.kmt
|
||||||
|
%{_datadir}/apps/kmymoney2/tips
|
||||||
|
%{_datadir}/config.kcfg/kmymoney2.kcfg
|
||||||
|
%{_datadir}/icons/*/*/*/*.png
|
||||||
|
%{_datadir}/icons/*/*/*.svgz
|
||||||
|
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
||||||
|
%{tde_docdir}/HTML/en/kmymoney2/*.docbook
|
||||||
|
%{tde_docdir}/HTML/en/kmymoney2/*.png
|
||||||
|
%{tde_docdir}/HTML/en/kmymoney2/common
|
||||||
|
%{tde_docdir}/HTML/en/kmymoney2/index.cache.bz2
|
||||||
|
%{_mandir}/man1/kmymoney2.*
|
||||||
|
%{_datadir}/apps/kmm_ofximport/kmm_ofximport.rc
|
||||||
|
%{_datadir}/services/kmm_ofximport.desktop
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_includedir}/kmymoney/*.h
|
||||||
|
%{_libdir}/libkmm_kdchart.la
|
||||||
|
%{_libdir}/libkmm_mymoney.la
|
||||||
|
%{_libdir}/libkmm_plugin.la
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_usr}/%{_lib}/qt-3.3/plugins/sqldrivers/libsqlite3.lib64.so
|
||||||
|
%{_usr}/%{_lib}/qt-3.3/plugins/designer/libkmymoney.so
|
||||||
|
|
||||||
|
%Changelog
|
||||||
|
* Sun Oct 30 2011 Francois Andriot <francois.andriot@free.fr> - 1.0.4-1
|
||||||
|
- Initial release for TDE 3.5.13 on RHEL 6, RHEL 5 and Fedora 15
|
Loading…
Reference in new issue