blob: 86a71608c8f89a64e3eac0c1d412201cd420c94f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
|