Summary: Qt API to store passwords and other secret data securely
Name: QtKeychain
-Version: 0.4.0
-Release: 2
+Version: 0.8.0
+Release: 1
License: Modified BSD License
Group: Libraries
Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: e4e48d8742a9fd2664425d58be236424
+# Source0-md5: d741e7e55ae48a130cb95264fbe732b7
+Patch0: cmake.patch
URL: https://github.com/frankosterfeld/qtkeychain
BuildRequires: cmake
BuildRequires: libstdc++-devel
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+#define skip_post_check_so libqt5keychain.so.*
+
%description
QtKeychain a Qt API to store passwords and other secret data securely.
%prep
%setup -q -n qtkeychain-%{version}
+%patch0 -p1
%build
%if %{with qt4}
install -d build-qt4
cd build-qt4
%cmake \
- -DBUILD_WITH_QT4=ON \
+ -DBUILD_WITH_QT4:BOOL=TRUE \
..
%{__make}
cd ..
install -d build-qt5
cd build-qt5
%cmake \
- -DBUILD_WITH_QT4=OFF \
+ -DBUILD_WITH_QT4:BOOL=OFF \
..
%{__make}
%endif
%defattr(644,root,root,755)
%doc COPYING ReadMe.txt ChangeLog
%attr(755,root,root) %{_libdir}/libqtkeychain.so.*.*.*
-%ghost %{_libdir}/libqtkeychain.so.0
+%ghost %{_libdir}/libqtkeychain.so.1
%files devel
%defattr(644,root,root,755)
%files -n Qt5Keychain
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libqt5keychain.so.*.*.*
-%ghost %{_libdir}/libqt5keychain.so.0
+%ghost %{_libdir}/libqt5keychain.so.1
%files -n Qt5Keychain-devel
%defattr(644,root,root,755)
--- /dev/null
+--- qtkeychain-0.8.0/CMakeLists.txt.orig 2017-04-19 15:09:34.000000000 +0200
++++ qtkeychain-0.8.0/CMakeLists.txt 2018-04-12 23:34:17.672301365 +0200
+@@ -21,6 +21,8 @@
+ option(BUILD_TRANSLATIONS "Build translations" ON)
+ option(QTKEYCHAIN_STATIC "Build static library" OFF)
+
++list(APPEND qtkeychain_LIBRARIES "-lglib-2.0")
++
+ if(CMAKE_SYSTEM_NAME STREQUAL Android)
+ set(ANDROID 1)
+ endif()
+@@ -38,7 +40,7 @@
+ find_package(Qt5Core QUIET)
+ endif()
+
+-if (Qt5Core_FOUND)
++if (Qt5Core_FOUND AND NOT BUILD_WITH_QT4 )
+ set(QTKEYCHAIN_VERSION_INFIX 5)
+
+ if(UNIX AND NOT APPLE AND NOT ANDROID)