| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- ##
- ## gnutls.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: gnutls
- Summary: GNU SSL/TLS Library
- URL: http://www.gnu.org/software/gnutls/
- Vendor: Free Software Foundation
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: PLUS
- Group: SSL
- License: LGPL
- Version: 2.6.6
- Release: 20090430
- # package options
- %option with_cxx no
- # list of sources
- Source0: ftp://ftp.gnu.org/pub/gnu/gnutls/gnutls-%{version}.tar.bz2
- Patch0: gnutls.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130
- PreReq: OpenPKG, openpkg >= 20040130
- BuildPreReq: gcc
- %if "%{with_cxx}" == "yes"
- BuildPreReq: gcc::with_cxx = yes
- %endif
- BuildPreReq: gcrypt >= 1.2.4, opencdk >= 0.6.4, libtasn1 >= 1.1, lzo, zlib, getopt
- PreReq: gcrypt >= 1.2.4, opencdk >= 0.6.4, libtasn1 >= 1.1, lzo, zlib, getopt
- AutoReq: no
- AutoReqProv: no
- %description
- GnuTLS is a project that aims to develop a library which provides a
- secure layer, over a reliable transport layer. Currently the GnuTLS
- library implements the proposed standards by the IETF's TLS working
- group (RFC2246, TLS 1.0).
- %track
- prog gnutls = {
- version = %{version}
- url = ftp://ftp.gnu.org/pub/gnu/gnutls/
- regex = gnutls-(\d+\.\d*[02468](\.\d+)+)\.tar\.bz2
- }
- %prep
- %setup -q
- %patch -p0
- %build
- libs=""
- case "%{l_platform -t}" in
- *-sunos* ) libs="-lsocket -lnsl" ;;
- esac
- echo 'ac_cv_type_ptrdiff_t=yes' >config.cache
- CC="%{l_cc}" \
- CFLAGS="%{l_cflags -O}" \
- %if "%{with_cxx}" == "yes"
- CXX="%{l_cxx}" \
- CXXFLAGS="%{l_cxxflags -O}" \
- %endif
- CPPFLAGS="%{l_cppflags} %{l_cppflags lzo}" \
- LDFLAGS="%{l_ldflags}" \
- LIBS="$libs -lgetopt `%{l_prefix}/bin/gpg-error-config --libs` -lz" \
- GREP="grep" \
- ./configure \
- --cache-file=config.cache \
- --prefix=%{l_prefix} \
- --mandir=%{l_prefix}/man \
- --infodir=%{l_prefix}/info \
- --with-libgcrypt-prefix=%{l_prefix} \
- --with-libopencdk-prefix=%{l_prefix} \
- --with-libtasn1-prefix=%{l_prefix} \
- --with-libz-prefix=%{l_prefix} \
- --with-zlib \
- --with-lzo \
- --without-included-lzo \
- %if "%{with_cxx}" == "yes"
- --enable-cxx \
- %else
- --disable-cxx \
- %endif
- --disable-guile \
- --disable-nls \
- --disable-shared
- %{l_make} %{l_mflags -O}
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
- strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
- rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/locale
- rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std}
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|