commit acf4bd99fcd7a2491d6f30a741cfb05b18db3b4e
Author: Jakub Bogusz <[email protected]>
Date:   Mon Feb 15 22:04:02 2016 +0100

    - updated to 0.9.10 (note: new soname)
    - adjusted for libxml++2
    - added flags patch (fixes CXXFLAGS passing)

 libofx-flags.patch | 11 +++++++++++
 libofx.spec        | 24 +++++++++++++++---------
 2 files changed, 26 insertions(+), 9 deletions(-)
---
diff --git a/libofx.spec b/libofx.spec
index e290945..f635b98 100644
--- a/libofx.spec
+++ b/libofx.spec
@@ -1,21 +1,22 @@
 Summary:       LibOFX library that allows applications to support OFX command 
responses
 Summary(pl.UTF-8):     Biblioteka LibOFX pozwalająca aplikacjom obsługiwać 
odpowiedzi na polecenia OFX
 Name:          libofx
-Version:       0.9.4
-Release:       2
+Version:       0.9.10
+Release:       1
 License:       GPL v2+
 Group:         Libraries
 Source0:       
http://downloads.sourceforge.net/libofx/%{name}-%{version}.tar.gz
-# Source0-md5: f2419bf8d01c0cff74efe7084e0a26c5
+# Source0-md5: adfa83a08d76b047f89a82d5b484f79b
 Patch0:                %{name}-system-wide-treehh.patch
 Patch1:                stdc++.patch
+Patch2:                %{name}-flags.patch
 URL:           http://libofx.sourceforge.net/
-BuildRequires: autoconf
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: curl-devel >= 7.9.7
-BuildRequires: libtool >= 2:1.4d
+BuildRequires: libtool >= 2:1.5
 BuildRequires: opensp-devel
-BuildRequires: libxml++-devel >= 2.6
+BuildRequires: libxml++2-devel >= 2.6
 BuildRequires: tree.hh
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -70,7 +71,8 @@ Statyczna biblioteka LibOFX.
 %setup -q
 %patch0 -p1
 %patch1 -p1
-rm -f lib/tree.hh
+%patch2 -p1
+%{__rm} lib/tree.hh
 
 %build
 %{__libtoolize}
@@ -78,6 +80,8 @@ rm -f lib/tree.hh
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+# C++ 11 is required by tree.hh 3+ and libxml++ 2.40+
+CXXFLAGS="%{rpmcxxflags} -std=c++0x"
 %configure \
        --with-opensp-libs=%{_libdir}
 
@@ -89,6 +93,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libofx.la
+# packaged as %doc
 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/libofx
 
 %clean
@@ -104,7 +111,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/ofxconnect
 %attr(755,root,root) %{_bindir}/ofxdump
 %attr(755,root,root) %{_libdir}/libofx.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libofx.so.4
+%attr(755,root,root) %ghost %{_libdir}/libofx.so.6
 %{_datadir}/libofx
 %{_mandir}/man1/ofxconnect.1*
 %{_mandir}/man1/ofxdump.1*
@@ -113,7 +120,6 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc doc/html
 %attr(755,root,root) %{_libdir}/libofx.so
-%{_libdir}/libofx.la
 %{_includedir}/libofx
 %{_pkgconfigdir}/libofx.pc
 
diff --git a/libofx-flags.patch b/libofx-flags.patch
new file mode 100644
index 0000000..a36f4f2
--- /dev/null
+++ b/libofx-flags.patch
@@ -0,0 +1,11 @@
+--- libofx-0.9.10/configure.in.orig    2014-09-12 21:44:44.000000000 +0200
++++ libofx-0.9.10/configure.in 2016-02-15 17:43:50.885542399 +0100
+@@ -64,7 +64,7 @@
+                         [Define if GCC visibility extensions are supported])
+       VISIBILITY_FLAGS="-fvisibility=hidden"
+       CFLAGS="$VISIBILITY_FLAGS $CFLAGS"
+-      CXXFLAGS="$VISIBILITY_FLAGS -fvisibility-inlines-hidden $CFLAGS"
++      CXXFLAGS="$VISIBILITY_FLAGS -fvisibility-inlines-hidden $CXXFLAGS"
+ fi
+ 
+ ## Pass -DIN_LIBOFX to the compiler so we can detect it and include config.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libofx.git/commitdiff/acf4bd99fcd7a2491d6f30a741cfb05b18db3b4e

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to