diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:26:30 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:26:30 +0000 |
| commit | 987345cd53c9025c4e674dffbf2ac4feceba3c69 (patch) | |
| tree | 542b25557912549201428254a787b6e4e783e226 /python-edx-django-sites-extensions.spec | |
| parent | 9964c278168d33c50a80ebd2999153a3e5867339 (diff) | |
automatic import of python-edx-django-sites-extensions
Diffstat (limited to 'python-edx-django-sites-extensions.spec')
| -rw-r--r-- | python-edx-django-sites-extensions.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-edx-django-sites-extensions.spec b/python-edx-django-sites-extensions.spec new file mode 100644 index 0000000..cc2ea90 --- /dev/null +++ b/python-edx-django-sites-extensions.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-edx-django-sites-extensions +Version: 4.0.0 +Release: 1 +Summary: Custom extensions for the Django sites framework +License: AGPL +URL: https://github.com/edx/edx-django-sites-extensions +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/7f/34/e162b6b2c8b6eaa6eb29406e345ebd7ca1496eae9b1105ebc9bb2a7e1e43/edx-django-sites-extensions-4.0.0.tar.gz +BuildArch: noarch + +Requires: python3-Django + +%description +This package includes extensions to the Django "sites" framework +used by Open edX Django IDAs (independently deployable applications). + +%package -n python3-edx-django-sites-extensions +Summary: Custom extensions for the Django sites framework +Provides: python-edx-django-sites-extensions +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-edx-django-sites-extensions +This package includes extensions to the Django "sites" framework +used by Open edX Django IDAs (independently deployable applications). + +%package help +Summary: Development documents and examples for edx-django-sites-extensions +Provides: python3-edx-django-sites-extensions-doc +%description help +This package includes extensions to the Django "sites" framework +used by Open edX Django IDAs (independently deployable applications). + +%prep +%autosetup -n edx-django-sites-extensions-4.0.0 + +%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-edx-django-sites-extensions -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.0-1 +- Package Spec generated |
