-%define rname qca-tls
+%define realname qca-tls
Summary: Qt Cryptographic Architecture (QCA) SSL/TLS plugin
-Summary(pl): Wtyczka SSL/TLS dla Qt Cryptographic Architecture (QCA)
-Name: qt-plugin-qca-tls
+Summary(pl.UTF-8): Wtyczka SSL/TLS dla Qt Cryptographic Architecture (QCA)
+Name: qt-plugin-%{realname}
Version: 1.0
-Release: 1
+Release: 14
Epoch: 1
-License: GPL v2
+License: LGPL v2.1
Group: Libraries
-Source0: http://psi.affinix.com/beta/%{rname}-%{version}.tar.bz2
+Source0: http://delta.affinix.com/qca/%{realname}-%{version}.tar.bz2
# Source0-md5: 886b1f60fc31de3b1a0bd93281e27b73
-URL: http://psi.affinix.com/
+Patch0: %{name}-openssl9x.patch
+Patch1: openssl.patch
+URL: http://delta.affinix.com/qca/
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel >= 0.9.7d
-BuildRequires: qt-devel >= 3.1.2
+BuildRequires: qmake
+BuildRequires: qt-devel >= 6:3.1.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _plugindir %{_libdir}/qt/plugins-mt/crypto
A plugin to provide SSL/TLS capability to programs that utilize the Qt
Cryptographic Architecture (QCA).
-%description -l pl
-Wtyczka pozwalaj±ca wykorzystaæ mo¿liwo¶ci SSL/TLS w programach
-korzystaj±cych z Qt Cryptographic Architecture (QCA).
+%description -l pl.UTF-8
+Wtyczka pozwalająca wykorzystać możliwości SSL/TLS w programach
+korzystających z Qt Cryptographic Architecture (QCA).
%prep
-%setup -qn %{rname}-%{version}
+%setup -qn %{realname}-%{version}
+%patch0 -p1
+%patch1 -p1
%build
-./configure \
- --qtdir="%{_prefix}"
-
+export QTDIR=%{_prefix}
+./configure
+
+qmake %{realname}.pro \
+ QMAKE_CXX="%{__cxx}" \
+ QMAKE_LINK="%{__cxx}" \
+ QMAKE_CXXFLAGS_RELEASE="%{rpmcflags}" \
+ QMAKE_RPATH=
+
%{__make}
%install
%files
%defattr(644,root,root,755)
%doc README
-%dir %{_plugindir}
%attr(755,root,root) %{_plugindir}/*.so