2024-01-06 05:28:57 +01:00
|
|
|
%define majorminor %(echo %version | cut -d. -f 1-2)
|
|
|
|
|
|
|
|
Name: libqca
|
2024-01-06 05:28:57 +01:00
|
|
|
Version: 2.1.0
|
|
|
|
Release: 1mamba
|
2024-01-06 05:28:57 +01:00
|
|
|
Summary: Qt Cryptographic Architecture (QCA)
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Aleph0 <aleph0@openmamba.org>
|
|
|
|
URL: http://delta.affinix.com/qca/
|
2024-01-06 05:28:57 +01:00
|
|
|
Source: http://delta.affinix.com/download/qca/2.0/qca-%{version}.tar.gz
|
2024-01-06 05:28:57 +01:00
|
|
|
Patch0: qca-2.0.3-gcc-4.7.patch
|
|
|
|
License: LGPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libqt4-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 devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description 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}
|
2024-01-06 05:28:57 +01:00
|
|
|
#%patch0 -p1
|
2024-01-06 05:28:57 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 05:28:57 +01:00
|
|
|
%cmake -d build
|
|
|
|
|
|
|
|
#./configure \
|
|
|
|
# --release \
|
|
|
|
# --prefix=%{_qt4_prefix} \
|
|
|
|
# --bindir=%{_qt4_bindir} \
|
|
|
|
# --datadir=%{_qt4_datadir} \
|
|
|
|
# --includedir=%{_qt4_headerdir} \
|
|
|
|
# --libdir=%{_qt4_libdir}
|
2024-01-06 05:28:57 +01:00
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 05:28:57 +01:00
|
|
|
%makeinstall -C build
|
|
|
|
#make install INSTALL_ROOT=%{buildroot}
|
2024-01-06 05:28:57 +01:00
|
|
|
|
2024-01-06 05:28:57 +01:00
|
|
|
#install -d %{buildroot}%{_mandir}/man1
|
|
|
|
#mv %{buildroot}%{_qt4_datadir}/man/man1/qcatool2.1 \
|
|
|
|
# %{buildroot}%{_mandir}/man1/qcatool2.1
|
2024-01-06 05:28:57 +01:00
|
|
|
|
|
|
|
rm -f %{buildroot}%{_qt4_libdir}/libqca.so.*.debug
|
|
|
|
rm -f %{buildroot}%{_qt4_bindir}/qcatool2.debug
|
|
|
|
# FIXME
|
|
|
|
rm -fr %{buildroot}%{_qt4_datadir}/qca/certs
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:28:57 +01:00
|
|
|
%{_bindir}/mozcerts
|
|
|
|
%{_bindir}/qcatool
|
2024-01-06 05:28:57 +01:00
|
|
|
%{_qt4_libdir}/libqca.so.*
|
2024-01-06 05:28:57 +01:00
|
|
|
%dir %{_libdir}/qca
|
|
|
|
%dir %{_libdir}/qca/crypto
|
|
|
|
%{_libdir}/qca/crypto/libqca-cyrus-sasl.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-gcrypt.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-gnupg.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-logger.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-nss.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-ossl.so
|
|
|
|
%{_libdir}/qca/crypto/libqca-softstore.so
|
2024-01-06 05:28:57 +01:00
|
|
|
%{_mandir}/man1/qcatool*
|
2024-01-06 05:28:57 +01:00
|
|
|
%doc COPYING
|
2024-01-06 05:28:57 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 05:28:57 +01:00
|
|
|
%dir %{_includedir}/QtCrypto
|
|
|
|
%{_includedir}/QtCrypto/*
|
|
|
|
%dir %{_libdir}/cmake/Qca
|
|
|
|
%{_libdir}/cmake/Qca/Qca*.cmake
|
|
|
|
/usr/mkspecs/features/crypto.prf
|
2024-01-06 05:28:57 +01:00
|
|
|
%{_qt4_libdir}/libqca.so
|
|
|
|
%{_libdir}/pkgconfig/qca2.pc
|
2024-01-06 05:28:57 +01:00
|
|
|
%doc README TODO
|
2024-01-06 05:28:57 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 05:28:57 +01:00
|
|
|
* Fri Nov 28 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.0-1mamba
|
|
|
|
- update to 2.1.0
|
|
|
|
|
2024-01-06 05:28:57 +01:00
|
|
|
* Thu Jan 24 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.3-2mamba
|
|
|
|
- added gcc 4.7 build patch
|
|
|
|
|
|
|
|
* Wed Dec 01 2010 Automatic Build System <autodist@mambasoft.it> 2.0.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 30 2009 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sun Oct 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Fri Aug 29 2008 Aleph0 <aleph0@openmamba.org> 2.0.1-1mamba
|
|
|
|
- package created by autospec
|