summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-pager.spec84
-rw-r--r--sources1
3 files changed, 86 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..309cd19 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pager-3.3.tar.gz
diff --git a/python-pager.spec b/python-pager.spec
new file mode 100644
index 0000000..aeddf6f
--- /dev/null
+++ b/python-pager.spec
@@ -0,0 +1,84 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pager
+Version: 3.3
+Release: 1
+Summary: Terminal/console pager module in pure Python
+License: Public Domain
+URL: http://bitbucket.org/techtonik/python-pager
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5f/a1/95f8605e50c0ccc85ae53f63f5c4cb83b72f71fbd049a0e8259913e2cc22/pager-3.3.tar.gz
+BuildArch: noarch
+
+
+%description
+ python -m pager <file>
+ <command> | pager.py (Windows only - see issue #7)
+ pager.py < <file> (Windows only)
+ # run manual tests that are also a demo
+ python -m pager --test
+
+%package -n python3-pager
+Summary: Terminal/console pager module in pure Python
+Provides: python-pager
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pager
+ python -m pager <file>
+ <command> | pager.py (Windows only - see issue #7)
+ pager.py < <file> (Windows only)
+ # run manual tests that are also a demo
+ python -m pager --test
+
+%package help
+Summary: Development documents and examples for pager
+Provides: python3-pager-doc
+%description help
+ python -m pager <file>
+ <command> | pager.py (Windows only - see issue #7)
+ pager.py < <file> (Windows only)
+ # run manual tests that are also a demo
+ python -m pager --test
+
+%prep
+%autosetup -n pager-3.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-pager -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..4701539
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fbebda4d8d537c8aa0de883d15b87b95 pager-3.3.tar.gz