summaryrefslogtreecommitdiff
path: root/python-libthumbor.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 19:57:03 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 19:57:03 +0000
commite2ded4882400788547068be56776de2260d5011f (patch)
treeaf08152ea116ec752d667ffd6fc8c5f90ddb7be0 /python-libthumbor.spec
parent0909a83d79191fe7524e6aec3b5d7199a59e263b (diff)
automatic import of python-libthumbor
Diffstat (limited to 'python-libthumbor.spec')
-rw-r--r--python-libthumbor.spec193
1 files changed, 193 insertions, 0 deletions
diff --git a/python-libthumbor.spec b/python-libthumbor.spec
new file mode 100644
index 0000000..cd8dc6b
--- /dev/null
+++ b/python-libthumbor.spec
@@ -0,0 +1,193 @@
+%global _empty_manifest_terminate_build 0
+Name: python-libthumbor
+Version: 2.0.2
+Release: 1
+Summary: libthumbor is the python extension to generate thumbor URLs
+License: MIT
+URL: https://pypi.org/project/libthumbor/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b4/0f/7f80779f31c1c10d80facfe8f2161d67fef31c50c78c615ec89f74633759/libthumbor-2.0.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+
+%description
+[![Build Status](https://secure.travis-ci.org/thumbor/libthumbor.png)](http://travis-ci.org/thumbor/libthumbor) [![Coverage Status](https://coveralls.io/repos/github/thumbor/libthumbor/badge.svg?branch=master)](https://coveralls.io/github/thumbor/libthumbor?branch=master)
+
+libthumbor allows easy usage of
+[thumbor](http://github.com/thumbor/thumbor) in Python. Check the docs for django integration.
+
+This version is compliant with the new URL generation schema (thumbor 3.0.0 and up).
+
+## Using it
+
+```python
+from libthumbor import CryptoURL
+
+crypto = CryptoURL(key='my-security-key')
+
+encrypted_url = crypto.generate(
+ width=300,
+ height=200,
+ smart=True,
+ image_url='/path/to/my/image.jpg'
+)
+```
+
+## Docs
+
+Check the wiki for more information on using libthumbor.
+
+## Contributions
+
+### Bernardo Heynemann
+
+* Generic URL encryption
+
+### Rafael Caricio
+
+* Django Generic View and URL
+
+### Fábio Costa
+
+* Django Generic View and URL
+
+
+
+%package -n python3-libthumbor
+Summary: libthumbor is the python extension to generate thumbor URLs
+Provides: python-libthumbor
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-libthumbor
+[![Build Status](https://secure.travis-ci.org/thumbor/libthumbor.png)](http://travis-ci.org/thumbor/libthumbor) [![Coverage Status](https://coveralls.io/repos/github/thumbor/libthumbor/badge.svg?branch=master)](https://coveralls.io/github/thumbor/libthumbor?branch=master)
+
+libthumbor allows easy usage of
+[thumbor](http://github.com/thumbor/thumbor) in Python. Check the docs for django integration.
+
+This version is compliant with the new URL generation schema (thumbor 3.0.0 and up).
+
+## Using it
+
+```python
+from libthumbor import CryptoURL
+
+crypto = CryptoURL(key='my-security-key')
+
+encrypted_url = crypto.generate(
+ width=300,
+ height=200,
+ smart=True,
+ image_url='/path/to/my/image.jpg'
+)
+```
+
+## Docs
+
+Check the wiki for more information on using libthumbor.
+
+## Contributions
+
+### Bernardo Heynemann
+
+* Generic URL encryption
+
+### Rafael Caricio
+
+* Django Generic View and URL
+
+### Fábio Costa
+
+* Django Generic View and URL
+
+
+
+%package help
+Summary: Development documents and examples for libthumbor
+Provides: python3-libthumbor-doc
+%description help
+[![Build Status](https://secure.travis-ci.org/thumbor/libthumbor.png)](http://travis-ci.org/thumbor/libthumbor) [![Coverage Status](https://coveralls.io/repos/github/thumbor/libthumbor/badge.svg?branch=master)](https://coveralls.io/github/thumbor/libthumbor?branch=master)
+
+libthumbor allows easy usage of
+[thumbor](http://github.com/thumbor/thumbor) in Python. Check the docs for django integration.
+
+This version is compliant with the new URL generation schema (thumbor 3.0.0 and up).
+
+## Using it
+
+```python
+from libthumbor import CryptoURL
+
+crypto = CryptoURL(key='my-security-key')
+
+encrypted_url = crypto.generate(
+ width=300,
+ height=200,
+ smart=True,
+ image_url='/path/to/my/image.jpg'
+)
+```
+
+## Docs
+
+Check the wiki for more information on using libthumbor.
+
+## Contributions
+
+### Bernardo Heynemann
+
+* Generic URL encryption
+
+### Rafael Caricio
+
+* Django Generic View and URL
+
+### Fábio Costa
+
+* Django Generic View and URL
+
+
+
+%prep
+%autosetup -n libthumbor-2.0.2
+
+%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-libthumbor -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.2-1
+- Package Spec generated