diff options
Diffstat (limited to 'python-frontmatter.spec')
-rw-r--r-- | python-frontmatter.spec | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/python-frontmatter.spec b/python-frontmatter.spec new file mode 100644 index 0000000..86a7160 --- /dev/null +++ b/python-frontmatter.spec @@ -0,0 +1,63 @@ +%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 <binshuo.oerv@isrc.iscas.ac.cn> - 1.1.0-1 +- Initial package |