Blame SPECS/man-pages-overrides.spec

fa6cd3
%global debug_package   %{nil}
fa6cd3
fa6cd3
Summary: Complementary and updated manual pages
fa6cd3
Name: man-pages-overrides
1ecdca
Version: 8.2.0.2
1ecdca
Release: 1%{?dist}
fa6cd3
# license is the same as for the man-pages package
fa6cd3
License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE
fa6cd3
Group: Documentation
fa6cd3
# there is no public download location for this package
fa6cd3
Source: man-pages-overrides-%{version}.tar.xz
fa6cd3
fa6cd3
Patch0: 1706882-mpo-8.1.0.0-rpc.3.patch
1ecdca
Patch1: 1673142-mpo-8.2.0.0-copy_file_range.2.patch
1ecdca
Patch2: 1517305-mpo-8.2.0.1-jose-.1.patch
fa6cd3
fa6cd3
BuildArch: noarch
fa6cd3
fa6cd3
# make sure man-pages-overrides is installed with man-pages
fa6cd3
Supplements: man-pages
fa6cd3
fa6cd3
%description
fa6cd3
A collection of manual ("man") pages to complement other packages or update
fa6cd3
those contained therein. Always have the latest version of this package
fa6cd3
installed.
fa6cd3
fa6cd3
%prep
fa6cd3
%autosetup -p1
fa6cd3
# remove unwanted *.orig files
fa6cd3
find -name "*.orig" -delete
fa6cd3
fa6cd3
%build
fa6cd3
# nothing to build
fa6cd3
fa6cd3
%install
fa6cd3
mkdir -p $RPM_BUILD_ROOT%{_mandir}/overrides
fa6cd3
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
fa6cd3
for i in *; do
fa6cd3
    if [[ -d "$i" ]]; then
fa6cd3
        for j in $(ls "$i"); do
fa6cd3
           if [[ -d "$i/$j" ]]; then
fa6cd3
               mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
fa6cd3
               for k in $(ls "$i/$j"); do
fa6cd3
                   if [[ -d "$i/$j/$k" ]]; then
fa6cd3
                       mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
fa6cd3
                       cp -f "$i/$j/$k"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
fa6cd3
                   else
fa6cd3
                       cp -f "$i/$j"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
fa6cd3
                   fi
fa6cd3
               done
fa6cd3
           else
fa6cd3
              mkdir -p "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
fa6cd3
              cp "$i/$j" "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
fa6cd3
           fi
fa6cd3
        done
fa6cd3
    fi
fa6cd3
done
fa6cd3
fa6cd3
%files
fa6cd3
%doc %{_docdir}/%{name}-%{version}
fa6cd3
%{_mandir}/overrides/
fa6cd3
fa6cd3
%changelog
1ecdca
* Thu Dec 19 2019 Nikola Forró <nforro@redhat.com> - 8.2.0.2-1
1ecdca
- Upload new tarball
1ecdca
- kernel_lockdown.7: add missing .RE macro
1ecdca
  related: #1781945
1ecdca
1ecdca
* Wed Dec 18 2019 Nikola Forró <nforro@redhat.com> - 8.2.0.1-1
1ecdca
- Upload new tarball
1ecdca
- jose-*.1: fix typographical errors
1ecdca
  resolves: #1517305
1ecdca
1ecdca
* Fri Dec 13 2019 Nikola Forró <nforro@redhat.com> - 8.2.0.0-1
1ecdca
- Upload new tarball
1ecdca
- kernel_lockdown.7: add new manpage
1ecdca
  resolves: #1781945
1ecdca
- copy_file_range.2: update ERRORS
1ecdca
  resolves: #1673142
1ecdca
fa6cd3
* Wed Jun 19 2019 Nikola Forró <nforro@redhat.com> - 8.1.0.0-2
fa6cd3
- Mark this package as man-pages supplement
fa6cd3
  related: #1706882
fa6cd3
fa6cd3
* Wed May 29 2019 Nikola Forró <nforro@redhat.com> - 8.1.0.0-1
fa6cd3
- Upload new tarball
fa6cd3
- rpc.3: indicate that <rpc/rpc.h> is provided by libtirpc-devel, not glibc
fa6cd3
  resolves: #1706882
fa6cd3
fa6cd3
* Thu Jul 26 2018 Nikola Forró <nforro@redhat.com> - 8.0.0-1
fa6cd3
- Initial package for RHEL 8.0