diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-09 07:37:32 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-03-09 07:37:32 +0000 |
commit | 94d4e1c8dfda432053aa4ac1fe130af5cd93f012 (patch) | |
tree | 4eb637e6253bb5382c3a4d35c44cb523b64de9af | |
parent | 943435d8729c796e4fe464d1970f38fc57f16cb3 (diff) |
automatic import of python-feedgenerator
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-feedgenerator.spec | 79 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -0,0 +1 @@ +/feedgenerator-2.0.0.tar.gz diff --git a/python-feedgenerator.spec b/python-feedgenerator.spec new file mode 100644 index 0000000..9d79114 --- /dev/null +++ b/python-feedgenerator.spec @@ -0,0 +1,79 @@ +%global _empty_manifest_terminate_build 0 +Name: python-feedgenerator +Version: 2.0.0 +Release: 1 +Summary: Standalone version of django.utils.feedgenerator +License: BSD License +URL: https://github.com/getpelican/feedgenerator +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/69/67/ee0bbc3fd0a2e9e0c02e3bcb3105302c6c88951f3f8e9d86ea81e4f8f293/feedgenerator-2.0.0.tar.gz +BuildArch: noarch + +Requires: python3-pytz + +%description +|githubci| |pypi| +FeedGenerator is a standalone version of Django’s feedgenerator_ module. +It has evolved over time and includes numerous enhancements. + +%package -n python3-feedgenerator +Summary: Standalone version of django.utils.feedgenerator +Provides: python-feedgenerator +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-feedgenerator +|githubci| |pypi| +FeedGenerator is a standalone version of Django’s feedgenerator_ module. +It has evolved over time and includes numerous enhancements. + +%package help +Summary: Development documents and examples for feedgenerator +Provides: python3-feedgenerator-doc +%description help +|githubci| |pypi| +FeedGenerator is a standalone version of Django’s feedgenerator_ module. +It has evolved over time and includes numerous enhancements. + +%prep +%autosetup -n feedgenerator-2.0.0 + +%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-feedgenerator -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +70e9904afd898363626fcc85838c961f feedgenerator-2.0.0.tar.gz |