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