xref: /aosp_15_r20/external/ethtool/ethtool.spec.in (revision 1b481fc3bb1b45d4cf28d1ec12969dc1055f555d)
1Name		: @PACKAGE@
2Version		: @VERSION@
3Release		: 1
4Group		: Utilities
5
6Summary		: Settings tool for Ethernet and other network devices
7
8License		: GPL
9URL		: https://ftp.kernel.org/pub/software/network/ethtool/
10
11Buildroot	: %{_tmppath}/%{name}-%{version}
12Source		: %{name}-%{version}.tar.gz
13
14
15%description
16This utility allows querying and changing settings such as speed,
17port, auto-negotiation, PCI locations and checksum offload on many
18network devices, especially Ethernet devices.
19
20%prep
21%setup -q
22
23
24%build
25CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
26make
27
28
29%install
30make install DESTDIR=${RPM_BUILD_ROOT}
31
32
33%files
34%defattr(-,root,root)
35%{_sbindir}/ethtool
36%{_mandir}/man8/ethtool.8*
37%{_datadir}/bash-completion/completions/ethtool
38%doc AUTHORS COPYING NEWS README
39
40
41%changelog
42