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) %define majorminor %(echo %version | cut -d. -f 1-2)
Name: libqca Name: libqca
Version: 2.1.0 Version: 2.1.0.3
Release: 2mamba Release: 1mamba
Summary: Qt Cryptographic Architecture (QCA) Summary: Qt Cryptographic Architecture (QCA)
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org> Packager: Aleph0 <aleph0@openmamba.org>
URL: http://delta.affinix.com/qca/ 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 Patch0: qca-2.0.3-gcc-4.7.patch
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
@ -21,6 +21,7 @@ BuildRequires: libnspr-devel
BuildRequires: libnss-devel BuildRequires: libnss-devel
BuildRequires: libopenssl-devel BuildRequires: libopenssl-devel
BuildRequires: libqt4-devel BuildRequires: libqt4-devel
BuildRequires: libqt5-devel
BuildRequires: libsasl2-devel BuildRequires: libsasl2-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END ## 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. 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 %prep
%setup -q -n qca-%{version} %setup -q -n qca-qt5-%{version}
#%patch0 -p1 #%patch0 -p1
%build %build
%cmake -d build \ %cmake -d build \
-DQT4_BUILD=ON -DQT4_BUILD=ON
#./configure \ %make
# --release \
# --prefix=%{_qt4_prefix} \ cd ..
# --bindir=%{_qt4_bindir} \ %cmake -d build-qt5 \
# --datadir=%{_qt4_datadir} \ -DQT4_BUILD=OFF \
# --includedir=%{_qt4_headerdir} \ -DQCA_SUFFIX=qt5 \
# --libdir=%{_qt4_libdir} -DBUILD_TESTS=OFF \
-DQCA_INSTALL_IN_QT_PREFIX=ON
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build-qt5
%makeinstall -C build %makeinstall -C build
#make install INSTALL_ROOT=%{buildroot} #make install INSTALL_ROOT=%{buildroot}
#install -d %{buildroot}%{_mandir}/man1 #install -d %{buildroot}%{_mandir}/man1
@ -78,6 +100,9 @@ rm -fr %{buildroot}%{_qt4_datadir}/qca/certs
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%post qt5 -p /sbin/ldconfig
%postun qt5 -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/mozcerts %{_bindir}/mozcerts
@ -100,13 +125,52 @@ rm -fr %{buildroot}%{_qt4_datadir}/qca/certs
%dir %{_includedir}/QtCrypto %dir %{_includedir}/QtCrypto
%{_includedir}/QtCrypto/* %{_includedir}/QtCrypto/*
%dir %{_libdir}/cmake/Qca %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 /usr/mkspecs/features/crypto.prf
%{_qt4_libdir}/libqca.so %{_qt4_libdir}/libqca.so
%{_libdir}/pkgconfig/qca2.pc %{_libdir}/pkgconfig/qca2.pc
%doc README TODO %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 %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 * Wed Feb 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-2mamba
- force qt4 build or it breaks kde4 plasma - force qt4 build or it breaks kde4 plasma