diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:54:45 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 04:54:45 +0000 |
| commit | 201ec9623ed27a90c5b53ad55a296e282e6f3646 (patch) | |
| tree | 7a3ec25edc521c8e027a6c3b22b0f5c522a2c730 /python-edx-toggles.spec | |
| parent | a72280ab6fd4c2a24a9ccd2716972cb5b2683ede (diff) | |
automatic import of python-edx-toggles
Diffstat (limited to 'python-edx-toggles.spec')
| -rw-r--r-- | python-edx-toggles.spec | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/python-edx-toggles.spec b/python-edx-toggles.spec new file mode 100644 index 0000000..6544323 --- /dev/null +++ b/python-edx-toggles.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-edx-toggles +Version: 5.0.0 +Release: 1 +Summary: Library and utilities for feature toggles +License: AGPL 3.0 +URL: https://github.com/edx/edx-toggles +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8c/c9/46753eb0cc1a084f7eb4241f39bacaa29875f1c7cc71e13dbd0c9319ca0a/edx-toggles-5.0.0.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-code-annotations +Requires: python3-django-crum +Requires: python3-django-waffle +Requires: python3-edx-django-utils + +%description +|pypi-badge| |ci-badge| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Library and utilities for implementing and reporting on feature toggles. +Documentation is on `Read the Docs`_. Code repository is on `GitHub`_. +See the `scripts README`_ for more information on the scripts for reporting on the status of +feature toggles. + +%package -n python3-edx-toggles +Summary: Library and utilities for feature toggles +Provides: python-edx-toggles +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-edx-toggles +|pypi-badge| |ci-badge| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Library and utilities for implementing and reporting on feature toggles. +Documentation is on `Read the Docs`_. Code repository is on `GitHub`_. +See the `scripts README`_ for more information on the scripts for reporting on the status of +feature toggles. + +%package help +Summary: Development documents and examples for edx-toggles +Provides: python3-edx-toggles-doc +%description help +|pypi-badge| |ci-badge| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Library and utilities for implementing and reporting on feature toggles. +Documentation is on `Read the Docs`_. Code repository is on `GitHub`_. +See the `scripts README`_ for more information on the scripts for reporting on the status of +feature toggles. + +%prep +%autosetup -n edx-toggles-5.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-toggles -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 5.0.0-1 +- Package Spec generated |
