From 2eb47baa46777b6097a85a1497d926bed85110d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Sat, 2 May 2009 06:40:06 +0000 Subject: [PATCH] Initial import --- .cvsignore | 1 + libica.spec | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 121 insertions(+) create mode 100644 libica.spec diff --git a/.cvsignore b/.cvsignore index e69de29..3cafdbf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libica-2.0.1.tar.gz diff --git a/libica.spec b/libica.spec new file mode 100644 index 0000000..9612366 --- /dev/null +++ b/libica.spec @@ -0,0 +1,119 @@ +Summary: Library for accessing ICA hardware crypto on IBM zSeries +Name: libica +Version: 2.0.1 +Release: 1%{?dist} +License: CPL +Group: System Environment/Libraries +URL: http://sourceforge.net/projects/opencryptoki/ +Source0: http://downloads.sourceforge.net/opencryptoki/%{name}-%{version}.tar.gz +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: openssl-devel +BuildRequires: autoconf automake libtool +ExclusiveArch: s390 s390x + +%description +A library of functions for accessing ICA hardware crypto on IBM zSeries. + +%package devel +Summary: Development tools for programs to access ICA hardware crypto on IBM zSeries +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: openssl-devel + +%description devel +The libica-devel package contains the header files and static +libraries necessary for developing programs accessing ICA hardware crypto on +IBM zSeries. + +%package utils +Summary: Utility programs to access ICA hardware crypto on IBM zSeries +Group: System Environment/Base + +%description utils +Utility programs to access ICA hardware crypto on IBM zSeries. + + +%prep +%setup -q -n %{name} + +# fix EOLs +sed -i -e 's/\r//g' LICENSE + +sh ./bootstrap.sh + + +%build +%configure --disable-static +# paralell make doesn't work +make + + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT%{_libdir}/libica.la + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc AUTHORS LICENSE +%{_libdir}/libica-%{version}.so + +%files devel +%defattr(-,root,root,-) +%{_includedir}/* +%{_libdir}/libica.so + +%files utils +%defattr(-,root,root,-) +%{_bindir}/icainfo +%{_bindir}/icastats + + +%changelog +* Wed Apr 1 2009 Dan Horak - 2.0.1-1 +- update to 2.0.1 + +* Mon Mar 23 2009 Dan Horak - 2.0-1 +- update to 2.0 +- spec file cleanup before submitting to Fedora + +* Sun Sep 14 2008 Phil Knirsch - 1.3.7-8.el5 +- Added the icainfo tool to libica (#439484) + +* Tue Apr 01 2008 Phil Knirsch - 1.3.7-7.el5 +- Fixed build of libica with latest AES & SHA feature (#439390) + +* Tue Jan 15 2008 Phil Knirsch - 1.3.7-6.el5 +- Added Software Support for CP Assist Instructions AES & SHA (#318971) + +* Thu Nov 23 2006 Phil Knirsch - 1.3.7-5.el5 +- Fixed requires bug where devel packages would get wrong arch lib (#215908) + +* Fri Oct 13 2006 Phil Knirsch - 1.3.7-4 +- Fixed bug where libica fails to initialize when no crypto hardware is + available (#210504) +- Only build libica for s390(x), really only needed there. + +* Fri Sep 08 2006 Phil Knirsch - 1.3.7-3 +- Build for other archs as well due to openCryptoki requirement (#184631) + +* Fri Jul 14 2006 Tim Powers - 1.3.7-2 +- rebuild + +* Tue Jun 13 2006 Phil Knirsch - 1.3.7-1 +- Update to libica-1.3.7 final +- Fixed build on latest devel tree + +* Tue Apr 04 2006 Phil Knirsch - 1.3.6-rc3-1 +- Initial package. diff --git a/sources b/sources index e69de29..9a3da5e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c00fef46735c918dec3c081a8afc86ae libica-2.0.1.tar.gz