diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sandman2.spec | 146 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 148 insertions, 0 deletions
@@ -0,0 +1 @@ +/sandman2-1.2.3.tar.gz diff --git a/python-sandman2.spec b/python-sandman2.spec new file mode 100644 index 0000000..9c90034 --- /dev/null +++ b/python-sandman2.spec @@ -0,0 +1,146 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sandman2 +Version: 1.2.3 +Release: 1 +Summary: Automated REST APIs for legacy (existing) databases +License: Apache Software License +URL: http://github.com/jeffknupp/sandman2/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/01/41/2d3cf521788aa53786f6b0746aaa6a2b89d14ed6dd7f79e1f904fd85cdc1/sandman2-1.2.3.tar.gz +BuildArch: noarch + +Requires: python3-Flask +Requires: python3-Flask-SQLAlchemy +Requires: python3-SQLAlchemy +Requires: python3-Flask-Admin +Requires: python3-Flask-HTTPAuth + +%description +|Build Status| |Coverage Status| +`sandman2 documentation <http://sandman2.readthedocs.io/en/latest/>`__ +``sandman2`` automagically generates a RESTful API service from your +existing database, without requiring you to write a line of code. Simply +point ``sandman2`` to your database, add salt for seasoning, and voila!, +a fully RESTful API service with hypermedia support starts running, +ready to accept HTTP requests. +This is a big deal. It means every single database you interact with, +from the SQLite database that houses your web browser’s data up to your +production PostgreSQL server can be endowed with a REST API and accessed +programatically, using any number of HTTP client libraries available in +*every* language. ``sandman2`` *frees your data*. +**For developers:** +Imagine you’re working for AnonymousCorp and need to access Group Y’s +data, which is presented to you through some horrible API or GUI. +Wouldn’t it be nice if you could just interact with that database +through a REST API? +More than that, imagine if you could interact with the database through +a REST API **and no one had to write any code**. Not you. Not Group Y. +No one. That means no boilerplate ORM code, no database connection +logic. Nothing. ``sandman2`` can be run as a command-line tool +(``sandman2ctl``) that just takes your database information as +parameters and connects to it, introspects the schema, generates a +RESTful API, and starts the server. + +%package -n python3-sandman2 +Summary: Automated REST APIs for legacy (existing) databases +Provides: python-sandman2 +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sandman2 +|Build Status| |Coverage Status| +`sandman2 documentation <http://sandman2.readthedocs.io/en/latest/>`__ +``sandman2`` automagically generates a RESTful API service from your +existing database, without requiring you to write a line of code. Simply +point ``sandman2`` to your database, add salt for seasoning, and voila!, +a fully RESTful API service with hypermedia support starts running, +ready to accept HTTP requests. +This is a big deal. It means every single database you interact with, +from the SQLite database that houses your web browser’s data up to your +production PostgreSQL server can be endowed with a REST API and accessed +programatically, using any number of HTTP client libraries available in +*every* language. ``sandman2`` *frees your data*. +**For developers:** +Imagine you’re working for AnonymousCorp and need to access Group Y’s +data, which is presented to you through some horrible API or GUI. +Wouldn’t it be nice if you could just interact with that database +through a REST API? +More than that, imagine if you could interact with the database through +a REST API **and no one had to write any code**. Not you. Not Group Y. +No one. That means no boilerplate ORM code, no database connection +logic. Nothing. ``sandman2`` can be run as a command-line tool +(``sandman2ctl``) that just takes your database information as +parameters and connects to it, introspects the schema, generates a +RESTful API, and starts the server. + +%package help +Summary: Development documents and examples for sandman2 +Provides: python3-sandman2-doc +%description help +|Build Status| |Coverage Status| +`sandman2 documentation <http://sandman2.readthedocs.io/en/latest/>`__ +``sandman2`` automagically generates a RESTful API service from your +existing database, without requiring you to write a line of code. Simply +point ``sandman2`` to your database, add salt for seasoning, and voila!, +a fully RESTful API service with hypermedia support starts running, +ready to accept HTTP requests. +This is a big deal. It means every single database you interact with, +from the SQLite database that houses your web browser’s data up to your +production PostgreSQL server can be endowed with a REST API and accessed +programatically, using any number of HTTP client libraries available in +*every* language. ``sandman2`` *frees your data*. +**For developers:** +Imagine you’re working for AnonymousCorp and need to access Group Y’s +data, which is presented to you through some horrible API or GUI. +Wouldn’t it be nice if you could just interact with that database +through a REST API? +More than that, imagine if you could interact with the database through +a REST API **and no one had to write any code**. Not you. Not Group Y. +No one. That means no boilerplate ORM code, no database connection +logic. Nothing. ``sandman2`` can be run as a command-line tool +(``sandman2ctl``) that just takes your database information as +parameters and connects to it, introspects the schema, generates a +RESTful API, and starts the server. + +%prep +%autosetup -n sandman2-1.2.3 + +%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-sandman2 -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.3-1 +- Package Spec generated @@ -0,0 +1 @@ +eafbca59d03e6af070f1ab1d66386dc3 sandman2-1.2.3.tar.gz |