import man-pages-overrides-8.0.0-1.el8
This commit is contained in:
commit
66289a800f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
SOURCES/man-pages-overrides-8.0.0.tar.xz
|
1
.man-pages-overrides.metadata
Normal file
1
.man-pages-overrides.metadata
Normal file
@ -0,0 +1 @@
|
||||
ebcf8bd71d3498cf19fce2218217ae18d2198ef8 SOURCES/man-pages-overrides-8.0.0.tar.xz
|
58
SPECS/man-pages-overrides.spec
Normal file
58
SPECS/man-pages-overrides.spec
Normal file
@ -0,0 +1,58 @@
|
||||
%global debug_package %{nil}
|
||||
|
||||
Summary: Complementary and updated manual pages
|
||||
Name: man-pages-overrides
|
||||
Version: 8.0.0
|
||||
Release: 1%{?dist}
|
||||
# license is the same as for the man-pages package
|
||||
License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE
|
||||
Group: Documentation
|
||||
# there is no public download location for this package
|
||||
Source: man-pages-overrides-%{version}.tar.xz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
A collection of manual ("man") pages to complement other packages or update
|
||||
those contained therein. Always have the latest version of this package
|
||||
installed.
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
# remove unwanted *.orig files
|
||||
find -name "*.orig" -delete
|
||||
|
||||
%build
|
||||
# nothing to build
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/overrides
|
||||
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
||||
for i in *; do
|
||||
if [[ -d "$i" ]]; then
|
||||
for j in $(ls "$i"); do
|
||||
if [[ -d "$i/$j" ]]; then
|
||||
mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
|
||||
for k in $(ls "$i/$j"); do
|
||||
if [[ -d "$i/$j/$k" ]]; then
|
||||
mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
|
||||
cp -f "$i/$j/$k"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
|
||||
else
|
||||
cp -f "$i/$j"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
|
||||
fi
|
||||
done
|
||||
else
|
||||
mkdir -p "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
|
||||
cp "$i/$j" "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
%files
|
||||
%doc %{_docdir}/%{name}-%{version}
|
||||
%{_mandir}/overrides/
|
||||
|
||||
%changelog
|
||||
* Thu Jul 26 2018 Nikola Forró <nforro@redhat.com> - 8.0.0-1
|
||||
- Initial package for RHEL 8.0
|
Loading…
Reference in New Issue
Block a user