diff --git a/README.md b/README.md new file mode 100644 index 0000000..7433ca8 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# python-ZODB + +The ZODB package provides a set of tools for using the +[Zope Object Database (ZODB)](https://www.zodb.org/). diff --git a/python-ZODB.rpmlintrc b/python-ZODB.rpmlintrc deleted file mode 100644 index 40ab497..0000000 --- a/python-ZODB.rpmlintrc +++ /dev/null @@ -1,8 +0,0 @@ -# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON -# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors - -# The dictionary lacks some technical words -addFilter(r'W: spelling-error .* Zope') - -# There are no man pages, and help2man won't work either -addFilter(r'W: no-manual-page-for-binary') diff --git a/python-ZODB.spec b/python-ZODB.spec index 0d6e119..a3b930a 100644 --- a/python-ZODB.spec +++ b/python-ZODB.spec @@ -6,7 +6,7 @@ Release: 5%{?dist} Summary: Zope Object Database and persistence License: ZPLv2.1 -URL: http://www.zodb.org/ +URL: https://www.zodb.org/ Source0: %pypi_source BuildArch: noarch @@ -19,6 +19,7 @@ BuildRequires: python3-persistent-doc BuildRequires: %{py3_dist btrees} BuildRequires: %{py3_dist j1m.sphinxautozconfig} BuildRequires: %{py3_dist manuel} +BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist six} @@ -26,6 +27,7 @@ BuildRequires: %{py3_dist sphinx-rtd-theme} BuildRequires: %{py3_dist sphinxcontrib-zopeext} BuildRequires: %{py3_dist sphinx} BuildRequires: %{py3_dist transaction} +BuildRequires: %{py3_dist wheel} BuildRequires: %{py3_dist zc.lockfile} BuildRequires: %{py3_dist zconfig} BuildRequires: %{py3_dist zodbpickle} @@ -60,8 +62,11 @@ sed -e "s|\('https://docs\.python\.org/3/', \)None|\1'%{_docdir}/python3-docs/ht -e "s|\(\"https://btrees\.readthedocs\.io/en/latest/\", \)None|\1'%{_docdir}/python-BTrees-doc/objects.inv'|" \ -i doc/conf.py +# Fix shebangs +%py3_shebang_fix src/ZODB/scripts + %build -%py3_build +%pyproject_wheel # Build the documentation cp -p doc/.static/zodb.ico doc @@ -70,17 +75,7 @@ rm doc/build/html/.buildinfo rst2html --no-datestamp CHANGES.rst CHANGES.html %install -%py3_install - -# Fix scripts -for script in \ - $(grep -l '^#!' %{buildroot}%{python3_sitelib}/%{srcname}/scripts/*.py); do - sed 's,%{_bindir}/python,&3,;s,%{_bindir}/env python.*,%{_bindir}/python3,' \ - $script > $script.new - touch -r $script $script.new - mv -f $script.new $script - chmod 0755 $script -done +%pyproject_install %check %pytest