File mingw64-qca2.spec of Package mingw64-qca2

#
# spec file for package mingw64-qca2
#
# Copyright (c) 2014 SUSE LINUX Products 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 _basename qca
Name:           mingw64-%{_basename}
Version:        2.2.1
Release:        0
Summary:        Libraries for the Qt Cryptographic Architecture
License:        GPL-2.0-only
Group:          Development/Libraries/C and C++
Url:            https://invent.kde.org/libraries/qca
Source0:        qca-v%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-libqt4-qmake
BuildRequires:  mingw64-libgnutls-devel
BuildRequires:  mingw64-libopenssl-devel
BuildRequires:  mingw64-libqt4-devel
BuildRequires:  mingw64-libqt4-filesystem
BuildRequires:  mingw64-openssl
%_mingw64_package_header_debug
BuildArch:      noarch

%description
Libraries for the Qt Cryptographic Architecture

%package devel
Summary:        Libraries for the Qt Cryptographic Architecture
Group:          Development/Libraries/C and C++

%description devel
Libraries for the Qt Cryptographic Architecture

%_mingw64_debug_package

%prep
%autosetup -p1 -n %{_basename}-v%{version}

%build
%_mingw64_cmake_qt4 -DQT4_BUILD=1

%_mingw64_cmake_build

%install
%_mingw64_cmake_install

%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/libqca.dll
%{_mingw64_bindir}/mozcerts.exe
%{_mingw64_bindir}/qcatool.exe

%{_mingw64_prefix}/certs/
%{_mingw64_prefix}/certs/rootcerts.pem

%dir %{_mingw64_libdir}/qca
%dir %{_mingw64_libdir}/qca/crypto
%{_mingw64_libdir}/qca/crypto/libqca-gnupg.dll
%{_mingw64_libdir}/qca/crypto/libqca-logger.dll
%{_mingw64_libdir}/qca/crypto/libqca-ossl.dll
%{_mingw64_libdir}/qca/crypto/libqca-softstore.dll


%{_mingw64_datadir}/man/
%{_mingw64_datadir}/man/man1/qcatool*

%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/libqca.dll.a
%{_mingw64_libdir}/cmake

%{_mingw64_prefix}/mkspecs/
%{_mingw64_prefix}/mkspecs/features/crypto.prf

%{_mingw64_includedir}/QtCrypto/

%changelog
openSUSE Build Service is sponsored by