%global _empty_manifest_terminate_build 0 %global pypi_name frontmatter Name: python-%{pypi_name} Version: 1.1.0 Release: 1 Summary: Parse and manage posts with YAML (or other) frontmatter License: MIT URL: https://github.com/eyeseast/python-frontmatter Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-wheel BuildRequires: python3-setuptools BuildRequires: python3-sphinx %description Jekyll-style YAML front matter offers a useful way to add arbitrary, structured metadata to text documents, regardless of type. This is a small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter. %package -n python3-%{pypi_name} Summary: %{summary} Requires: python3-pyyaml %description -n python3-%{pypi_name} Jekyll-style YAML front matter offers a useful way to add arbitrary, structured metadata to text documents, regardless of type. This is a small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter. %package help Summary: Documentation for %{name} Provides: python3-%{pypi_name}-doc = %{version}-%{release} %description help Documentation for %{name}. This package provides documentation for parsing and managing posts with YAML (or other) frontmatter. %prep %autosetup -n %{name}-%{version} %build %py3_build # Build documentation mkdir docs/_build sphinx-build -b man docs docs/_build/man %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/python_%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %files help %doc docs/_build/man/*.1 %changelog * Sat Sep 14 2024 binshuo - 1.1.0-1 - Initial package