File libqca-qt5.spec of Package libqca-qt5
#
# spec file for package libqca-qt5
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define _so 2
Name: libqca-qt5
Version: 2.1.1
Release: 0
Summary: Qt Cryptographic Architecture 2
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Url: http://delta.affinix.com/qca/
Source: http://download.kde.org/stable/qca/%{version}/src/qca-%{version}.tar.xz
Source1: baselibs.conf
Source99: libqca-qt5-rpmlintrc
# PATCH-FIX-OPENSUSE ansi.diff -- rh#1182200. drop ansi flags in order to compile with latest gcrypt
Patch0: ansi.diff
# PATCH-FIX-UPSTREAM libqca-qt5-2.1.1-explicit-signed-char.patch -- fix build on PPC with GCC 6
Patch1: libqca-qt5-2.1.1-explicit-signed-char.patch
BuildRequires: ca-certificates
BuildRequires: cmake >= 2.8.12
BuildRequires: cyrus-sasl-devel
BuildRequires: gpg2
BuildRequires: libbotan-devel
BuildRequires: libdrm-devel
BuildRequires: libgcrypt-devel
BuildRequires: libjpeg-devel
BuildRequires: mozilla-nss-devel
BuildRequires: openssl-devel
BuildRequires: pkcs11-helper-devel
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
Requires: gpg2 >= 2.0.0
Recommends: %{name}-plugins
Provides: libqca-qt5 = %{version}
Obsoletes: libqca-qt5-2 < %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides a generic Qt cryptographic architecture,
including a library and a plug-in for using all supported capabilities
of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and
AES.
It can be extended by further plug-ins, for example, with qca-sasl for
SASL support.
%package devel
Summary: Qt Cryptographic Architecture 2
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: pkgconfig(Qt5Core) >= 5.2.0
Requires: pkgconfig(Qt5Network) >= 5.2.0
%description devel
This package provides a generic Qt cryptographic architecture,
including a library and a plugin for using all supported capabilities
of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES and AES.
%package plugins
Summary: Qt Cryptographic Architecture 2 - pkcs11 support
Group: Development/Libraries/C and C++
%description plugins
This package provides a generic Qt cryptographic architecture,
including a library and a plug-in for using all supported capabilities
of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and
AES.
It can be extended by further plug-ins, for example, with qca-sasl for
SASL support.
%prep
%setup -q -n qca-%{version}
%patch0 -p1
%patch1 -p1
%build
%cmake \
-DQT4_BUILD=OFF \
-DBUILD_TESTS=OFF \
-DQCA_INSTALL_IN_QT_PREFIX=ON \
-DWITH_botan_PLUGIN=OFF \
-DQCA_BINARY_INSTALL_DIR:PATH="%{_bindir}" \
-DQCA_MAN_INSTALL_DIR:PATH="%{_mandir}" \
-DQCA_SUFFIX=qt5
make %{?_smp_mflags}
%install
%cmake_install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README COPYING TODO
%{_libdir}/libqca-qt5.so.*
%dir %{_libdir}/qt5/plugins/crypto
%{_libdir}/qt5/plugins/crypto/libqca-logger.so
%{_libdir}/qt5/plugins/crypto/libqca-softstore.so
%{_libdir}/qt5/plugins/crypto/libqca-ossl.so
%{_libdir}/qt5/plugins/crypto/libqca-gnupg.so
%{_libdir}/qt5/plugins/crypto/libqca-gcrypt.so
%files devel
%defattr(-,root,root)
%{_bindir}/qcatool-qt5
%{_bindir}/mozcerts-qt5
%{_includedir}/qt5/Qca-qt5/
%{_libdir}/qt5/mkspecs/features/crypto.prf
%{_mandir}/man1/qcatool-qt5*
%{_libdir}/libqca-qt5.so
%{_libdir}/pkgconfig/qca2-qt5.pc
%{_libdir}/cmake/Qca-qt5/
%files plugins
%defattr(-,root,root)
%{_libdir}/qt5/plugins/crypto/libqca-cyrus-sasl.so
%{_libdir}/qt5/plugins/crypto/libqca-nss.so
%{_libdir}/qt5/plugins/crypto/libqca-pkcs11.so
%changelog