%global _empty_manifest_terminate_build 0 Name: python-pyramid_assetviews Version: 1.0a3 Release: 1 Summary: pyramid_assetviews License: UNKNOWN URL: https://github.com/nek4life/pyramid_assetviews Source0: https://mirrors.aliyun.com/pypi/web/packages/0a/c0/01e782e6af9e8ea01fe5ab37a6098a87056478bdb51d5acb8316eafa74a7/pyramid_assetviews-1.0a3.tar.gz BuildArch: noarch %description - Included the sphinx documentation as part of the distribution package. - Cleaned up the MANIFEST.in so there are no more warnings when installing the package. %package -n python3-pyramid_assetviews Summary: pyramid_assetviews Provides: python-pyramid_assetviews BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pyramid_assetviews - Included the sphinx documentation as part of the distribution package. - Cleaned up the MANIFEST.in so there are no more warnings when installing the package. %package help Summary: Development documents and examples for pyramid_assetviews Provides: python3-pyramid_assetviews-doc %description help - Included the sphinx documentation as part of the distribution package. - Cleaned up the MANIFEST.in so there are no more warnings when installing the package. %prep %autosetup -n pyramid_assetviews-1.0a3 %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-pyramid_assetviews -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Jun 20 2023 Python_Bot - 1.0a3-1 - Package Spec generated