radiusclient/radiusclient.spec

Tue, 06 Jan 2009 23:43:55 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2009 23:43:55 +0100
changeset 15
0b0ffb65d705
child 18
9115bae56135
permissions
-rw-r--r--

Replace imake with xmkmf for portability across X11 installations.

     1 ##
     2 ##  radiusclient.spec -- OpenPKG RPM Package Specification
     3 ##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     4 ##
     5 ##  Permission to use, copy, modify, and distribute this software for
     6 ##  any purpose with or without fee is hereby granted, provided that
     7 ##  the above copyright notice and this permission notice appear in all
     8 ##  copies.
     9 ##
    10 ##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    11 ##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    12 ##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    13 ##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    14 ##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    15 ##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    16 ##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    17 ##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    18 ##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    19 ##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    20 ##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    21 ##  SUCH DAMAGE.
    22 ##
    24 #   package information
    25 Name:         radiusclient
    26 Summary:      RADIUS Client Library and Tools
    27 URL:          http://radiusclient-ng.berlios.de/
    28 Vendor:       Lars Fenneberg et al.
    29 Packager:     OpenPKG Foundation e.V.
    30 Distribution: OpenPKG Community
    31 Class:        EVAL
    32 Group:        RADIUS
    33 License:      BSD-style
    34 Version:      0.5.6
    35 Release:      20080317
    37 #   list of sources
    38 Source0:      http://download.berlios.de/radiusclient-ng/radiusclient-ng-%{version}.tar.gz
    39 Patch0:       radiusclient.patch
    41 #   build information
    42 Prefix:       %{l_prefix}
    43 BuildRoot:    %{l_buildroot}
    44 BuildPreReq:  OpenPKG, openpkg >= 20060823
    45 PreReq:       OpenPKG, openpkg >= 20060823
    46 AutoReq:      no
    47 AutoReqProv:  no
    49 %description
    50     This is a RADIUS client library and corresponding tools.
    52 %track
    53     prog radiusclient = {
    54         version   = %{version}
    55         url       = http://prdownload.berlios.de/radiusclient-ng/
    56         regex     = radiusclient-ng-(__VER__)\.tar\.gz
    57     }
    59 %prep
    60     %setup -q -n radiusclient-ng-%{version}
    61     %patch -p0
    63 %build
    64     CC="%{l_cc}" \
    65     CFLAGS="%{l_cflags -O}" \
    66     CPPFLAGS="%{l_cppflags}" \
    67     LDFLAGS="%{l_ldflags}" \
    68     ./configure \
    69         --prefix=%{l_prefix} \
    70         --sysconfdir=%{l_prefix}/etc/radiusclient \
    71         --disable-shared
    72     %{l_make} %{l_mflags -O}
    74 %install
    75     rm -rf $RPM_BUILD_ROOT
    76     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
    77     rm -f $RPM_BUILD_ROOT%{l_prefix}/sbin/login.radius
    78     strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
    79     mv  $RPM_BUILD_ROOT%{l_prefix}/include/radiusclient-ng.h \
    80         $RPM_BUILD_ROOT%{l_prefix}/include/radiusclient.h
    81     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
    82         %{l_files_std} \
    83         '%config %{l_prefix}/etc/radiusclient/*'
    85 %files -f files
    87 %clean
    88     rm -rf $RPM_BUILD_ROOT

mercurial