commit 9dbdd039bc1855833715c973b878d5a8a7fe0518
Author: Christoph Erhardt <christoph.erhardt(a)sicherha.de>
Date: Fri Nov 25 00:25:37 2022 +0100
Add initial package
.gitignore | 1 +
man-pages-posix.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 48 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bdc1a69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/man-pages-posix-*.tar.xz
diff --git a/man-pages-posix.spec b/man-pages-posix.spec
new file mode 100644
index 0000000..48033cd
--- /dev/null
+++ b/man-pages-posix.spec
@@ -0,0 +1,46 @@
+%global posix_version 2017
+%global posix_release a
+%global posix_name man-pages-posix-%{posix_version}
+%global posix_name_rel %{posix_name}-%{posix_release}
+
+Summary: POSIX interface documentation
+Name: man-pages-posix
+Version: %{posix_version}%{posix_release}
+Release: 1%{?dist}
+License: LicenseRef-IEEE-2017
+URL:
https://www.kernel.org/doc/man-pages/
+Source:
https://www.kernel.org/pub/linux/docs/man-pages/man-pages-posix/%{posix_n...
+
+BuildRequires: make
+
+# POSIX man pages used to be part of the regular `man-pages` package before the
+# version below
+Conflicts: man-pages < 5.12-3
+
+BuildArch: noarch
+
+%description
+A collection of POSIX manual pages from the Linux Documentation Project (LDP).
+
+%prep
+%autosetup -n %{posix_name}
+
+## Remove man pages we are not going to use ##
+
+# we do not have sccs (rhbz#203302)
+rm man1p/{admin,delta,get,prs,rmdel,sact,sccs,unget,val,what}.1p
+
+%build
+# nothing to build
+
+%install
+make install DESTDIR="$RPM_BUILD_ROOT"
+
+%files
+%doc README %{posix_name_rel}.Announce
+%license POSIX-COPYRIGHT
+%{_mandir}/man*/*
+
+%changelog
+* Fri Nov 25 2022 Christoph Erhardt <fedora(a)sicherha.de> - 2017a-1
+- Initial package
diff --git a/sources b/sources
index e69de29..2462465 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (man-pages-posix-2017-a.tar.xz) =
dac6bd5bb3e1d5f8918bad3eb15e08eeb3e06ae160c04ccd5619bfb0c536139ac06faa62b6856656a1bb9a7496f3148e52a5227b83e4099be6e6b93230de211d