inetutils/inetutils.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/inetutils/inetutils.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,65 @@
     1.4 +#   package information
     1.5 +Name:          inetutils
     1.6 +Summary:       GNU Internet Utilities
     1.7 +URL:           http://www.gnu.org/software/inetutils/
     1.8 +Vendor:        Free Software Foundation
     1.9 +Packager:      Michael Schloh von Bennewitz
    1.10 +Distribution:  OpenPKG Community
    1.11 +Group:         Network
    1.12 +License:       GPL
    1.13 +Version:       1.8
    1.14 +Release:       20101201
    1.15 +
    1.16 +#   list of sources
    1.17 +Source0:       ftp://ftp.gnu.org/gnu/inetutils/inetutils-%{version}.tar.gz
    1.18 +
    1.19 +#   build information
    1.20 +BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
    1.21 +BuildRequires: ncurses, make
    1.22 +Requires(pre): ncurses
    1.23 +
    1.24 +%description
    1.25 +    The GNU Internet Utilities are a collection of common network
    1.26 +    programs. Please note that specific to this OpenPKG version only a
    1.27 +    subset of the original GNU Internet Utilities is provided. Mainly we
    1.28 +    provide networking clients only.
    1.29 +
    1.30 +%prep
    1.31 +%setup -q
    1.32 +
    1.33 +%build
    1.34 +    CFLAGS="$RPM_OPT_FLAGS" \
    1.35 +    ./configure \
    1.36 +        --prefix=%{_prefix} \
    1.37 +        --mandir=%{_mandir} \
    1.38 +        --infodir=%{_infodir} \
    1.39 +        --program-prefix=g \
    1.40 +        --disable-servers \
    1.41 +        --disable-tftp \
    1.42 +        --disable-whois \
    1.43 +        --disable-libls \
    1.44 +        --disable-encryption \
    1.45 +        --disable-authentication \
    1.46 +        --without-krb4 \
    1.47 +        --without-krb5 \
    1.48 +        --without-wrap \
    1.49 +        --without-pam
    1.50 +    make %{?_smp_mflags}
    1.51 +
    1.52 +%install
    1.53 +    rm -rf $RPM_BUILD_ROOT
    1.54 +    make install DESTDIR=$RPM_BUILD_ROOT
    1.55 +    strip $RPM_BUILD_ROOT%{_bindir}/* >/dev/null 2>&1 || true
    1.56 +    rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    1.57 +    for i in tftp syslog.conf ftpd inetd rexecd rlogind rshd syslogd talkd \
    1.58 +        telnetd tftpd; do
    1.59 +        rm -f $RPM_BUILD_ROOT%{_mandir}/man?/g$i.?
    1.60 +    done
    1.61 +
    1.62 +%clean
    1.63 +    rm -rf $RPM_BUILD_ROOT
    1.64 +
    1.65 +%files
    1.66 +%defattr(-,root,root,-)
    1.67 +%{_bindir}/*
    1.68 +

mercurial