Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > d784e744df0e355f2d701cef94268dae > files > 4

qca-1.0-4mdk.src.rpm

%define name		qca
%define version		1.0
%define release		4mdk

%define	major		1
%define	libname		%mklibname %name %major

%define summary		Straightforward and cross-platform crypto API for Qt

Summary:	%summary
Name:	 	%name
Version:	%version
Release:	%release
License:	GPL
Group:		Development/KDE and Qt
URL:		http://http://delta.affinix.com/qca
Source0:	%name-%version.tar.bz2
Source1:	%name-tls-%version.tar.bz2
Source2:	%name-sasl-%version.tar.bz2
Requires:	%libname = %version
BuildRoot:	%_tmppath/%name-buildroot
BuildRequires:	openssl-devel >= 0.9.7
BuildRequires:	qt3-devel >= 3.1

%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. The advantage of this model is to allow applications to
avoid linking to or explicitly depending on any particular cryptographic
library. This allows one to easily change or upgrade crypto implementations
without even needing to recompile the application! QCA should work everywhere
Qt does, including Windows/Unix/MacOSX.

%package	-n %libname
Summary:	Libraries for QCA
Group:		Development/KDE and Qt
Requires:	%name

%description	-n %libname
Libraries for QCA

%package	-n %libname-devel
Summary:	Development files from QCA
Group:		Development/KDE and Qt
Provides:	lib%name-devel
Requires:	%libname = %version
%description	-n %libname-devel
Development files from QCA

%package	-n %libname-tls
Summary:	TLS plugin for QCA
Group:		Development/KDE and Qt
Requires:	%libname = %version
Provides:	psi-qca-tls
Obsoletes:	psi-qca-tls
%description	-n %libname-tls
This is a plugin to provide SSL/TLS capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%package	-n %libname-sasl
Summary:	SASL plugin for QCA
Group:		Development/KDE and Qt
Requires:	%libname = %version
BuildRequires:	devel(libsasl2)
%description	-n %libname-sasl
This is a plugin to provide SASL capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%prep
%setup -q
%setup -q -T -D -a 1
%setup -q -T -D -a 2

%build
QTDIR=%{_libdir}/qt3
QMAKESPEC="linux-g++"
export QTDIR QMAKESPEC

# main qca
./configure --prefix=%{_prefix} --qtdir=$QTDIR
%make
# tls plugin
cd %{name}-tls-%{version}
./configure --qtdir=$QTDIR; %make
cd ..
# sasl plugin
cd %{name}-sasl-%{version}
./configure --qtdir=$QTDIR; %make
cd ..

%install
rm -rf %{buildroot}
%makeinstall INSTALL_ROOT=%{buildroot}
# tls plugin
cd %{name}-tls-%{version}
%makeinstall INSTALL_ROOT=%{buildroot}
cd ..
# sasl plugin
cd %{name}-sasl-%{version}
%makeinstall INSTALL_ROOT=%{buildroot}
cd ..

%clean
rm -rf %{buildroot}

%post -n %libname -p /sbin/ldconfig

%postun -n %libname -p /sbin/ldconfig

%files
%defattr(0644,root,root,0755)
%doc README COPYING INSTALL TODO
%dir %{_libdir}/qt3/plugins/crypto

%files	-n %libname
%defattr(0644,root,root,0755)
%{_libdir}/libqca.so.*

%files	-n %libname-devel
%defattr(0644,root,root,0755)
%{_includedir}/%{name}.h
%{_libdir}/libqca.so

%files	-n %libname-tls
%defattr(0644,root,root,0755)
%doc %{name}-tls-%{version}/{README,COPYING}
%{_libdir}/qt3/plugins/crypto/libqca-tls.so

%files	-n %libname-sasl
%defattr(0644,root,root,0755)
%doc %{name}-sasl-%{version}/{README,COPYING}
%{_libdir}/qt3/plugins/crypto/libqca-sasl.so

%changelog
* Mon Feb 7 2005 Tibor Pittich <Tibor.Pittich@mandrake.org> 1.0-4mdk
- obsolete psi-qca-tls (Buchan)
- remove useless explicit provides
- fix previous changelog entry

* Mon Jan 17 2005 Tibor Pittich <Tibor.Pittich@mandrake.org> 1.0-3mdk
- rebuild

* Fri Jan 14 2005 Tibor Pittich <Tibor.Pittich@mandrake.org> 1.0-2mdk
- remove devel library from main package to devel package
- fix post and postun macros
- libification

* Sun Jan 09 2005 Tibor Pittich <Tibor.Pittich@mandrake.org> 1.0-1mdk
- initial import