Fixed missing man page packaging
Signed-off-by: David Sommerseth <davids@redhat.com>
This commit is contained in:
parent
3f347fe490
commit
1e3ca7f35b
@ -4,12 +4,12 @@
|
||||
Summary: Ethernet settings python bindings
|
||||
Name: python-ethtool
|
||||
Version: 0.7
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
URL: http://fedorapeople.org/gitweb?p=dsommers/public_git/python-ethtool.git;a=summary
|
||||
Source: http://dsommers.fedorapeople.org/python-ethtool/%{name}-%{version}.tar.bz2
|
||||
License: GPLv2
|
||||
Group: System Environment/Libraries
|
||||
BuildRequires: python-devel libnl-devel
|
||||
BuildRequires: python-devel libnl-devel asciidoc
|
||||
%if 0%{?rhel} && 0%{?rhel} < 5
|
||||
BuildRequires: pkgconfig gcc
|
||||
%endif
|
||||
@ -25,13 +25,17 @@ PCI locations.
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
a2x -d manpage -f manpage man/pethtool.8.asciidoc
|
||||
a2x -d manpage -f manpage man/pifconfig.8.asciidoc
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
%{__python} setup.py install --skip-build --root %{buildroot}
|
||||
mkdir -p %{buildroot}%{_sbindir}
|
||||
mkdir -p %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
|
||||
cp -p pethtool.py %{buildroot}%{_sbindir}/pethtool
|
||||
cp -p pifconfig.py %{buildroot}%{_sbindir}/pifconfig
|
||||
%{__gzip} -c man/pethtool.8 > %{buildroot}%{_mandir}/man8/pethtool.8.gz
|
||||
%{__gzip} -c man/pifconfig.8 > %{buildroot}%{_mandir}/man8/pifconfig.8.gz
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -41,12 +45,16 @@ rm -rf %{buildroot}
|
||||
%doc COPYING
|
||||
%{_sbindir}/pethtool
|
||||
%{_sbindir}/pifconfig
|
||||
%doc %{_mandir}/man8/*
|
||||
%{python_sitearch}/ethtool.so
|
||||
%if "%{python_ver}" >= "2.5"
|
||||
%{python_sitearch}/*.egg-info
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Apr 13 2011 David Sommerseth <davids@redhat.com> - 0.7-2
|
||||
- Fixed missing man page packaging
|
||||
|
||||
* Mon Apr 11 2011 David Sommerseth <davids@redhat.com> - 0.7-1
|
||||
- Fixed several memory leaks (commit aa2c20e697af, abc7f912f66d)
|
||||
- Improved error checking towards NULL values(commit 4e928d62a8e3)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user