summaryrefslogtreecommitdiff
path: root/python-sopel-modules-stocks.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 04:30:21 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 04:30:21 +0000
commit3cb44211620eacd5b4d28c234a910c55c35a7576 (patch)
treede6ba4ccd014f41e42c9a11baeea59a9601a0608 /python-sopel-modules-stocks.spec
parenta006bd8fe8c2e8be8757113cfba2dbd539f8390e (diff)
automatic import of python-sopel-modules.stocksopeneuler20.03
Diffstat (limited to 'python-sopel-modules-stocks.spec')
-rw-r--r--python-sopel-modules-stocks.spec241
1 files changed, 241 insertions, 0 deletions
diff --git a/python-sopel-modules-stocks.spec b/python-sopel-modules-stocks.spec
new file mode 100644
index 0000000..59d4a58
--- /dev/null
+++ b/python-sopel-modules-stocks.spec
@@ -0,0 +1,241 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sopel-modules.stocks
+Version: 1.2.1
+Release: 1
+Summary: Sopel Stocks Plugin
+License: MIT License
+URL: http://github.com/rustybower/sopel-stocks
+Source0: https://mirrors.aliyun.com/pypi/web/packages/43/e4/baf5f63d6e0ded8746cfbb737183021f46031ec16d07f8ff69c09c6ba6ce/sopel_modules.stocks-1.2.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+
+%description
+[![Python Tests](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml/badge.svg?branch=master)](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml)
+[![PyPI version](https://badge.fury.io/py/sopel-modules.stocks.svg)](https://badge.fury.io/py/sopel-modules.stocks)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python)
+
+**Maintainer:** [@RustyBower](https://github.com/rustybower)
+
+# sopel-stocks
+sopel-stocks is an stock lookup plugin for Sopel
+
+## Installing
+If possible, use `pip` to install this plugin. Below are example commands; you
+might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending
+on your system and environment. Do not use `setup.py install`; Sopel won't be
+able to load the plugin correctly.
+
+#### Published release
+
+ pip install sopel-modules.stocks
+
+#### From source
+
+ # Clone the repo, then run this in /path/to/sopel-stocks
+ pip install .
+
+## Configuring
+You can automatically configure this plugin using the `sopel configure --plugins` command.
+
+However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg`
+
+ [stocks]
+ api_key = API_KEY
+ provider = alphavantage (or iexcloud)
+
+## Requirements
+#### API Key (from 1 of the following providers)
+
+ https://www.alphavantage.co/support/#api-key
+ https://iexcloud.io/console/tokens
+
+#### Python Requirements
+
+ requests
+ sopel
+
+## Usage
+
+ .stock msft
+ <sopel> MSFT $123.37 1.6 (1.31%)⬆
+
+ .stock aapl amzn goog
+ <sopel> AAPL $150.83 -2.51 (-1.64%)⬇
+ <sopel> AMZN $97.06 -5.38 (-5.25%)⬇
+ <sopel> GOOG $90.445 -4.215 (-4.45%)⬇
+
+
+
+
+%package -n python3-sopel-modules.stocks
+Summary: Sopel Stocks Plugin
+Provides: python-sopel-modules.stocks
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sopel-modules.stocks
+[![Python Tests](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml/badge.svg?branch=master)](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml)
+[![PyPI version](https://badge.fury.io/py/sopel-modules.stocks.svg)](https://badge.fury.io/py/sopel-modules.stocks)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python)
+
+**Maintainer:** [@RustyBower](https://github.com/rustybower)
+
+# sopel-stocks
+sopel-stocks is an stock lookup plugin for Sopel
+
+## Installing
+If possible, use `pip` to install this plugin. Below are example commands; you
+might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending
+on your system and environment. Do not use `setup.py install`; Sopel won't be
+able to load the plugin correctly.
+
+#### Published release
+
+ pip install sopel-modules.stocks
+
+#### From source
+
+ # Clone the repo, then run this in /path/to/sopel-stocks
+ pip install .
+
+## Configuring
+You can automatically configure this plugin using the `sopel configure --plugins` command.
+
+However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg`
+
+ [stocks]
+ api_key = API_KEY
+ provider = alphavantage (or iexcloud)
+
+## Requirements
+#### API Key (from 1 of the following providers)
+
+ https://www.alphavantage.co/support/#api-key
+ https://iexcloud.io/console/tokens
+
+#### Python Requirements
+
+ requests
+ sopel
+
+## Usage
+
+ .stock msft
+ <sopel> MSFT $123.37 1.6 (1.31%)⬆
+
+ .stock aapl amzn goog
+ <sopel> AAPL $150.83 -2.51 (-1.64%)⬇
+ <sopel> AMZN $97.06 -5.38 (-5.25%)⬇
+ <sopel> GOOG $90.445 -4.215 (-4.45%)⬇
+
+
+
+
+%package help
+Summary: Development documents and examples for sopel-modules.stocks
+Provides: python3-sopel-modules.stocks-doc
+%description help
+[![Python Tests](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml/badge.svg?branch=master)](https://github.com/sopel-irc/sopel-stocks/actions/workflows/python-tests.yml)
+[![PyPI version](https://badge.fury.io/py/sopel-modules.stocks.svg)](https://badge.fury.io/py/sopel-modules.stocks)
+[![Total alerts](https://img.shields.io/lgtm/alerts/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/alerts/)
+[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/sopel-irc/sopel-stocks.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/sopel-irc/sopel-stocks/context:python)
+
+**Maintainer:** [@RustyBower](https://github.com/rustybower)
+
+# sopel-stocks
+sopel-stocks is an stock lookup plugin for Sopel
+
+## Installing
+If possible, use `pip` to install this plugin. Below are example commands; you
+might need to add `sudo` and/or call a different `pip` (e.g. `pip3`) depending
+on your system and environment. Do not use `setup.py install`; Sopel won't be
+able to load the plugin correctly.
+
+#### Published release
+
+ pip install sopel-modules.stocks
+
+#### From source
+
+ # Clone the repo, then run this in /path/to/sopel-stocks
+ pip install .
+
+## Configuring
+You can automatically configure this plugin using the `sopel configure --plugins` command.
+
+However, if you want or need to configure this plugin manually, you will need to define the following in `~/.sopel/default.cfg`
+
+ [stocks]
+ api_key = API_KEY
+ provider = alphavantage (or iexcloud)
+
+## Requirements
+#### API Key (from 1 of the following providers)
+
+ https://www.alphavantage.co/support/#api-key
+ https://iexcloud.io/console/tokens
+
+#### Python Requirements
+
+ requests
+ sopel
+
+## Usage
+
+ .stock msft
+ <sopel> MSFT $123.37 1.6 (1.31%)⬆
+
+ .stock aapl amzn goog
+ <sopel> AAPL $150.83 -2.51 (-1.64%)⬇
+ <sopel> AMZN $97.06 -5.38 (-5.25%)⬇
+ <sopel> GOOG $90.445 -4.215 (-4.45%)⬇
+
+
+
+
+%prep
+%autosetup -n sopel_modules.stocks-1.2.1
+
+%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-sopel-modules.stocks -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1
+- Package Spec generated