diff --git a/6.2.0.tar.gz b/6.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..de98cd6c36ad86298aed32bfe64c160c7695f5d1 Binary files /dev/null and b/6.2.0.tar.gz differ diff --git a/python-whitenoise.spec b/python-whitenoise.spec index bbdcb2292e1a1f16e9b9dac0eb34a298c40ebf00..e50a5aeb502fbc84d9175d4f09a5228d87c359b1 100644 --- a/python-whitenoise.spec +++ b/python-whitenoise.spec @@ -1,20 +1,18 @@ +%global _empty_manifest_terminate_build 0 %global with_docs 1 %global with_check 1 - %global srcname whitenoise -%global owner evansd - -Name: python-%{srcname} -Version: 5.2.0 -Release: 1 -Summary: Static file serving for Python web apps -License: MIT -URL: http://whitenoise.evans.io/ -# pypi source does not contain tests -Source0: https://github.com/%{owner}/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Name: python-whitenoise +Version: 6.2.0 +Release: 1 +Summary: Static file serving for Python web apps +License: MIT +URL: https://github.com/evansd/whitenoise +Source0: https://github.com/evansd/whitenoise/archive/refs/tags/6.2.0.tar.gz +BuildArch: noarch -BuildArch: noarch +Requires: python3-django %description Radically simplified static file serving for python web apps. with a couple of @@ -23,32 +21,23 @@ making it a self-contained unit that can be deployed anywhere without relying on nginx, amazon s3 or any other external service. (Especially useful on Heroku, OpenShift and other PaaS providers.) - -%package -n python3-%{srcname} -Summary: Static file serving for Python web apps -License: MIT - -# python3-brotli is missing in RHEL at the moment -# See: https://bugzilla.redhat.com/show_bug.cgi?id=1845954 -%if ! 0%{?el8} -BuildRequires: python3-brotli -%endif -BuildRequires: python3-devel -BuildRequires: python3-django -BuildRequires: python3-pytest -BuildRequires: python3-requests -BuildRequires: python3-setuptools -Requires: python3-django -%{?python_provide:%python_provide python3-%{srcname}} - - -%description -n python3-%{srcname} +%package -n python3-whitenoise +Summary: Static file serving for Python web apps +Provides: python-whitenoise = %{version}-%{release} +BuildRequires: python3-brotli +BuildRequires: python3-devel +BuildRequires: python3-django +BuildRequires: python3-pytest +BuildRequires: python3-requests +BuildRequires: python3-setuptools +BuildRequires: python-furo + +%description -n python3-whitenoise Radically simplified static file serving for python web apps. with a couple of lines of config whitenoise allows your web app to serve its own static files, making it a self-contained unit that can be deployed anywhere without relying -on nginx, amazon s3 or any other external service. (especially useful on -heroku, openshift and other paas providers.) - +on nginx, amazon s3 or any other external service. (Especially useful on +Heroku, OpenShift and other PaaS providers.) %if 0%{?with_docs} %package -n python3-%{srcname}-doc @@ -60,19 +49,22 @@ BuildRequires: python3-sphinx_rtd_theme Documentation for the Python Whitenoise module %endif +%package help +Summary: Development documents and examples for whitenoise +Provides: python3-whitenoise-doc -%prep -%autosetup -n %{srcname}-%{version} -# remove dangling doc symlink -rm docs/changelog.rst -# copy common doc files to top dir -cp -pr docs/ README.rst LICENSE ../ +%description help +Radically simplified static file serving for python web apps. with a couple of +lines of config whitenoise allows your web app to serve its own static files, +making it a self-contained unit that can be deployed anywhere without relying +on nginx, amazon s3 or any other external service. (Especially useful on +Heroku, OpenShift and other PaaS providers.) +%prep +%autosetup -n whitenoise-%{version} %build %py3_build - -# Build documentation %if 0%{?with_docs} pushd docs sphinx-build-3 -b html -d build/doctrees . html @@ -81,10 +73,33 @@ rm -f html/.buildinfo popd %endif - %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 . %if %{?with_check} %check @@ -92,21 +107,21 @@ export DJANGO_SETTINGS_MODULE=tests.django_settings python3 -m unittest discover %endif - %files -n python3-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info - %if 0%{?with_docs} %files -n python3-%{srcname}-doc %doc docs/html %license LICENSE %endif - %changelog +* Wed Nov 02 2022 wangjunqi - 6.2.0-1 +- Update package to version 6.2.0 + * Fri Jun 25 2021 anyunhao - 5.2.0-1 - package init diff --git a/whitenoise-5.2.0.tar.gz b/whitenoise-5.2.0.tar.gz deleted file mode 100644 index ebf6388eb00af099dccc2eba0f0e753bece2e01b..0000000000000000000000000000000000000000 Binary files a/whitenoise-5.2.0.tar.gz and /dev/null differ