diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:31:12 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 09:31:12 +0000 |
| commit | cc19682ae74ab5a331a3c5ec10e91bc5a84401bb (patch) | |
| tree | 13c7a50676381870998a0e6f867c48140cfb6c70 /python-nevow.spec | |
| parent | d5f089fc26b75878d7637c06028d3f839935cec2 (diff) | |
automatic import of python-nevow
Diffstat (limited to 'python-nevow.spec')
| -rw-r--r-- | python-nevow.spec | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/python-nevow.spec b/python-nevow.spec new file mode 100644 index 0000000..5b33778 --- /dev/null +++ b/python-nevow.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Nevow +Version: 0.14.5 +Release: 1 +Summary: Web Application Construction Kit +License: MIT +URL: https://github.com/twisted/nevow +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e6/c0/59718b8eae15586e9af4bb367243a143822704714ea995c0a130886d10f4/Nevow-0.14.5.tar.gz +BuildArch: noarch + +Requires: python3-twisted +Requires: python3-Sphinx + +%description + + +%package -n python3-Nevow +Summary: Web Application Construction Kit +Provides: python-Nevow +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Nevow + + +%package help +Summary: Development documents and examples for Nevow +Provides: python3-Nevow-doc +%description help + + +%prep +%autosetup -n Nevow-0.14.5 + +%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-Nevow -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.14.5-1 +- Package Spec generated |
