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