Installing the man pages and putting them in the files section

This commit is contained in:
Jaromir Capik 2013-07-03 21:21:47 +02:00
parent 3ed5f3de6b
commit d973368589

View File

@ -6,7 +6,7 @@
Name: i2c-tools
Version: 3.1.0
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A heterogeneous set of I2C tools for Linux
Group: Applications/System
License: GPLv2+
@ -66,6 +66,8 @@ rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
install -m 755 eepromer/{eepromer,eeprom,eeprog} \
$RPM_BUILD_ROOT%{_sbindir}
install -m 644 eepromer/{eepromer,eeprom,eeprog}.8 \
$RPM_BUILD_ROOT%{_mandir}/man8
pushd py-smbus
%{__python} setup.py install --skip-build --root=$RPM_BUILD_ROOT
popd
@ -100,11 +102,13 @@ rm -rf $RPM_BUILD_ROOT
%{_sbindir}/*
%exclude %{_sbindir}/eepro*
%{_mandir}/man8/*.8.gz
%exclude %{_mandir}/man8/eepro*
%files eepromer
%defattr(-,root,root,-)
%doc eepromer/README*
%{_sbindir}/eepro*
%{_mandir}/man8/eepro*.8.gz
%files python
%defattr(-,root,root,-)
@ -116,6 +120,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Jul 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-6
- Installing the man pages and putting them in the files section
* Wed Jul 03 2013 Jaromir Capik <jcapik@redhat.com> - 3.1.0-5
- Introducing man pages for binaries in the eepromer subpackage
- Introducing -r switch in the i2cset help