Fix powerpc-utils doc dir
Update spec file to install package specific documentation to an unversioned subdir under /usr/share/doc. Signed-off-by: Mark Hamzy <hamzy@us.ibm.com> Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
This commit is contained in:
parent
00aee74190
commit
e9e185551f
@ -1,6 +1,6 @@
|
||||
Name: powerpc-utils
|
||||
Version: 1.2.17
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Utilities for PowerPC platforms
|
||||
|
||||
Group: System Environment/Base
|
||||
@ -48,10 +48,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT FILES= RCSCRIPTS=
|
||||
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/nvsetenv
|
||||
|
||||
%define pkgdocdir %{_datadir}/doc/%{name}-%{version}
|
||||
#%define pkgdocdir %{_datadir}/doc/%{name}-%{version}
|
||||
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||||
|
||||
# move doc files
|
||||
mkdir -p $RPM_BUILD_ROOT%{pkgdocdir}
|
||||
install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROOT%{pkgdocdir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}
|
||||
install $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils/* -t $RPM_BUILD_ROOT%{_pkgdocdir}
|
||||
rm -rf $RPM_BUILD_ROOT/usr/share/doc/packages/powerpc-utils
|
||||
|
||||
# remove init script and perl script. They are deprecated
|
||||
@ -125,6 +127,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%preun
|
||||
|
||||
%changelog
|
||||
* Sun Sep 15 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.17-2
|
||||
- Fix docdir (#998579)
|
||||
|
||||
* Tue Aug 20 2013 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.2.17
|
||||
- Update to latest upstream 1.2.17
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user