summaryrefslogtreecommitdiff
path: root/filesorter.spec
blob: c3b3d45b92e65c6f0fcfe3dad6483d2daaa89874 (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
Name:           python-filesorter
Version:        0.0.1
Release:        1%{?dist}
Summary:        Example Python library

License:        MIT
URL:            https://example.com/%{Name}
Source:         filesorter.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

# Build dependencies needed to be specified manually
BuildRequires:  python3-setuptools

# Test dependencies needed to be specified manually
# Also runtime dependencies need to be BuildRequired manually to run tests during build
BuildRequires:  python3-pytest >= 3


%global _description %{expand:
filesorter is an example package with an executable that sort your files on the command line.}

%description %_description

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

%description -n python3-filesorter %_description


%prep
%autosetup -p1 -n filesorter


%build
# Simple Python pkg no need to py3_build


%install
# Simple Python pkg, copy the script
mkdir -p %{buildroot}%{python3_sitelib}/filesorter/
cp %{SOURCE0} %{buildroot}%{python3_sitelib}/filesorter/filesorter.py

%check
%{pytest}


# Note that there is no %%files section for the unversioned python module
%files -n python3-filesorter
%doc README.md
%license LICENSE.txt
%{_bindir}/filesorter
# The library files needed to be listed manually
%{python3_sitelib}/filesorter/
# The metadata files needed to be listed manually
%{python3_sitelib}/filesorter-*.egg-info/


%changelog
* Sat Jan 18 2025 Super User
- Youser