]>
Commit | Line | Data |
---|---|---|
1 | Summary: LibOFX library that allows applications to support OFX command responses | |
2 | Summary(pl.UTF-8): Biblioteka LibOFX pozwalająca aplikacjom obsługiwać odpowiedzi na polecenia OFX | |
3 | Name: libofx | |
4 | Version: 0.8.3 | |
5 | Release: 2 | |
6 | License: GPL | |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/libofx/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 26ef343ebf93dc6351c889a402e10d89 | |
10 | Patch0: %{name}-system-wide-treehh.patch | |
11 | URL: http://libofx.sourceforge.net/ | |
12 | BuildRequires: autoconf | |
13 | BuildRequires: automake | |
14 | BuildRequires: curl-devel >= 7.9.7 | |
15 | BuildRequires: libtool >= 2:1.4d | |
16 | BuildRequires: opensp-devel | |
17 | BuildRequires: tree.hh | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | This is the LibOFX library. It is a API designed to allow applications | |
22 | to very easily support OFX command responses, usually provided by | |
23 | financial institutions. See http://www.ofx.net/ofx/default.asp for | |
24 | details and specification. LibOFX is based on the excellent OpenSP | |
25 | library written by James Clark, and now part of the OpenJADE project | |
26 | (http://openjade.sourceforge.net/). LibOFX is written in C++, but | |
27 | provides a C style interface usable transparently from both C and C++ | |
28 | using a single include file. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Ten pakiet zawiera bibliotekę LibOFX. Jest to API zaprojektowane aby | |
32 | umożliwić aplikacjom w prosty sposób obsługiwać odpowiedzi na | |
33 | polecenia OFX, zwykle udostępniane przez instytucje finansowe. | |
34 | Szczegóły oraz specyfikację można znaleźć na stronie | |
35 | http://www.ofx.net/ofx/default.asp. LibOFX jest oparta na świetnej | |
36 | bibliotece OpenSP napisanej przez Jamesa Clarka, będącej teraz częścią | |
37 | projektu OpenJADE (http://openjade.sourceforge.net/). LibOFX jest | |
38 | napisana w C++, ale udostępnia interfejs w C, którego można używać w | |
39 | sposób przezroczysty z poziomu C i C++ przy użyciu tego samego pliku | |
40 | nagłówkowego. | |
41 | ||
42 | %package devel | |
43 | Summary: Header files for LibOFX library | |
44 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki LibOFX | |
45 | Group: Development/Libraries | |
46 | Requires: %{name} = %{version}-%{release} | |
47 | Requires: opensp-devel | |
48 | ||
49 | %description devel | |
50 | Header files for developing programs using LibOFX. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe do tworzenia programów z użyciem LibOFX. | |
54 | ||
55 | %package static | |
56 | Summary: Static version LibOFX library | |
57 | Summary(pl.UTF-8): Biblioteka statyczna LibOFX | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static LibOFX library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka LibOFX. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | %patch0 -p1 | |
70 | rm -f lib/tree.hh | |
71 | ||
72 | %build | |
73 | %{__libtoolize} | |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure \ | |
79 | --with-opensp-libs=%{_libdir} | |
80 | ||
81 | %{__make} | |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | rm -rf $RPM_BUILD_ROOT%{_docdir}/libofx | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files | |
98 | %defattr(644,root,root,755) | |
99 | %doc AUTHORS ChangeLog NEWS README | |
100 | %attr(755,root,root) %{_bindir}/ofx2qif | |
101 | %attr(755,root,root) %{_bindir}/ofxdump | |
102 | %attr(755,root,root) %{_libdir}/libofx.so.*.*.* | |
103 | %{_datadir}/libofx | |
104 | ||
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
107 | %doc doc/html | |
108 | %attr(755,root,root) %{_libdir}/libofx.so | |
109 | %{_libdir}/libofx.la | |
110 | %{_includedir}/libofx | |
111 | %{_pkgconfigdir}/libofx.pc | |
112 | ||
113 | %files static | |
114 | %defattr(644,root,root,755) | |
115 | %{_libdir}/libofx.a |