1 |
%define _disable_ld_no_undefined 1 |
2 |
# fwang: we need to push *.so into main package, because they will be dlopened at runtime, see mga#4882 & mga#14996 |
3 |
%global __requires_exclude devel\\(lib(gnc|cairo|gdk|glib|gmodule|gobject|gtk|guile|m|pango|xml2|z)(.*)\\)|libgncmod- |
4 |
%global __provides_exclude devel\\(libgnc(.*)\\) |
5 |
|
6 |
%define lib_major 0 |
7 |
%define libname %mklibname %{name} %{lib_major} |
8 |
%define libnamedev %mklibname -d %{name} |
9 |
|
10 |
%define doc_version 2.6.8 |
11 |
Name: gnucash |
12 |
Summary: Application to keep track of your finances |
13 |
Version: 2.6.8 |
14 |
Release: %mkrel 1 |
15 |
License: GPLv2+ |
16 |
Group: Office/Finance |
17 |
Source0: http://downloads.sourceforge.net/gnucash/%{name}-%{version}.tar.bz2 |
18 |
Source1: http://downloads.sourceforge.net/gnucash/%{name}-docs-%{doc_version}.tar.gz |
19 |
Source5: engine-common.i |
20 |
URL: http://www.gnucash.org/ |
21 |
Requires: guile |
22 |
Requires: guile-runtime |
23 |
Requires: slib |
24 |
Requires: yelp |
25 |
Requires: dconf |
26 |
Recommends: perl-Finance-Quote |
27 |
# remove for mageia 3 |
28 |
Provides: gnucash-sql |
29 |
Obsoletes: gnucash-sql <= 2.2.9 |
30 |
BuildRequires: pkgconfig(aqbanking) >= 4.0.0 |
31 |
BuildRequires: pkgconfig(gdk-pixbuf-2.0) |
32 |
BuildRequires: pkgconfig(glib-2.0) >= 2.28.0 |
33 |
BuildRequires: pkgconfig(gmodule-2.0) |
34 |
BuildRequires: pkgconfig(gnome-keyring-1) >= 0.6 |
35 |
BuildRequires: pkgconfig(gobject-2.0) |
36 |
BuildRequires: pkgconfig(gthread-2.0) |
37 |
BuildRequires: pkgconfig(gtk+-2.0) >= 2.24.0 |
38 |
BuildRequires: pkgconfig(gtkmm-2.4) >= 2.24 |
39 |
BuildRequires: pkgconfig(guile-2.0) >= 2.0.0 |
40 |
BuildRequires: pkgconfig(gwengui-gtk2) |
41 |
BuildRequires: pkgconfig(gwenhywfar) |
42 |
BuildRequires: pkgconfig(libgnomecanvas-2.0) |
43 |
BuildRequires: pkgconfig(libgoffice-0.8) >= 0.7.0 |
44 |
BuildRequires: pkgconfig(libofx) |
45 |
BuildRequires: pkgconfig(libxml-2.0) >= 2.5.10 |
46 |
BuildRequires: pkgconfig(webkit-1.0) >= 1.0 |
47 |
BuildRequires: guile |
48 |
BuildRequires: guile-runtime |
49 |
BuildRequires: pkgconfig(dbi) |
50 |
BuildRequires: libdbi-drivers-dbd-sqlite3 |
51 |
Requires: libdbi-drivers-dbd-sqlite3 |
52 |
BuildRequires: pkgconfig(ktoblzcheck) |
53 |
BuildRequires: pkgconfig(python) |
54 |
BuildRequires: intltool |
55 |
BuildRequires: scrollkeeper |
56 |
BuildRequires: xsltproc |
57 |
BuildRequires: slib |
58 |
BuildRequires: gettext-devel |
59 |
BuildRequires: swig |
60 |
BuildRequires: locales-en |
61 |
BuildRequires: locales-fr |
62 |
|
63 |
%description |
64 |
GnuCash is a personal finance manager. A check-book like |
65 |
register GUI allows you to enter and track bank accounts, |
66 |
stocks, income and even currency trades. The interface is |
67 |
designed to be simple and easy to use, but is backed with |
68 |
double-entry accounting principles to ensure balanced books. |
69 |
|
70 |
%package ofx |
71 |
Summary: Enables OFX importing in GnuCash |
72 |
Group: Office/Finance |
73 |
Requires: gnucash = %{version}-%{release} |
74 |
|
75 |
%description ofx |
76 |
This package adds OFX file import support to the base |
77 |
GnuCash package. Install this package if you want to |
78 |
import OFX files. |
79 |
|
80 |
%package hbci |
81 |
Summary: Enables HBCI importing in GnuCash |
82 |
Group: Office/Finance |
83 |
Requires: gnucash = %{version}-%{release} |
84 |
# only require the wizard, it will pull aqhbci package too |
85 |
#gw it really required qt3-wizard which wasn't included in aqbanking for a while |
86 |
Requires: aqhbci |
87 |
|
88 |
%description hbci |
89 |
This package adds HBCI file import support to the base |
90 |
GnuCash package. Install this package if you want to |
91 |
import HBCI files. |
92 |
|
93 |
%package -n %{libnamedev} |
94 |
Group: Development/C |
95 |
Summary: Libraries needed to develop for gnucash |
96 |
Requires: %{libname} = %{version}-%{release} |
97 |
Provides: %{name}-devel = %{version}-%{release} |
98 |
Provides: lib%{name}-devel = %{version}-%{release} |
99 |
Obsoletes: %{name}-devel < %{version}-%{release} |
100 |
Obsoletes: %{mklibname -d %name 0} |
101 |
Conflicts: %{mklibname gnucash 0} < 2.6.4-4 |
102 |
|
103 |
%description -n %{libnamedev} |
104 |
Libraries needed to develop for gnucash. |
105 |
|
106 |
%package -n %{libname} |
107 |
Summary: Libraries for gnucash |
108 |
Group: System/Libraries |
109 |
Conflicts: %{libnamedev} < 2.4.10-3 |
110 |
|
111 |
%description -n %{libname} |
112 |
This package provides libraries to use gnucash. |
113 |
|
114 |
%package -n python-gnucash |
115 |
Summary: Python module for gnucash |
116 |
Group: System/Libraries |
117 |
Requires: ipython |
118 |
Requires: python-gtk |
119 |
Requires: python-matplotlib |
120 |
|
121 |
%description -n python-gnucash |
122 |
This package provides python bindings to interact with gnucash. |
123 |
|
124 |
%prep |
125 |
%setup -q -a 1 |
126 |
|
127 |
%build |
128 |
%configure2_5x --disable-schemas-compile --disable-dependency-tracking \ |
129 |
--enable-aqbanking --enable-python |
130 |
%make |
131 |
|
132 |
pushd gnucash-docs-%{doc_version} |
133 |
%configure2_5x --localstatedir=/var/lib |
134 |
popd |
135 |
|
136 |
%install |
137 |
%makeinstall_std |
138 |
%makeinstall_std -C gnucash-docs-%{doc_version} |
139 |
|
140 |
%find_lang %name --with-gnome |
141 |
find %{buildroot} -name '*.la' -delete |
142 |
rm -fr %{buildroot}%{_libexecdir}/gnucash/src/libqof/qof/test |
143 |
|
144 |
%check |
145 |
#make check |
146 |
|
147 |
%files -n %{libnamedev} |
148 |
%{_bindir}/gnucash-make-guids |
149 |
%{_bindir}/gnucash-valgrind |
150 |
%{_includedir}/gnucash |
151 |
|
152 |
%files -n %{libname} |
153 |
%_libdir/*.so.* |
154 |
%{_libdir}/*.so |
155 |
|
156 |
%files -f %{name}.lang |
157 |
%config(noreplace) %{_sysconfdir}/%{name} |
158 |
%{_bindir}/gnucash |
159 |
%{_bindir}/gnucash-env |
160 |
%{_bindir}/gnc-fq-check |
161 |
%{_bindir}/gnc-fq-dump |
162 |
%{_bindir}/gnc-fq-helper |
163 |
%{_bindir}/gnc-fq-update |
164 |
%_datadir/applications/%name.desktop |
165 |
%dir %{_libdir}/gnucash |
166 |
%{_libdir}/gnucash/*.so* |
167 |
%{_libdir}/gnucash/scm/ccache/2.0/* |
168 |
%{_libexecdir}/gnucash/overrides |
169 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.business.gschema.xml |
170 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.checkprinting.gschema.xml |
171 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.commodities.gschema.xml |
172 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.export.csv.gschema.xml |
173 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.gschema.xml |
174 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.import.csv.gschema.xml |
175 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.import.generic.gschema.xml |
176 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.import.qif.gschema.xml |
177 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.reconcile.gschema.xml |
178 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.sxs.gschema.xml |
179 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.totd.gschema.xml |
180 |
%{_datadir}/glib-2.0/schemas/org.gnucash.gschema.xml |
181 |
%{_datadir}/glib-2.0/schemas/org.gnucash.history.gschema.xml |
182 |
%{_datadir}/glib-2.0/schemas/org.gnucash.warnings.gschema.xml |
183 |
%{_datadir}/glib-2.0/schemas/org.gnucash.window.pages.account.tree.gschema.xml |
184 |
%{_datadir}/glib-2.0/schemas/org.gnucash.window.pages.gschema.xml |
185 |
%dir %{_datadir}/%{name} |
186 |
%{_datadir}/%{name}/accounts |
187 |
%{_datadir}/%{name}/checks |
188 |
%{_datadir}/%{name}/gtkbuilder |
189 |
%{_datadir}/%{name}/jqplot |
190 |
%{_datadir}/%{name}/pixmaps |
191 |
%{_datadir}/%{name}/ui |
192 |
%{_datadir}/%{name}/gnome |
193 |
%{_datadir}/%{name}/tip_of_the_day.list |
194 |
%{_datadir}/%{name}/make-prefs-migration-script.xsl |
195 |
%{_datadir}/%{name}/migratable-prefs.xml |
196 |
%_datadir/icons/hicolor/*/apps/gnucash* |
197 |
%{_datadir}/%{name}/scm |
198 |
%{_datadir}/appdata/gnucash.appdata.xml |
199 |
%{_mandir}/*/* |
200 |
%doc %{_datadir}/gnome/help/gnucash-guide |
201 |
%doc %{_datadir}/gnome/help/gnucash-help |
202 |
%doc AUTHORS COPYING HACKING NEWS README* |
203 |
%doc doc/README.german doc/README.francais doc/guile-hackers.txt |
204 |
%doc %{_datadir}/doc/%{name}/* |
205 |
%exclude %{_libdir}/gnucash/libgncmod-ofx* |
206 |
%exclude %{_libdir}/gnucash/libgncmod-aqbanking* |
207 |
%exclude %{_datadir}/gnucash/ui/gnc-plugin-aqbanking-ui.xml |
208 |
%exclude %{_datadir}/gnucash/ui/gnc-plugin-ofx-ui.xml |
209 |
|
210 |
%files ofx |
211 |
%doc doc/README.OFX |
212 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.import.ofx.gschema.xml |
213 |
%{_libdir}/gnucash/libgncmod-ofx* |
214 |
%{_datadir}/gnucash/ui/gnc-plugin-ofx-ui.xml |
215 |
|
216 |
%files hbci |
217 |
%doc doc/README.HBCI |
218 |
%{_datadir}/glib-2.0/schemas/org.gnucash.dialogs.import.hbci.gschema.xml |
219 |
%{_libdir}/gnucash/libgncmod-aqbanking* |
220 |
%{_datadir}/gnucash/ui/gnc-plugin-aqbanking-ui.xml |
221 |
|
222 |
%files -n python-gnucash |
223 |
%python_sitearch/%name |
224 |
%{_datadir}/%{name}/python |