-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathledgerhelpers.spec
69 lines (44 loc) · 1.6 KB
/
ledgerhelpers.spec
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
64
65
66
67
68
69
# See https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_spec_file
%define debug_package %{nil}
%define _name ledgerhelpers
%define mybuildnumber %{?build_number}%{?!build_number:1}
Name: python-%{_name}
Version: 0.3.10
Release: %{mybuildnumber}%{?dist}
Summary: A collection of helper programs and a helper library for Ledger (ledger-cli)
License: GPLv2+
URL: https://github.com/Rudd-O/%{_name}
Source: %{url}/archive/v%{version}/%{_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
This is a collection of small single-purpose programs to aid your accounting
with [Ledger](https://github.com/ledger/ledger) (ledger-cli). Think of it
as the batteries that were never included with Ledger.}
%description %_description
%package -n %{_name}
Summary: %{summary}
%description -n %{_name} %_description
%prep
%autosetup -p1 -n %{_name}-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{_name}
%check
%tox
# Note that there is no %%files section for
# the unversioned python module, python-pello.
# For python3-pello, %%{pyproject_files} handles code files and %%license,
# but executables and documentation must be listed in the spec file:
%files -n %{_name} -f %{pyproject_files}
%attr(0755, -, -) %{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/*
%doc README.md doc/*
%changelog
* Thu Jun 16 2022 Manuel Amador <[email protected]> 0.1.0-1
- First RPM packaging release