Summary: X.509 library Name: libksba Version: 1.0.2 Release: 2 License: GPL Group: System Environment/Libraries URL: http://www.gnupg.org/ Source0: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2 Source1: ftp://ftp.gnupg.org/gcrypt/libksba/libksba-%{version}.tar.bz2.sig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libgpg-error-devel >= 1.2 BuildRequires: libgcrypt-devel >= 1.2.0 Requires: libgpg-error >= 1.2 Requires: libgcrypt >= 1.2.0 %description KSBA is a library designed to build software based on the X.509 and CMS protocols. The library is available as 32-bit and 64-bit. %package devel Summary: Development headers and libraries for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: info Requires: /sbin/install-info %description devel %{summary}. If you are compiling a 32-bit program, no special compiler options are needed. If you are compiling a 64-bit program, you have to compile and link your application with "cc -q64" or "gcc -maix64". %prep %setup -q %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="cc -q64" ./configure \ --prefix=%{_prefix} \ --infodir=%{_prefix}/info \ --enable-static --enable-shared make %{?_smp_mflags} cp src/.libs/libksba.so.8 . make distclean # now build the 32-bit version export CC="cc" ./configure \ --prefix=%{_prefix} \ --infodir=%{_prefix}/info \ --enable-static --enable-shared make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q src/.libs/libksba.a ./libksba.so.8 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{_infodir}/dir gzip -9 $RPM_BUILD_ROOT%{_infodir}/ksba.info %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %post devel install-info %{_infodir}/ksba.info.gz %{_infodir}/dir %postun devel if [ $1 -eq 0 ]; then install-info --delete %{_infodir}/ksba.info.gz %{_infodir}/dir fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README* THANKS TODO VERSION %{_libdir}/lib*.a %files devel %defattr(-,root,root,-) %{_bindir}/ksba-config %{_libdir}/lib*.la %{_includedir}/* %{_datadir}/aclocal/* %{_infodir}/* %changelog * Thu Jan 03 2008 Michael Perzl - 1.0.2-2 - included both 32-bit and 64-bit shared objects * Fri Oct 05 2007 Michael Perzl - 1.0.2-1 - first version for AIX V5.1 and higher