inetutils/inetutils.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@0 1 # package information
michael@0 2 Name: inetutils
michael@0 3 Summary: GNU Internet Utilities
michael@0 4 URL: http://www.gnu.org/software/inetutils/
michael@0 5 Vendor: Free Software Foundation
michael@0 6 Packager: Michael Schloh von Bennewitz
michael@0 7 Distribution: OpenPKG Community
michael@0 8 Group: Network
michael@0 9 License: GPL
michael@0 10 Version: 1.8
michael@0 11 Release: 20101201
michael@0 12
michael@0 13 # list of sources
michael@0 14 Source0: ftp://ftp.gnu.org/gnu/inetutils/inetutils-%{version}.tar.gz
michael@0 15
michael@0 16 # build information
michael@0 17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
michael@0 18 BuildRequires: ncurses, make
michael@0 19 Requires(pre): ncurses
michael@0 20
michael@0 21 %description
michael@0 22 The GNU Internet Utilities are a collection of common network
michael@0 23 programs. Please note that specific to this OpenPKG version only a
michael@0 24 subset of the original GNU Internet Utilities is provided. Mainly we
michael@0 25 provide networking clients only.
michael@0 26
michael@0 27 %prep
michael@0 28 %setup -q
michael@0 29
michael@0 30 %build
michael@0 31 CFLAGS="$RPM_OPT_FLAGS" \
michael@0 32 ./configure \
michael@0 33 --prefix=%{_prefix} \
michael@0 34 --mandir=%{_mandir} \
michael@0 35 --infodir=%{_infodir} \
michael@0 36 --program-prefix=g \
michael@0 37 --disable-servers \
michael@0 38 --disable-tftp \
michael@0 39 --disable-whois \
michael@0 40 --disable-libls \
michael@0 41 --disable-encryption \
michael@0 42 --disable-authentication \
michael@0 43 --without-krb4 \
michael@0 44 --without-krb5 \
michael@0 45 --without-wrap \
michael@0 46 --without-pam
michael@0 47 make %{?_smp_mflags}
michael@0 48
michael@0 49 %install
michael@0 50 rm -rf $RPM_BUILD_ROOT
michael@0 51 make install DESTDIR=$RPM_BUILD_ROOT
michael@0 52 strip $RPM_BUILD_ROOT%{_bindir}/* >/dev/null 2>&1 || true
michael@0 53 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
michael@0 54 for i in tftp syslog.conf ftpd inetd rexecd rlogind rshd syslogd talkd \
michael@0 55 telnetd tftpd; do
michael@0 56 rm -f $RPM_BUILD_ROOT%{_mandir}/man?/g$i.?
michael@0 57 done
michael@0 58
michael@0 59 %clean
michael@0 60 rm -rf $RPM_BUILD_ROOT
michael@0 61
michael@0 62 %files
michael@0 63 %defattr(-,root,root,-)
michael@0 64 %{_bindir}/*
michael@0 65

mercurial