diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:08:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:08:49 +0000 |
commit | e80b578d0f891ad1e32e6cb2d7420fb7c3b54c77 (patch) | |
tree | fdf50e4c517c7f10e3bb7d1f2fe4582edd830d24 | |
parent | 283f6b2899a18af095f43e39cc79412a678bc1eb (diff) |
automatic import of python-podcastparser
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-podcastparser.spec | 96 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 98 insertions, 0 deletions
@@ -0,0 +1 @@ +/podcastparser-0.6.9.tar.gz diff --git a/python-podcastparser.spec b/python-podcastparser.spec new file mode 100644 index 0000000..ab3da14 --- /dev/null +++ b/python-podcastparser.spec @@ -0,0 +1,96 @@ +%global _empty_manifest_terminate_build 0 +Name: python-podcastparser +Version: 0.6.9 +Release: 1 +Summary: Simplified, fast RSS parser +License: ISC License +URL: http://gpodder.org/podcastparser/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/90/48/cae76d73226746a5c17ed58fcdf32b8f2cea54f9deca882fd67f82b6b4f7/podcastparser-0.6.9.tar.gz +BuildArch: noarch + + +%description +The podcast parser project is a library from the gPodder project to provide an +easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python. +See docs in [./doc](./doc) or at [Read the Docs](https://podcastparser.readthedocs.io/en/latest/). +## Automated Tests +To run the unit tests you need [`pytest`](https://docs.pytest.org/). If you have `pytest` installed, use the `pytest` command in the repository's root directory to run the tests. +## Automated Release to Pypi +To release, update the version number in podcastparser.py, commit and push. +Then create an (annotated) tag and push it. +The GitHub action will publish on pypi. + +%package -n python3-podcastparser +Summary: Simplified, fast RSS parser +Provides: python-podcastparser +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-podcastparser +The podcast parser project is a library from the gPodder project to provide an +easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python. +See docs in [./doc](./doc) or at [Read the Docs](https://podcastparser.readthedocs.io/en/latest/). +## Automated Tests +To run the unit tests you need [`pytest`](https://docs.pytest.org/). If you have `pytest` installed, use the `pytest` command in the repository's root directory to run the tests. +## Automated Release to Pypi +To release, update the version number in podcastparser.py, commit and push. +Then create an (annotated) tag and push it. +The GitHub action will publish on pypi. + +%package help +Summary: Development documents and examples for podcastparser +Provides: python3-podcastparser-doc +%description help +The podcast parser project is a library from the gPodder project to provide an +easy and reliable way of parsing RSS- and Atom-based podcast feeds in Python. +See docs in [./doc](./doc) or at [Read the Docs](https://podcastparser.readthedocs.io/en/latest/). +## Automated Tests +To run the unit tests you need [`pytest`](https://docs.pytest.org/). If you have `pytest` installed, use the `pytest` command in the repository's root directory to run the tests. +## Automated Release to Pypi +To release, update the version number in podcastparser.py, commit and push. +Then create an (annotated) tag and push it. +The GitHub action will publish on pypi. + +%prep +%autosetup -n podcastparser-0.6.9 + +%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-podcastparser -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.9-1 +- Package Spec generated @@ -0,0 +1 @@ +ca8651eec801c1fb1308588b11d308fc podcastparser-0.6.9.tar.gz |