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