diff --git a/.man-pages-overrides.metadata b/.man-pages-overrides.metadata new file mode 100644 index 0000000..84b8d3c --- /dev/null +++ b/.man-pages-overrides.metadata @@ -0,0 +1 @@ +00e038c72c956dc65791a3132342d731e2477986 SOURCES/man-pages-overrides-7.0.0.tar.xz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/man-pages-overrides.spec b/SPECS/man-pages-overrides.spec new file mode 100644 index 0000000..9fd71d3 --- /dev/null +++ b/SPECS/man-pages-overrides.spec @@ -0,0 +1,51 @@ +Summary: Complementary and updated manual pages +Name: man-pages-overrides +Version: 7.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 +%setup -q + +%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 Oct 18 2012 Peter Schiffer 7.0.0-1 +- initial package for RHEL-7.0