update to 2.1.0.3 [release 2.1.0.3-1mamba;Sun Aug 16 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 05:28:57 +01:00
parent 24f11e6d1a
commit d296292008

View File

@ -1,15 +1,15 @@
%define majorminor %(echo %version | cut -d. -f 1-2)
Name: libqca
Version: 2.1.0
Release: 2mamba
Version: 2.1.0.3
Release: 1mamba
Summary: Qt Cryptographic Architecture (QCA)
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://delta.affinix.com/qca/
Source: http://delta.affinix.com/download/qca/2.0/qca-%{version}.tar.gz
Source: http://download.kde.org/stable/qca-qt5/%{version}/src/qca-qt5-%{version}.tar.xz
Patch0: qca-2.0.3-gcc-4.7.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
@ -21,6 +21,7 @@ BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libopenssl-devel
BuildRequires: libqt4-devel
BuildRequires: libqt5-devel
BuildRequires: libsasl2-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
@ -40,27 +41,48 @@ Taking a hint from the similarly-named Java Cryptography Architecture, QCA aims
This package contains static libraries and header files need for development.
%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.
%prep
%setup -q -n qca-%{version}
%setup -q -n qca-qt5-%{version}
#%patch0 -p1
%build
%cmake -d build \
-DQT4_BUILD=ON
#./configure \
# --release \
# --prefix=%{_qt4_prefix} \
# --bindir=%{_qt4_bindir} \
# --datadir=%{_qt4_datadir} \
# --includedir=%{_qt4_headerdir} \
# --libdir=%{_qt4_libdir}
%make
cd ..
%cmake -d build-qt5 \
-DQT4_BUILD=OFF \
-DQCA_SUFFIX=qt5 \
-DBUILD_TESTS=OFF \
-DQCA_INSTALL_IN_QT_PREFIX=ON
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build-qt5
%makeinstall -C build
#make install INSTALL_ROOT=%{buildroot}
#install -d %{buildroot}%{_mandir}/man1
@ -78,6 +100,9 @@ rm -fr %{buildroot}%{_qt4_datadir}/qca/certs
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post qt5 -p /sbin/ldconfig
%postun qt5 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/mozcerts
@ -100,13 +125,52 @@ rm -fr %{buildroot}%{_qt4_datadir}/qca/certs
%dir %{_includedir}/QtCrypto
%{_includedir}/QtCrypto/*
%dir %{_libdir}/cmake/Qca
%{_libdir}/cmake/Qca/Qca*.cmake
%{_libdir}/cmake/Qca/QcaConfig.cmake
%{_libdir}/cmake/Qca/QcaConfigVersion.cmake
%{_libdir}/cmake/Qca/QcaTargets-noconfig.cmake
%{_libdir}/cmake/Qca/QcaTargets.cmake
/usr/mkspecs/features/crypto.prf
%{_qt4_libdir}/libqca.so
%{_libdir}/pkgconfig/qca2.pc
%doc README TODO
%files qt5
%defattr(-,root,root)
%{_libdir}/qt5/bin/mozcerts-qt5
%{_libdir}/qt5/bin/qcatool-qt5
%{_qt5_libdir}/libqca-qt5.so.*
%dir %{_libdir}/qt5/plugins/crypto
%{_libdir}/qt5/plugins/crypto/libqca-cyrus-sasl.so
%{_libdir}/qt5/plugins/crypto/libqca-gcrypt.so
%{_libdir}/qt5/plugins/crypto/libqca-gnupg.so
%{_libdir}/qt5/plugins/crypto/libqca-logger.so
%{_libdir}/qt5/plugins/crypto/libqca-nss.so
%{_libdir}/qt5/plugins/crypto/libqca-ossl.so
%{_libdir}/qt5/plugins/crypto/libqca-softstore.so
%{_datadir}/qt5/man/man1/qcatool-qt5.1
%doc COPYING
%files qt5-devel
%defattr(-,root,root)
%{_qt5_libdir}/libqca-qt5.so
%dir %{_includedir}/qt5/Qca-qt5/QtCrypto
%{_includedir}/qt5/Qca-qt5/QtCrypto/*
%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
* Sun Aug 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0.3-1mamba
- update to 2.1.0.3
* Sun Aug 16 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-3mamba
- added qt5 subpackages
* Wed Feb 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- force qt4 build or it breaks kde4 plasma