diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:04:58 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 12:04:58 +0000 |
| commit | ed12c5db644cdd77407fabc609f70522ff98cff5 (patch) | |
| tree | d6e7ac3443c210f5373165dd82cb997cdd0b42fc /python-wagtail-draftail-plugins.spec | |
| parent | 67d4689497146c788e23815ee825d0378d770911 (diff) | |
automatic import of python-wagtail-draftail-plugins
Diffstat (limited to 'python-wagtail-draftail-plugins.spec')
| -rw-r--r-- | python-wagtail-draftail-plugins.spec | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/python-wagtail-draftail-plugins.spec b/python-wagtail-draftail-plugins.spec new file mode 100644 index 0000000..a76cdc6 --- /dev/null +++ b/python-wagtail-draftail-plugins.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: python-wagtail-draftail-plugins +Version: 0.2.2 +Release: 1 +Summary: Commonly used extensions to Wagtail's Draftail editor. +License: ISC +URL: https://gitlab.com/thelabnyc/wagtail-draftail-plugins +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ac/51/ed561dfa9ec5c958a64bddcfe7386d53075318991a41b7bb3e7f7dc6204b/wagtail-draftail-plugins-0.2.2.tar.gz +BuildArch: noarch + +Requires: python3-wagtail +Requires: python3-flake8 +Requires: python3-tox +Requires: python3-versiontag + +%description + + +%package -n python3-wagtail-draftail-plugins +Summary: Commonly used extensions to Wagtail's Draftail editor. +Provides: python-wagtail-draftail-plugins +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-wagtail-draftail-plugins + + +%package help +Summary: Development documents and examples for wagtail-draftail-plugins +Provides: python3-wagtail-draftail-plugins-doc +%description help + + +%prep +%autosetup -n wagtail-draftail-plugins-0.2.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-wagtail-draftail-plugins -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.2-1 +- Package Spec generated |
