]>
Commit | Line | Data |
---|---|---|
1d7c87b2 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | # | |
5 | Summary: AqFinance - financial application with GUI | |
6 | Summary(de.UTF-8): AqFinance - eine graphische Anwendung zur Verwaltung von Finanzen | |
7 | Summary(pl.UTF-8): AqFinance - aplikacja finansowa z graficznym interfejsem | |
8 | Name: aqfinance | |
9 | Version: 0.9.108beta | |
10 | Release: 1 | |
11 | License: GPL v2+ | |
12 | Group: X11/Applications | |
13 | # https://www.aquamaniac.de/sites/download/packages.php?showall=1 | |
14 | Source0: https://www.aquamaniac.de/sites/download/download.php?package=12&release=49&file=01&dummy=/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 4ae8f233d71597802da39cd3aea5a7c9 | |
16 | Patch0: %{name}-update.patch | |
17 | Patch1: %{name}-make.patch | |
18 | URL: https://www.aquamaniac.de/sites/aqfinance/ | |
19 | BuildRequires: aqbanking-backend-aqhbci-devel >= 5 | |
20 | BuildRequires: aqbanking-devel >= 5 | |
21 | BuildRequires: aqdatabase-devel | |
22 | BuildRequires: aqfoxext-devel | |
23 | BuildRequires: autoconf >= 2.60 | |
24 | BuildRequires: automake | |
25 | BuildRequires: cairo-devel | |
26 | BuildRequires: fox16-devel >= 1.6 | |
27 | BuildRequires: gettext-tools | |
28 | BuildRequires: gwenhywfar-devel >= 4 | |
29 | BuildRequires: gwenhywfar-fox-devel >= 4 | |
30 | BuildRequires: libstdc++-devel | |
31 | BuildRequires: libtool >= 2:1.5 | |
32 | BuildRequires: pkgconfig | |
33 | Requires: aqbanking >= 5 | |
34 | Requires: aqbanking-backend-aqhbci >= 5 | |
35 | Requires: gwenhywfar-fox >= 4 | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | AqFinance is a financial application with GUI, successor of | |
40 | QBankManager. | |
41 | ||
42 | It supports (via AqBanking) HBCI, OFX DirectConnect and EBICS. | |
43 | ||
44 | %description -l de.UTF-8 | |
45 | AqFinance ist eine grafische Anwendung zur Verwaltung von Finanzen und | |
46 | der Nachfolger von QBankManager. | |
47 | ||
48 | Es bietet via AqBanking Unterstützung für HBCI, OFX DirectConnect und | |
49 | EBICS. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | AqFinance to aplikacja finansowa z graficznym interfejsem, następca | |
53 | programu QBankManager. | |
54 | ||
55 | Poprzez AqBanking ma obsługę HBCI, OFX DirectConnect oraz EBICS. | |
56 | ||
57 | %package devel | |
58 | Summary: Header files for AqFinance library | |
59 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki AqFinance | |
60 | Group: Development/Libraries | |
61 | Requires: %{name} = %{version}-%{release} | |
62 | Requires: aqbanking-devel >= 5 | |
63 | Requires: aqdatabase-devel | |
64 | Requires: gwenhywfar-devel >= 4 | |
65 | ||
66 | %description devel | |
67 | Header files for AqFinance library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki AqFinance. | |
71 | ||
72 | %package static | |
73 | Summary: Static AqFinance library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka AqFinance | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static AqFinance library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka AqFinance. | |
83 | ||
84 | %prep | |
85 | %setup -q | |
86 | %patch0 -p1 | |
87 | %patch1 -p1 | |
88 | ||
89 | install -d aqfinance/report | |
90 | ln -s ../src/lib/engine aqfinance | |
91 | ln -s lib/book aqfinance/engine/book | |
92 | ln -s lib/modules aqfinance/engine/modules | |
93 | ln -s ../src/lib/graphics aqfinance | |
94 | ln -s ../src/lib/graphs aqfinance | |
95 | ln -s ../src/lib/print aqfinance | |
96 | ln -s ../src/lib/report2 aqfinance | |
97 | ln -s ../src/lib/update aqfinance | |
98 | cd aqfinance/report | |
99 | ln -s ../../src/lib/engine/lib/modules/report/*.h . | |
100 | ln -s ../../src/lib/engine/plugins/report/csv/*.h . | |
101 | ln -s ../../src/lib/engine/plugins/report/htmlbase/*.h . | |
102 | ||
103 | %build | |
104 | %{__libtoolize} | |
105 | %{__aclocal} -I m4 | |
106 | %{__autoconf} | |
107 | %{__autoheader} | |
108 | %{__automake} | |
109 | %configure \ | |
110 | %{!?with_static_libs:--disable-static} | |
111 | ||
112 | %{__make} | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %{__make} install \ | |
118 | DESTDIR=$RPM_BUILD_ROOT | |
119 | ||
120 | # obsoleted by -config and .m4 | |
121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libaqfinance.la | |
122 | ||
123 | %find_lang %{name} | |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files -f %{name}.lang | |
132 | %defattr(644,root,root,755) | |
133 | %doc AUTHORS README TODO | |
134 | %attr(755,root,root) %{_bindir}/aqfinance | |
135 | %attr(755,root,root) %{_bindir}/aqfinance-cli | |
136 | %attr(755,root,root) %{_libdir}/libaqfinance.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libaqfinance.so.0 | |
138 | %dir %{_datadir}/aqfinance | |
139 | %dir %{_datadir}/aqfinance/accounts | |
140 | %{_datadir}/aqfinance/accounts/c | |
141 | %lang(de_DE) %{_datadir}/aqfinance/accounts/de_DE | |
142 | %{_datadir}/aqfinance/icons | |
143 | ||
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
146 | %attr(755,root,root) %{_bindir}/aqfinance-config | |
147 | %attr(755,root,root) %{_libdir}/libaqfinance.so | |
148 | %{_includedir}/aqfinance | |
149 | %{_datadir}/aqfinance/typemaker2 | |
150 | %{_aclocaldir}/aqfinance.m4 | |
151 | ||
152 | %if %{with static_libs} | |
153 | %files static | |
154 | %defattr(644,root,root,755) | |
155 | %{_libdir}/libaqfinance.a | |
156 | %endif |