%define majorminor %(echo %version | cut -d. -f 1-2) Name: libqca Version: 2.3.1 Release: 1mamba Summary: Qt Cryptographic Architecture (QCA) Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Aleph0 URL: http://delta.affinix.com/qca/ Source: https://download.kde.org/stable/qca/%{version}/qca-%{version}.tar.xz #Source: http://download.kde.org/stable/qca-qt5/%{version}/src/qca-qt5-%{version}.tar.xz Patch0: qca-2.0.3-gcc-4.7.patch Patch1: libqca-2.1.0.3-qt5-5.5.patch Patch2: libqca-2.1.0.3-use-Q_SLOT-and-Q_SIGNAL.patch License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libgcrypt-devel BuildRequires: libgpg-error-devel BuildRequires: libnspr-devel BuildRequires: libnss-devel BuildRequires: libopenssl-devel BuildRequires: libqt4-devel BuildRequires: libqt5-devel BuildRequires: libsasl2-devel BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Taking a hint from the similarly-named Java Cryptography Architecture, QCA aims to provide a straightforward and cross-platform crypto API, using Qt datatypes and conventions. QCA separates the API from the implementation, using plugins known as Providers. %package qt5 Group: System/Libraries Summary: Qt Cryptographic Architecture (QCA) %description qt5 Taking a hint from the similarly-named Java Cryptography Architecture, QCA aims to provide a straightforward and cross-platform crypto API, using Qt datatypes and conventions. QCA separates the API from the implementation, using plugins known as Providers. %package qt5-devel Group: Development/Libraries Summary: Static libraries and headers for %{name}-qt5 Requires: %{name}-qt5 = %{?epoch:%epoch:}%{version}-%{release} %description qt5-devel Taking a hint from the similarly-named Java Cryptography Architecture, QCA aims to provide a straightforward and cross-platform crypto API, using Qt datatypes and conventions. This package contains static libraries and header files need for development. %debug_package %prep %setup -q -n qca-%{version} #%patch0 -p1 #%patch1 -p1 #%patch2 -p1 %build %cmake -d build \ -DQCA_SUFFIX=qt5 \ -DBUILD_TESTS=OFF \ -DCMAKE_CXX_FLAGS="%{optflags} -Wno-narrowing" # -DQCA_INSTALL_IN_QT_PREFIX=ON \ %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post qt5 -p /sbin/ldconfig %postun qt5 -p /sbin/ldconfig %files qt5 %defattr(-,root,root) %{_bindir}/mozcerts-qt5 %{_bindir}/qcatool-qt5 %dir %{_libdir}/qca-qt5/crypto %{_libdir}/qca-qt5/crypto/libqca-*.so %{_qt5_libdir}/libqca-qt5.so.* #%dir %{_libdir}/qt5/plugins/crypto #%{_libdir}/qt5/plugins/crypto/libqca-*.so #%{_datadir}/qt5/man/man1/qcatool-qt5.1 %{_mandir}/man1/qcatool-qt5.1* %doc COPYING %files qt5-devel %defattr(-,root,root) # fixme /usr/mkspecs/features/crypto.prf %dir %{_includedir}/Qca-qt5 %{_includedir}/Qca-qt5/* %{_qt5_libdir}/libqca-qt5.so %dir %{_libdir}/cmake/Qca-qt5 %{_libdir}/cmake/Qca-qt5/Qca-qt5Config.cmake %{_libdir}/cmake/Qca-qt5/Qca-qt5ConfigVersion.cmake %{_libdir}/cmake/Qca-qt5/Qca-qt5Targets-noconfig.cmake %{_libdir}/cmake/Qca-qt5/Qca-qt5Targets.cmake #%{_libdir}/qt5/mkspecs/features/crypto.prf %{_libdir}/pkgconfig/qca2-qt5.pc #%doc README TODO %changelog * Mon Jul 06 2020 Automatic Build System 2.3.1-1mamba - automatic version update by autodist * Tue Mar 03 2020 Automatic Build System 2.3.0-1mamba - automatic version update by autodist * Fri Aug 02 2019 Silvan Calarco 2.2.1-1mamba - update to 2.2.1 * Sun Sep 09 2018 Silvan Calarco 2.1.3-1mamba - update to 2.1.3 * Fri Jul 22 2016 Silvan Calarco 2.1.0.3-3mamba - upstream headers patch to use Q_SLOT and Q_SIGNAL * Wed Dec 23 2015 Silvan Calarco 2.1.0.3-2mamba - patched to fix missing qt5 include in header * Sun Aug 16 2015 Silvan Calarco 2.1.0.3-1mamba - update to 2.1.0.3 * Sun Aug 16 2015 Silvan Calarco 2.1.0-3mamba - added qt5 subpackages * Wed Feb 18 2015 Silvan Calarco 2.1.0-2mamba - force qt4 build or it breaks kde4 plasma * Fri Nov 28 2014 Silvan Calarco 2.1.0-1mamba - update to 2.1.0 * Thu Jan 24 2013 Silvan Calarco 2.0.3-2mamba - added gcc 4.7 build patch * Wed Dec 01 2010 Automatic Build System 2.0.3-1mamba - automatic update by autodist * Thu Apr 30 2009 Automatic Build System 2.0.2-1mamba - automatic update by autodist * Sun Oct 12 2008 Silvan Calarco 2.0.1-2mamba - rebuilt * Fri Aug 29 2008 Aleph0 2.0.1-1mamba - package created by autospec