From 8247fa9cb8da5a4f9f45c5c3f5d4a75f5e0cdf56 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 17:28:11 +0000 Subject: automatic import of python-tango-photos --- python-tango-photos.spec | 96 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 python-tango-photos.spec (limited to 'python-tango-photos.spec') 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 - 0.5.1-1 +- Package Spec generated -- cgit v1.2.3