%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 * Thu Jun 08 2023 Python_Bot - 0.3.0-1 - Package Spec generated