Summary: Qt API to store passwords and other secret data securely
Name: QtKeychain
-Version: 0.3.0
-Release: 1
+Version: 0.4.0
+Release: 2
License: Modified BSD License
Group: Libraries
-# Repackaged from https://github.com/frankosterfeld/qtkeychain/archive/master.zip
-Source0: %{name}-%{version}.tar.bz2
-# Source0-md5: a9de9be0cae568c03b152009d24ff170
+Source0: https://github.com/frankosterfeld/qtkeychain/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: e4e48d8742a9fd2664425d58be236424
URL: https://github.com/frankosterfeld/qtkeychain
BuildRequires: cmake
-BuildRequires: gettext-tools
BuildRequires: libstdc++-devel
+BuildRequires: rpmbuild(find_lang) >= 1.37
%if %{with qt4}
BuildRequires: QtCore-devel
+BuildRequires: QtDBus-devel
BuildRequires: qt4-build
BuildRequires: qt4-linguist
BuildRequires: qt4-qmake
%endif
%if %{with qt5}
BuildRequires: Qt5Core-devel
+BuildRequires: Qt5DBus-devel
BuildRequires: qt5-build
BuildRequires: qt5-linguist
BuildRequires: qt5-qmake
Summary: Development files for QtKeychain
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: qt4-build
-Requires: qt4-qmake
%description devel
This package contains libraries and header files for developing
%package -n Qt5Keychain
Summary: Qt API to store passwords and other secret data securely
Group: Libraries
-Requires: qt5-build
-Requires: qt5-qmake
%description -n Qt5Keychain
QtKeychain a Qt API to store passwords and other secret data securely.
Summary: Development files for QtKeychain
Group: Development/Libraries
Requires: Qt5Keychain = %{version}-%{release}
-Requires: qt5-build
-Requires: qt5-qmake
%description -n Qt5Keychain-devel
This package contains libraries and header files for developing
applications that use QKeychain.
%prep
-%setup -q
+%setup -q -n qtkeychain-%{version}
%build
%if %{with qt4}