summaryrefslogtreecommitdiff
path: root/python-frontmatter.spec
blob: d191947c648540d08fb87d48e482d84953c9320c (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
%global modname frontmatter

Name:           python-%{modname}
Version:        1.1.0
Release:        1%{?dist}
Summary:        A small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter.

License:        MIT
URL:            https://github.com/eyeseast/python-frontmatter
Source0:        %{pypi_source python-frontmatter}

BuildArch:      noarch

BuildRequires:  python3-devel

%global _description %{expand:
This is a small package to load and parse files (or just text) with YAML (or JSON, TOML or other) front matter.}

%description %{_description}

%package -n     python3-%{modname}
Summary:        %{summary}

%description -n python3-%{modname}
%{_description}

%prep
%autosetup -n python-%{modname}-%{version} -p 1

%build
%py3_build

%install
%py3_install

%check

%files -n python3-%{modname}
%license LICENSE
%{python3_sitelib}/python_frontmatter-*.egg-info/
%{python3_sitelib}/%{modname}/*

%changelog
* Tue Wed 07 2024 weilinfox <caiweilin@iscas.ac.cn> - 1.1.0-1
- Upgrade package to version 1.1.0

* Tue Feb 06 2024 weilinfox <caiweilin@iscas.ac.cn> - 1.0.1-1
- Build for openEuler 2309