SPECS: yassl.spec - build shared lib - created -devel, -static
glen
glen at pld-linux.org
Wed Jan 31 23:03:21 CET 2007
Author: glen Date: Wed Jan 31 22:03:21 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- build shared lib
- created -devel, -static
---- Files affected:
SPECS:
yassl.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/yassl.spec
diff -u SPECS/yassl.spec:1.2 SPECS/yassl.spec:1.3
--- SPECS/yassl.spec:1.2 Wed Jan 31 22:41:53 2007
+++ SPECS/yassl.spec Wed Jan 31 23:03:16 2007
@@ -1,20 +1,26 @@
# $Revision$, $Date$
-#
# Conditional build:
%bcond_with tests # build with tests
#
-# TODO
-# - bundled openssl?
-# - shared lib, -devel, -static
Summary: Yet Another SSL Library
Name: yassl
Version: 1.5.8
-Release: 0.1
+Release: 0.2
License: GPL
Group: Libraries
URL: http://www.yassl.com/
Source0: http://www.yassl.com/%{name}-%{version}.zip
# Source0-md5: 2f489c20fb93629ac644352d59e2c998
+Source1: http://autoconf-archive.cryp.to/check_zlib.m4
+# Source1-md5: b578aabed5797b035075512a6c9532c5
+Source2: http://autoconf-archive.cryp.to/lib_socket_nsl.m4
+# Source2-md5: d719eef6e1f279b1fa0ed3637865a31d
+Source3: http://autoconf-archive.cryp.to/acx_pthread.m4
+# Source3-md5: 4be209a685bd5d8bca16f6e4fdb25dc6
+Patch0: %{name}-am.patch
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: sed >= 4.0
BuildRequires: zlib-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -23,10 +29,40 @@
supporting) C++ library. yaSSL provides a simple API and even provides
an additional OpenSSL compatibility API.
+%package devel
+Summary: Header files for yaSSL library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for yaSSL library.
+
+%package static
+Summary: Static yaSSL library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static yaSSL library.
+
%prep
%setup -q
+# undos the source
+find '(' -name '*.am' -o -name '*.in' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+
+%patch0 -p1
+mkdir -p m4
+cp -a %{SOURCE1} m4
+cp -a %{SOURCE2} m4
+cp -a %{SOURCE3} m4
+
%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
%{?debug:--enable-debug} \
--with-zlib=/usr
@@ -49,9 +85,17 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%doc README
+%attr(755,root,root) %{_libdir}/libtaocrypt.so.*.*.*
+%attr(755,root,root) %{_libdir}/libyassl.so.*.*.*
+
+%files devel
+%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/benchmark
%attr(755,root,root) %{_bindir}/client
%attr(755,root,root) %{_bindir}/echoclient
@@ -60,6 +104,13 @@
%attr(755,root,root) %{_bindir}/test
%attr(755,root,root) %{_bindir}/testsuite
%{_includedir}/yassl
+%{_libdir}/libtaocrypt.la
+%{_libdir}/libtaocrypt.so
+%{_libdir}/libyassl.la
+%{_libdir}/libyassl.so
+
+%files static
+%defattr(644,root,root,755)
%{_libdir}/libtaocrypt.a
%{_libdir}/libyassl.a
@@ -69,6 +120,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2007/01/31 22:03:16 glen
+- build shared lib
+- created -devel, -static
+
Revision 1.2 2007/01/31 21:41:53 glen
- make tests
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/yassl.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list