Blame SPECS/man-pages-overrides.spec

c085a7
Summary: Complementary and updated manual pages
c085a7
Name: man-pages-overrides
c085a7
Version: 7.0.0
5a889d
Release: 2%{?dist}
c085a7
# license is the same as for the man-pages package
c085a7
License: GPL+ and GPLv2+ and BSD and MIT and Copyright only and IEEE
c085a7
Group: Documentation
c085a7
# there is no public download location for this package
c085a7
Source: man-pages-overrides-%{version}.tar.xz
c085a7
c085a7
BuildArch: noarch
c085a7
c085a7
%description
c085a7
A collection of manual ("man") pages to complement other packages or update
c085a7
those contained therein. Always have the latest version of this package
c085a7
installed.
c085a7
c085a7
%prep
c085a7
%setup -q
c085a7
c085a7
%install
c085a7
mkdir -p $RPM_BUILD_ROOT%{_mandir}/overrides
c085a7
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
c085a7
for i in *; do
c085a7
    if [[ -d "$i" ]]; then
c085a7
        for j in $(ls "$i"); do
c085a7
           if [[ -d "$i/$j" ]]; then
c085a7
               mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
c085a7
               for k in $(ls "$i/$j"); do
c085a7
                   if [[ -d "$i/$j/$k" ]]; then
c085a7
                       mkdir -p "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
c085a7
                       cp -f "$i/$j/$k"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j/$k"
c085a7
                   else
c085a7
                       cp -f "$i/$j"/* "$RPM_BUILD_ROOT%{_mandir}/overrides/$j"
c085a7
                   fi
c085a7
               done
c085a7
           else
c085a7
              mkdir -p "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
c085a7
              cp "$i/$j" "$RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/$i"
c085a7
           fi
c085a7
        done
c085a7
    fi
c085a7
done
c085a7
c085a7
%files
c085a7
%doc %{_docdir}/%{name}-%{version}
c085a7
%{_mandir}/overrides/
c085a7
c085a7
%changelog
5a889d
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 7.0.0-2
5a889d
- Mass rebuild 2013-12-27
5a889d
c085a7
* Thu Oct 18 2012 Peter Schiffer <pschiffe@redhat.com> 7.0.0-1
c085a7
- initial package for RHEL-7.0