summaryrefslogtreecommitdiff
path: root/python-views.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-29 09:44:57 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-29 09:44:57 +0000
commit3f884d91459febb3798862a6c6d21cd44b4adc92 (patch)
tree2c63f5064ee1b5ac2b820553f44d23cad97ea29a /python-views.spec
parenta635a01f68eaf4e186cd4c08fe58ab5aa2f03146 (diff)
automatic import of python-views
Diffstat (limited to 'python-views.spec')
-rw-r--r--python-views.spec81
1 files changed, 81 insertions, 0 deletions
diff --git a/python-views.spec b/python-views.spec
new file mode 100644
index 0000000..0cdff6a
--- /dev/null
+++ b/python-views.spec
@@ -0,0 +1,81 @@
+%global _empty_manifest_terminate_build 0
+Name: python-views
+Version: 0.3
+Release: 1
+Summary: views
+License: BSD
+URL: https://github.com/k7hoven/views
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/d9/5598d590f9467c364704397cbb0ebc9b33481b84e947c2af31cc1dc9fa11/views-0.3.tar.gz
+BuildArch: noarch
+
+
+%description
+The ``views`` module provides additions to the existing python comprehensions and generator expressions. (Chained) sequence views can be made using ``seq`` and generators can be chained with ``gen``, as shown in the examples below.
+Any feedback or suggestions are very welcome.
+- Email: koos.zevenhoven@aalto.fi
+- Twitter: `@k7hoven <https://twitter.com/k7hoven>`_
+
+%package -n python3-views
+Summary: views
+Provides: python-views
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-views
+The ``views`` module provides additions to the existing python comprehensions and generator expressions. (Chained) sequence views can be made using ``seq`` and generators can be chained with ``gen``, as shown in the examples below.
+Any feedback or suggestions are very welcome.
+- Email: koos.zevenhoven@aalto.fi
+- Twitter: `@k7hoven <https://twitter.com/k7hoven>`_
+
+%package help
+Summary: Development documents and examples for views
+Provides: python3-views-doc
+%description help
+The ``views`` module provides additions to the existing python comprehensions and generator expressions. (Chained) sequence views can be made using ``seq`` and generators can be chained with ``gen``, as shown in the examples below.
+Any feedback or suggestions are very welcome.
+- Email: koos.zevenhoven@aalto.fi
+- Twitter: `@k7hoven <https://twitter.com/k7hoven>`_
+
+%prep
+%autosetup -n views-0.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-views -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3-1
+- Package Spec generated