summaryrefslogtreecommitdiff
path: root/python-tomcli.spec
blob: 43f04deb0207dabd6c44d1a34918f74315aa2f75 (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
%global _empty_manifest_terminate_build 0
%global pypi_name tomcli

Name:           python-%{pypi_name}
Version:        0.9.0
Release:        1
Summary:        CLI for working with TOML files. Pronounced "tom clee."
License:        MIT
URL:            https://git.sr.ht/~gotmax23/tomcli
Source0:        %{url}/refs/download/v%{version}/tomcli-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	python3-hatchling

%global _description %{expand:
CLI for working with TOML files. Pronounced "tom clee."}

%description %_description


%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

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

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_build

%install
%pyproject_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/tomcli
%{_bindir}/tomcli-formatters
%{_bindir}/tomcli-get
%{_bindir}/tomcli-set
%{python3_sitelib}/tomcli
%{python3_sitelib}/tomcli-*.dist-info/

%changelog
* Fri May 16 2025 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 0.9.0-1
- Init package