Name: python-atom Version: 0.12.1 Release: %autorelease Summary: Memory efficient Python objects License: BSD-3-Clause URL: https://github.com/nucleic/atom Source: %{pypi_source atom} BuildRequires: python3-devel BuildRequires: gcc-c++ # Test requirements BuildRequires: python3dist(pytest) BuildRequires: python3dist(psutils) # Documentation requirements BuildRequires: texinfo BuildRequires: python3dist(docutils) BuildRequires: python3dist(sphinx) BuildRequires: python3-sphinx_rtd_theme %global _description %{expand: Atom is a framework for creating memory efficient Python objects with enhanced features such as dynamic initialization, validation, and change notification for object attributes. It provides the default model binding behavior for the Enaml UI framework.} %description %_description %package -n python3-atom Summary: %{summary} %description -n python3-atom %_description %prep %autosetup -p1 -n atom-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel # Need to bootstrap #pushd docs #pushd source #sphinx-build -b texinfo . texinfo #pushd texinfo #makeinfo --docbook atom.texi #popd #popd #popd %install %pyproject_install %pyproject_save_files -l atom #mkdir -p %{buildroot}%{_datadir}/help/en/atom #install -m644 docs/source/build/texinfo/atom.xml %{buildroot}%{_datadir}/help/en/atom #cp -p -r docs/source/build/texinfo/atom-figures %{buildroot}%{_datadir}/help/en/atom/ %check %pyproject_check_import %pytest %files -n python3-atom -f %{pyproject_files} #dir %%{_datadir}/help/en #lang(en) %%{_datadir}/help/en/atom %changelog %autochangelog