From 043ac1b1b55c05ae29a2c4af56e615f4fd619663 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 10 May 2023 07:18:34 +0000 Subject: automatic import of python-meteoalertapi --- .gitignore | 1 + python-meteoalertapi.spec | 188 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 190 insertions(+) create mode 100644 python-meteoalertapi.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..1c70e4a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/meteoalertapi-0.3.0.tar.gz diff --git a/python-meteoalertapi.spec b/python-meteoalertapi.spec new file mode 100644 index 0000000..9a0e619 --- /dev/null +++ b/python-meteoalertapi.spec @@ -0,0 +1,188 @@ +%global _empty_manifest_terminate_build 0 +Name: python-meteoalertapi +Version: 0.3.0 +Release: 1 +Summary: A small api to get alerting messages from extreme weather in Europe from https://www.meteoalarm.org. +License: MIT +URL: https://github.com/rolfberkenbosch/meteoalert-api +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/36/b3/756edf43b4cc3d3279e9214593a583664a4fd85a5cfef970dcb7b1bb1736/meteoalertapi-0.3.0.tar.gz +BuildArch: noarch + +Requires: python3-xmltodict +Requires: python3-requests + +%description +# meteoalarm-api + + +![PyPI](https://img.shields.io/pypi/v/meteoalertapi.svg?style=for-the-badge|https://pypi.org/project/meteoalertapi) +![Travis (.org)](https://img.shields.io/travis/rolfberkenbosch/meteoalert-api.svg?style=for-the-badge) + +An unofficial Python wrapper for [MeteoAlarm.org](https://meteoalarm.org) website (European Weather alerts), which can be used to check if a given province in your country has currently a weather alert. + +## Installation + +Using Pip: + +```console +pip install meteoalertapi +``` + +## Code Example + +```python +from meteoalertapi import Meteoalert + +# Find you country and province on https://meteoalarm.org/ or https://feeds.meteoalarm.org/ +meteo = Meteoalert('country', 'province_name') + +# Get the weather alarm for your place +meteo = Meteoalert('country', 'province_name') +print(str(meteo.get_alert())) +``` + +## Changelog + +See the [CHANGELOG](./CHANGELOG.md) file. + +## License + +MIT + + + + +%package -n python3-meteoalertapi +Summary: A small api to get alerting messages from extreme weather in Europe from https://www.meteoalarm.org. +Provides: python-meteoalertapi +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-meteoalertapi +# meteoalarm-api + + +![PyPI](https://img.shields.io/pypi/v/meteoalertapi.svg?style=for-the-badge|https://pypi.org/project/meteoalertapi) +![Travis (.org)](https://img.shields.io/travis/rolfberkenbosch/meteoalert-api.svg?style=for-the-badge) + +An unofficial Python wrapper for [MeteoAlarm.org](https://meteoalarm.org) website (European Weather alerts), which can be used to check if a given province in your country has currently a weather alert. + +## Installation + +Using Pip: + +```console +pip install meteoalertapi +``` + +## Code Example + +```python +from meteoalertapi import Meteoalert + +# Find you country and province on https://meteoalarm.org/ or https://feeds.meteoalarm.org/ +meteo = Meteoalert('country', 'province_name') + +# Get the weather alarm for your place +meteo = Meteoalert('country', 'province_name') +print(str(meteo.get_alert())) +``` + +## Changelog + +See the [CHANGELOG](./CHANGELOG.md) file. + +## License + +MIT + + + + +%package help +Summary: Development documents and examples for meteoalertapi +Provides: python3-meteoalertapi-doc +%description help +# meteoalarm-api + + +![PyPI](https://img.shields.io/pypi/v/meteoalertapi.svg?style=for-the-badge|https://pypi.org/project/meteoalertapi) +![Travis (.org)](https://img.shields.io/travis/rolfberkenbosch/meteoalert-api.svg?style=for-the-badge) + +An unofficial Python wrapper for [MeteoAlarm.org](https://meteoalarm.org) website (European Weather alerts), which can be used to check if a given province in your country has currently a weather alert. + +## Installation + +Using Pip: + +```console +pip install meteoalertapi +``` + +## Code Example + +```python +from meteoalertapi import Meteoalert + +# Find you country and province on https://meteoalarm.org/ or https://feeds.meteoalarm.org/ +meteo = Meteoalert('country', 'province_name') + +# Get the weather alarm for your place +meteo = Meteoalert('country', 'province_name') +print(str(meteo.get_alert())) +``` + +## Changelog + +See the [CHANGELOG](./CHANGELOG.md) file. + +## License + +MIT + + + + +%prep +%autosetup -n meteoalertapi-0.3.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-meteoalertapi -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot - 0.3.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..c427044 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +24a7dfe53097f898a9b38cce8e394b74 meteoalertapi-0.3.0.tar.gz -- cgit v1.2.3