Skip to content

Commit 2db1ec9

Browse files
committed
rpm: Rewrote build and install sections as part of the fedora review process
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 2a83efb commit 2db1ec9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

rpm/SPECS/python-ethtool.spec

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Summary: Ethernet settings python bindings
55
Name: python-ethtool
66
Version: 0.3
7-
Release: 1%{?dist}
7+
Release: 2%{?dist}
88
URL: http://git.kernel.org/?p=linux/kernel/git/acme/python-ethtool.git
99
Source: http://userweb.kernel.org/~acme/python-ethtool/%{name}-%{version}.tar.bz2
1010
License: GPLv2
@@ -21,14 +21,14 @@ PCI locations.
2121
%setup -q
2222

2323
%build
24-
make
24+
%{__python} setup.py build
2525

2626
%install
2727
rm -rf %{buildroot}
28-
make DESTDIR=%{buildroot} install
28+
%{__python} setup.py install --skip-build --root %{buildroot}
2929
mkdir -p %{buildroot}%{_sbindir}
30-
cp -f pethtool.py %{buildroot}%{_sbindir}/pethtool
31-
cp -f pifconfig.py %{buildroot}%{_sbindir}/pifconfig
30+
cp -p pethtool.py %{buildroot}%{_sbindir}/pethtool
31+
cp -p pifconfig.py %{buildroot}%{_sbindir}/pifconfig
3232

3333
%clean
3434
rm -rf %{buildroot}
@@ -44,6 +44,10 @@ rm -rf %{buildroot}
4444
%endif
4545

4646
%changelog
47+
* Fri Sep 5 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-2
48+
- Rewrote build and install sections as part of the fedora review process
49+
BZ #459549
50+
4751
* Tue Aug 26 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.3-1
4852
- Add get_flags method from the first python-ethtool contributor, yay
4953
- Add pifconfig command, that mimics the ifconfig tool using the

0 commit comments

Comments
 (0)