summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-flask-fontawesome.spec208
-rw-r--r--sources1
3 files changed, 210 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..194709d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Flask-FontAwesome-0.1.5.tar.gz
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
+[![PyPI Version](https://badge.fury.io/py/Flask-FontAwesome.svg)](https://pypi.python.org/pypi/Flask-FontAwesome) [![CI](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop)](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [![Documentation Status](https://readthedocs.org/projects/flask-fontawesome/badge/?version=latest)](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
+[![PyPI Version](https://badge.fury.io/py/Flask-FontAwesome.svg)](https://pypi.python.org/pypi/Flask-FontAwesome) [![CI](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop)](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [![Documentation Status](https://readthedocs.org/projects/flask-fontawesome/badge/?version=latest)](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
+[![PyPI Version](https://badge.fury.io/py/Flask-FontAwesome.svg)](https://pypi.python.org/pypi/Flask-FontAwesome) [![CI](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop)](https://api.travis-ci.org/heartsucker/flask-fontawesome.svg?branch=develop) [![Documentation Status](https://readthedocs.org/projects/flask-fontawesome/badge/?version=latest)](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
diff --git a/sources b/sources
new file mode 100644
index 0000000..ceaaf0b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+75cee6ec39c15ad514f0f0651e17254c Flask-FontAwesome-0.1.5.tar.gz