Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
libqca2
libqca2.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libqca2.spec of Package libqca2
# # spec file for package libqca2 (Version 2.0.2) # # Copyright (c) 2010 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/ # # norootforbuild Name: libqca2 BuildRequires: cmake libdrm-devel libjpeg-devel libqt4-devel openssl-devel BuildRequires: kde4-filesystem update-desktop-files BuildRequires: cyrus-sasl-devel gpg2 libgcrypt-devel mozilla-nss-devel BuildRequires: libbotan-devel pkcs11-helper-devel License: LGPLv2.1+ Group: Development/Libraries/C and C++ Summary: Qt Cryptographic Architecture 2 BuildRoot: %{_tmppath}/%{name}-%{version}-build Url: http://delta.affinix.com/qca/ Version: 2.0.2 Release: 4 %define tar_version %{version} %define my_subdirs qca-gnupg-* qca-ossl-* qca-pkcs11-* qca-cyrus-sasl-* %define with_botan 0 %define with_nss 0 %define with_pkcs11 1 Source: http://delta.affinix.com/download/qca/2.0/qca-%{tar_version}.tar.bz2 Source1: http://delta.affinix.com/download/qca/2.0/plugins/qca-cyrus-sasl-2.0.0-beta3.tar.bz2 Source2: http://delta.affinix.com/download/qca/2.0/plugins/qca-gnupg-2.0.0-beta3.tar.bz2 Source3: http://delta.affinix.com/download/qca/2.0/plugins/qca-ossl-2.0.0-beta3.tar.bz2 Source4: http://delta.affinix.com/download/qca/2.0/plugins/qca-pkcs11-2.0.0-beta2.tar.bz2 Source5: baselibs.conf Patch0: fix-qt-check.diff Patch1: r928413.diff Patch2: disable-insecure-ssl.diff Requires: gpg2 >= 2.0.0 %requires_eq libqt4 %description This package provides a generic Qt cryptographic architecture, including a library and a plug-in for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and AES. It can be extended by further plug-ins, for example, with qca-sasl for SASL support. Authors: -------- Justin Karneges <justin@affinix.com> %package devel License: LGPLv2.1+ Summary: Qt Cryptographic Architecture 2 Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: libqt4-devel Botan-devel %description devel This package provides a generic Qt cryptographic architecture, including a library and a plugin for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES and AES. Authors: -------- Justin Karneges <justin@affinix.com> %package plugin-cyrus-sasl License: LGPLv2.1+ Summary: Qt Cryptographic Architecture 2 Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description plugin-cyrus-sasl This package provides a generic Qt cryptographic architecture, including a library and a plug-in for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and AES. It can be extended by further plug-ins, for example, with qca-sasl for SASL support. Authors: -------- Justin Karneges <justin@affinix.com> %if %with_botan %package plugin-botan License: LGPL v2.1 or later Summary: Qt Cryptographic Architecture 2 Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Provides: %{name}:%{_libdir}/qt4/plugins/crypto/libqca-botan.so %description plugin-botan This package provides a generic Qt cryptographic architecture, including a library and a plug-in for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and AES. It can be extended by further plug-ins, for example, with qca-sasl for SASL support. Authors: -------- Justin Karneges <justin@affinix.com> %endif %if %with_nss %package plugin-nss License: LGPL v2.1 or later Summary: Qt Cryptographic Architecture 2 Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description plugin-nss This package provides a generic Qt cryptographic architecture, including a library and a plug-in for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and AES. It can be extended by further plug-ins, for example, with qca-sasl for SASL support. Authors: -------- Justin Karneges <justin@affinix.com> %endif %if %with_pkcs11 %package plugin-pkcs11 License: LGPLv2.1+ Summary: Qt Cryptographic Architecture 2 - pkcs11 support Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description plugin-pkcs11 This package provides a generic Qt cryptographic architecture, including a library and a plug-in for using all supported capabilities of openssl, like SSL/TLS, X509, RSA, SHA1, MD5, Blowfish, 3DES, and AES. It can be extended by further plug-ins, for example, with qca-sasl for SASL support. Authors: -------- Justin Karneges <justin@affinix.com> %endif %prep %setup -c -n qca-%{tar_version}/plugins -a 1 -a 2 -a 3 -a 4 pushd qca-gnupg-* %patch0 popd pushd qca-ossl-* %patch2 popd cd ../../.. %setup -D -q -n qca-%{tar_version} %patch1 %build pushd plugins rm -rf CMakeLists.txt qca-%{version} for i in *; do echo "add_subdirectory($i)" >> CMakeLists.txt done popd export CXXFLAGS="$RPM_OPT_FLAGS" export CFLAGS="$RPM_OPT_FLAGS" EXTRA_FLAGS="" if [ %{_lib} = lib64 ]; then EXTRA_FLAGS="$EXTRA_FLAGS -DLIB_SUFFIX=64" fi #cmake . -DCMAKE_CXXFLAGS="$RPM_OPT_FLAGS" -DCMAKE_CFLAGS="$RPM_OPT_FLAGS" -DCMAKE_INSTALL_PREFIX=/usr $EXTRA_FLAGS ./configure --prefix=%{_prefix} --libdir=%{_libdir} --debug --no-separate-debug-info make %{?jobs:-j %jobs} export LD_LIBRARY_PATH=$PWD/lib cd plugins for sub in %{my_subdirs}; do pushd $sub ./configure --debug --no-separate-debug-info --with-qca=$PWD/../.. --verbose make %{?jobs:-j %jobs} popd done %install make INSTALL_ROOT=$RPM_BUILD_ROOT install rm apidocs/html/installdox cd plugins for sub in %{my_subdirs}; do pushd $sub make INSTALL_ROOT=$RPM_BUILD_ROOT install popd done mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT # no baselibs supplements for older distros %if %suse_version < 1110 sed -i -e 's, supplements .*,,' $RPM_SOURCE_DIR/baselibs.conf %endif %files %defattr(-,root,root) %doc README COPYING TODO %{_libdir}/libqca.so.* %dir %{_libdir}/qt4/plugins/crypto #%{_libdir}/qt4/plugins/crypto/libqca-logger.so #%{_libdir}/qt4/plugins/crypto/libqca-softstore.so %{_libdir}/qt4/plugins/crypto/libqca-ossl.so %{_libdir}/qt4/plugins/crypto/libqca-gnupg.so #%{_libdir}/qt4/plugins/crypto/libqca-gcrypt.so %dir %{_datadir}/qca %{_datadir}/qca/certs/ %files devel %defattr(-,root,root) %doc apidocs/html %{_bindir}/qcatool2 %{_includedir}/QtCrypto %{_datadir}/qt4/mkspecs/features/crypto.prf %{_mandir}/man1/qcatool2* %{_libdir}/libqca.so %{_libdir}/libqca.prl %{_libdir}/pkgconfig/qca2.pc %files plugin-cyrus-sasl %defattr(-,root,root) %{_libdir}/qt4/plugins/crypto/libqca-cyrus-sasl.so %if %with_botan %files plugin-botan %defattr(-,root,root) %{_libdir}/qt4/plugins/crypto/libqca-botan.so %endif %if %with_nss %files plugin-nss %defattr(-,root,root) %{_libdir}/qt4/plugins/crypto/libqca-nss.so %endif %if %with_pkcs11 %files plugin-pkcs11 %defattr(-,root,root) %{_libdir}/qt4/plugins/crypto/libqca-pkcs11.so %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor