summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 17:28:11 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 17:28:11 +0000
commit8247fa9cb8da5a4f9f45c5c3f5d4a75f5e0cdf56 (patch)
tree6fc3b059c076079e5af285740b08284706b1877b
parentf20edd58a2c9e72f5633849be6e0066655b6f6be (diff)
automatic import of python-tango-photos
-rw-r--r--.gitignore1
-rw-r--r--python-tango-photos.spec96
-rw-r--r--sources1
3 files changed, 98 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b1d487a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tango-photos-0.5.1.tar.gz
diff --git a/python-tango-photos.spec b/python-tango-photos.spec
new file mode 100644
index 0000000..b5924a2
--- /dev/null
+++ b/python-tango-photos.spec
@@ -0,0 +1,96 @@
+%global _empty_manifest_terminate_build 0
+Name: python-tango-photos
+Version: 0.5.1
+Release: 1
+Summary: Reusable Django photo galleries app. Can be used with or without Tango.
+License: LICENSE.txt
+URL: http://github.com/tBaxter/tango-photos
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/59/5c/7cdf1b38234a50c065fc1a4ff0a5f298cfbf8dbb1a7c996213547d44051a/tango-photos-0.5.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-django
+Requires: python3-tango-shared-core
+Requires: python3-tango-articles
+
+%description
+Tango-Photos is a reusable app for photo galleries in Django. While it forms a key component of Tango, it can also be dropped into an existing non-Tango project.
+##Installation:
+ pip install tango-photos
+or
+ pip install git+https://github.com/tBaxter/tango-photos.git
+tango_shared is a dependency. It will be installed.
+## Usage:
+Add 'photos' and 'tango_shared' to your installed apps, then run syncdb or migrate.
+
+%package -n python3-tango-photos
+Summary: Reusable Django photo galleries app. Can be used with or without Tango.
+Provides: python-tango-photos
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-tango-photos
+Tango-Photos is a reusable app for photo galleries in Django. While it forms a key component of Tango, it can also be dropped into an existing non-Tango project.
+##Installation:
+ pip install tango-photos
+or
+ pip install git+https://github.com/tBaxter/tango-photos.git
+tango_shared is a dependency. It will be installed.
+## Usage:
+Add 'photos' and 'tango_shared' to your installed apps, then run syncdb or migrate.
+
+%package help
+Summary: Development documents and examples for tango-photos
+Provides: python3-tango-photos-doc
+%description help
+Tango-Photos is a reusable app for photo galleries in Django. While it forms a key component of Tango, it can also be dropped into an existing non-Tango project.
+##Installation:
+ pip install tango-photos
+or
+ pip install git+https://github.com/tBaxter/tango-photos.git
+tango_shared is a dependency. It will be installed.
+## Usage:
+Add 'photos' and 'tango_shared' to your installed apps, then run syncdb or migrate.
+
+%prep
+%autosetup -n tango-photos-0.5.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-tango-photos -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..ef74783
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+d4e9edbf440cbe91440eabc539d44630 tango-photos-0.5.1.tar.gz