File silc-toolkit.spec of Package silc-toolkit

#
# spec file for package silc-toolkit (Version 1.1.10)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           silc-toolkit
# NOTE: This package compiles only library and not client nor server.
Summary:        Secure Internet Live Conferencing Software Development Toolkit
Version:        1.1.10
Release:        1
License:        BSD 3-clause (or similar) ; GPL v2 or later
Group:          System/Libraries
Url:            http://www.silcnet.org/software/developers/toolkit/
Source:         http://www.silcnet.org/download/toolkit/sources/%{name}-%{version}.tar.bz2
Patch1:         silc-buildroot.patch
Patch2:         silc-tutorial-makefile.patch
BuildRequires:  dante-devel nasm yasm
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
SILC Toolkit is a software development toolkit which provides full SILC
protocol implementation for application developers. The SILC Toolkit
provides SILC Client Library, SILC Protocol Core Library, SILC Key
Exchange Library, SILC Crypto Library, SILC Math Library, SILC Utility
Library, as well as other libraries. The SILC Toolkit also includes a
full reference manual and developer guide with examples and tutorials.

SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channels.
SILC is similar to IRC, as they both provide conferencing services and
almost have the same commands. However, they differ internally: unlike
IRC, SILC is secure and has an entirely different compared to IRC.



Authors:
--------
    Pekka Riikonen <priikone@silcnet.org>
    Jochen Eisinger <coffee@silcnet.org>
    Johnny Mnemonic <johnny@themnemonic.org>
    Patrik Weiskircher <pat@icore.at>
    Timo Sirainen <tss@iki.fi>
    Lubomir Sedlacik <salo@silcnet.org>

%package -n libsilc-1_1-2
License:        BSD 3-clause (or similar) ; GPL v2 or later
Group:          System/Libraries
Summary:        Secure Internet Live Conferencing Software Development Toolkit
# NOTE: library does not require modules, but any client software may use SILC_MODULESDIR:
Requires:       %{name} >= %{version}

%description -n libsilc-1_1-2
SILC Toolkit is a software development toolkit which provides full SILC
protocol implementation for application developers. The SILC Toolkit
provides SILC Client Library, SILC Protocol Core Library, SILC Key
Exchange Library, SILC Crypto Library, SILC Math Library, SILC Utility
Library, and other libraries. The SILC Toolkit also includes full
reference manual and developer guide with examples and tutorials.

SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as
IRC. Other than that they are nothing alike.  Major differences are
that SILC is secure what IRC is not in any way.  The network model is
also entirely different compared to IRC.



Authors:
--------
    Pekka Riikonen <priikone@silcnet.org>
    Jochen Eisinger <coffee@silcnet.org>
    Johnny Mnemonic <johnny@themnemonic.org>
    Patrik Weiskircher <pat@icore.at>
    Timo Sirainen <tss@iki.fi>
    Lubomir Sedlacik <salo@silcnet.org>

%package -n libsilcclient-1_1-3
License:        BSD 3-clause (or similar) ; GPL v2 or later
Group:          System/Libraries
Summary:        Secure Internet Live Conferencing Software Development Toolkit
# NOTE: library does not require modules, but any client software may use SILC_MODULESDIR:
Requires:       %{name} >= %{version}

%description -n libsilcclient-1_1-3
SILC Toolkit is a software development toolkit which provides full SILC
protocol implementation for application developers. The SILC Toolkit
provides SILC Client Library, SILC Protocol Core Library, SILC Key
Exchange Library, SILC Crypto Library, SILC Math Library, SILC Utility
Library, and other libraries. The SILC Toolkit also includes full
reference manual and developer guide with examples and tutorials.

SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as
IRC. Other than that they are nothing alike.  Major differences are
that SILC is secure what IRC is not in any way.  The network model is
also entirely different compared to IRC.



Authors:
--------
    Pekka Riikonen <priikone@silcnet.org>
    Jochen Eisinger <coffee@silcnet.org>
    Johnny Mnemonic <johnny@themnemonic.org>
    Patrik Weiskircher <pat@icore.at>
    Timo Sirainen <tss@iki.fi>
    Lubomir Sedlacik <salo@silcnet.org>

%package devel
License:        BSD 3-clause (or similar) ; GPL v2 or later
Group:          System/Libraries
Summary:        Secure Internet Live Conferencing Software Development Toolkit
Requires:       libsilc-1_1-2 = %{version} libsilcclient-1_1-3 = %{version} dante-devel

%description devel
SILC Toolkit is a software development toolkit which provides full SILC
protocol implementation for application developers. The SILC Toolkit
provides SILC Client Library, SILC Protocol Core Library, SILC Key
Exchange Library, SILC Crypto Library, SILC Math Library, SILC Utility
Library, and other libraries. The SILC Toolkit also includes full
reference manual and developer guide with examples and tutorials.

SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as
IRC. Other than that they are nothing alike.  Major differences are
that SILC is secure what IRC is not in any way.  The network model is
also entirely different compared to IRC.



Authors:
--------
    Pekka Riikonen <priikone@silcnet.org>
    Jochen Eisinger <coffee@silcnet.org>
    Johnny Mnemonic <johnny@themnemonic.org>
    Patrik Weiskircher <pat@icore.at>
    Timo Sirainen <tss@iki.fi>
    Lubomir Sedlacik <salo@silcnet.org>

%prep
%setup -q
%patch1
%patch2

%build
ACLOCAL="aclocal -I ." autoreconf -f -i
# If it compiles OK, do not use --with-gmp. See INSTALL for more.
%configure\
	--includedir=%{_includedir}/silc\
%if %suse_version > 1010
	--docdir=%{_docdir}/%{name}\
%endif
	--with-simdir=%{_libdir}/silc/modules\
	--with-socks4 --disable-static --with-pic --without-libtoolfix
%if %suse_version > 1010
make %{?jobs:-j%jobs}
%else
make %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
%endif

%install
%if %suse_version > 1010
%makeinstall
%else
%makeinstall docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}
%endif
rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{INSTALL,README.MACOSX,README.SYMBIAN,README.WIN32}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/silc
cp doc/silcalgs.conf $RPM_BUILD_ROOT%{_sysconfdir}/silc/
%{__rm} -f %{buildroot}%{_libdir}/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libsilc-1_1-2 -p /sbin/ldconfig

%postun -n libsilc-1_1-2 -p /sbin/ldconfig

%post -n libsilcclient-1_1-3 -p /sbin/ldconfig

%postun -n libsilcclient-1_1-3 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/BSD
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/CREDITS
%doc %{_docdir}/%{name}/FAQ
%doc %{_docdir}/%{name}/GPL
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%{_libdir}/silc
%{_sysconfdir}/silc

%files -n libsilc-1_1-2
%defattr(-,root,root)
%{_libdir}/libsilc-1.1.so.2*

%files -n libsilcclient-1_1-3
%defattr(-,root,root)
%{_libdir}/libsilcclient-1.1.so.3*

%files devel
%defattr(-,root,root)
%doc %{_docdir}/%{name}/CodingStyle
%doc %{_docdir}/%{name}/README.CVS
%doc %{_docdir}/%{name}/*.txt
%doc %{_docdir}/%{name}/toolkit
%doc %{_docdir}/%{name}/tutorial
%{_includedir}/silc
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by