diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:40:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:40:12 +0000 |
| commit | a36c110d242b48e0b22855dac6e81bb796cb236a (patch) | |
| tree | ae5d753748ea272c0172d83d2f1f4a37e96ceeb3 /python-flask-fontawesome.spec | |
| parent | 553ee837e7d7836fa93e6c7233c61e2390c41014 (diff) | |
automatic import of python-flask-fontawesome
Diffstat (limited to 'python-flask-fontawesome.spec')
| -rw-r--r-- | python-flask-fontawesome.spec | 208 |
1 files changed, 208 insertions, 0 deletions
diff --git a/python-flask-fontawesome.spec b/python-flask-fontawesome.spec new file mode 100644 index 0000000..0d185ce --- /dev/null +++ b/python-flask-fontawesome.spec @@ -0,0 +1,208 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-FontAwesome +Version: 0.1.5 +Release: 1 +Summary: FontAwesome for Flask +License: Apache Software License +URL: https://github.com/heartsucker/flask-fontawesome +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/87/40/d5780675fa8bec026a26cafcb4e9f31eec60d878896dee42ee7cda8f35cd/Flask-FontAwesome-0.1.5.tar.gz +BuildArch: noarch + +Requires: python3-Flask + +%description +# Flask-FontAwesome +[](https://pypi.python.org/pypi/Flask-FontAwesome) [](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [](https://flask-fontawesome.readthedocs.io/en/latest/?badge=latest) + +Flask extension for [FontAwesome](https://fontawesome.com/). + +## Example + +```python +from flask import Flask, render_template +from flask_fontawesome import FontAwesome + +app = Flask(__name__) +fa = FontAwesome(app) + +@app.route('/') +def index(): + return render_template('index.html') + +app.run(host='127.0.0.1', port=8080) +``` + +```html +<!DOCTYPE html> +<html> + <head> + {{ fontawesome_html() }} + <title>FontAwesome Example</title> + </head> + <body> + <h1>FontAwesome Example</h1> + <p>This is an example of a <span class="fas fa-link"></span> link.</p> + </body> +</html> +``` + +## License + +This work is dual licensed under the MIT and Apache-2.0 licenses. See [LICENSE-MIT](./LICENSE-MIT) +and [LICENSE-APACHE](./LICENSE-APACHE) for details. + +### Attribution + +The resources contained under [`flask_fontawesome/static`](./flask_fontawesome/static) are licensed to FontAwesome. + + + + +%package -n python3-Flask-FontAwesome +Summary: FontAwesome for Flask +Provides: python-Flask-FontAwesome +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-FontAwesome +# Flask-FontAwesome +[](https://pypi.python.org/pypi/Flask-FontAwesome) [](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [](https://flask-fontawesome.readthedocs.io/en/latest/?badge=latest) + +Flask extension for [FontAwesome](https://fontawesome.com/). + +## Example + +```python +from flask import Flask, render_template +from flask_fontawesome import FontAwesome + +app = Flask(__name__) +fa = FontAwesome(app) + +@app.route('/') +def index(): + return render_template('index.html') + +app.run(host='127.0.0.1', port=8080) +``` + +```html +<!DOCTYPE html> +<html> + <head> + {{ fontawesome_html() }} + <title>FontAwesome Example</title> + </head> + <body> + <h1>FontAwesome Example</h1> + <p>This is an example of a <span class="fas fa-link"></span> link.</p> + </body> +</html> +``` + +## License + +This work is dual licensed under the MIT and Apache-2.0 licenses. See [LICENSE-MIT](./LICENSE-MIT) +and [LICENSE-APACHE](./LICENSE-APACHE) for details. + +### Attribution + +The resources contained under [`flask_fontawesome/static`](./flask_fontawesome/static) are licensed to FontAwesome. + + + + +%package help +Summary: Development documents and examples for Flask-FontAwesome +Provides: python3-Flask-FontAwesome-doc +%description help +# Flask-FontAwesome +[](https://pypi.python.org/pypi/Flask-FontAwesome) [](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [](https://flask-fontawesome.readthedocs.io/en/latest/?badge=latest) + +Flask extension for [FontAwesome](https://fontawesome.com/). + +## Example + +```python +from flask import Flask, render_template +from flask_fontawesome import FontAwesome + +app = Flask(__name__) +fa = FontAwesome(app) + +@app.route('/') +def index(): + return render_template('index.html') + +app.run(host='127.0.0.1', port=8080) +``` + +```html +<!DOCTYPE html> +<html> + <head> + {{ fontawesome_html() }} + <title>FontAwesome Example</title> + </head> + <body> + <h1>FontAwesome Example</h1> + <p>This is an example of a <span class="fas fa-link"></span> link.</p> + </body> +</html> +``` + +## License + +This work is dual licensed under the MIT and Apache-2.0 licenses. See [LICENSE-MIT](./LICENSE-MIT) +and [LICENSE-APACHE](./LICENSE-APACHE) for details. + +### Attribution + +The resources contained under [`flask_fontawesome/static`](./flask_fontawesome/static) are licensed to FontAwesome. + + + + +%prep +%autosetup -n Flask-FontAwesome-0.1.5 + +%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-Flask-FontAwesome -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1 +- Package Spec generated |
