Skip to content

Commit 55c33d4

Browse files
committed
rpm: Add specfile from RHEL
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent dfe376a commit 55c33d4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

rpm/SPECS/python-ethtool.spec

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
2+
3+
Summary: ethtool python bindings
4+
Name: python-ethtool
5+
Version: 0.2
6+
Release: 1%{?dist}
7+
Source0: %{name}-%{version}.tar.bz2
8+
License: GPLv2+
9+
Group: System Environment/Libraries
10+
BuildRequires: python-devel
11+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12+
13+
%description
14+
ethtool python bindings
15+
16+
%prep
17+
%setup -q
18+
19+
%install
20+
rm -rf %{buildroot}
21+
make DESTDIR=%{buildroot} install
22+
23+
%clean
24+
rm -rf %{buildroot}
25+
26+
%files
27+
%defattr(-,root,root)
28+
%doc COPYING
29+
%{python_sitearch}/ethtool.so
30+
31+
%changelog
32+
* Tue Jun 10 2008 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-3
33+
- add dist to the release tag
34+
35+
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-2
36+
- First build into MRG repo
37+
38+
* Tue Dec 18 2007 Arnaldo Carvalho de Melo <acme@redhat.com> - 0.1-1
39+
- Get ethtool code from rhpl 0.212

0 commit comments

Comments
 (0)