#TARBALL:	https://www.kernel.org/pub/linux/docs/man-pages/man-pages-4.16.tar.xz
#MD5SUM:	ad9f1ff81276fe8d90d077484d6d4b5e;SOURCES/man-pages-4.16.tar.xz
#-----------------------------------------------------------------------------
Summary:	Man pages
Name:		man-pages
Version:	4.16
Release:	1
License:	GPLv2
URL:		http://www.kernel.org/doc/man-pages
Group:		LFS/Base
Vendor:	Elizabeth
Source:	http://www.kernel.org/pub/linux/docs/man-pages/%{name}-%{version}.tar.xz
Requires:	filesystem
%description
The Man-pages package contains over 1,900 man pages.
#-----------------------------------------------------------------------------
%prep
%setup -q
%build
%install
	make DESTDIR=%{buildroot} install
#-----------------------------------------------------------------------------
#	Copy license/copying file
	install -D -m644 man-pages-%{version}.Announce %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
#	Create file list
#	rm  %{buildroot}%{_infodir}/dir
	find %{buildroot} -name '*.la' -delete
	find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
	sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
	sed -i '/man\/man/d' filelist.rpm
	sed -i '/\/usr\/share\/info/d' filelist.rpm
#-----------------------------------------------------------------------------
%files
	%defattr(-,root,root)
	%{_mandir}/man1/*.gz
	%{_mandir}/man2/*.gz
	%{_mandir}/man3/*.gz
	%{_mandir}/man4/*.gz
	%{_mandir}/man5/*.gz
	%{_mandir}/man6/*.gz
	%{_mandir}/man7/*.gz
	%{_mandir}/man8/*.gz
	%{_datarootdir}/licenses/man-pages/LICENSE
#-----------------------------------------------------------------------------
%changelog
*	Fri Mar 15 2019 baho-utot <baho-utot@columbus.rr.com> 4.16-1
*	Mon Mar 19 2018 baho-utot <baho-utot@columbus.rr.com> 4.15-1
*	Tue Dec 19 2017 baho-utot <baho-utot@columbus.rr.com> 4.12-1
*	Sat Mar 22 2014 baho-utot <baho-utot@columbus.rr.com> 3.59-1
*	Sat Aug 24 2013 baho-utot <baho-utot@columbus.rr.com> 3.53-1
*	Fri May 10 2013 baho-utot <baho-utot@columbus.rr.com> 3.51-1
*	Sun Mar 24 2013 baho-utot <baho-utot@columbus.rr.com> 3.50-1
*	Wed Jan 30 2013 baho-utot <baho-utot@columbus.rr.com> 3.42-1


