blob: 8a63294b88f94a26d9abfdb0ab3f8038d20992fb (
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
|
%global modname assignment-list
Name: python3-%{modname}
Version: 0.0.1
Release: 1%{?dist}
Summary: Assignment List PyQt5
License: Unlicense
#URL:
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python36-devel
BuildRequires: python3-setuptools
BuildRequires: python36-rpm-macros
BuildRequires: python3-qt5-devel
%?python_enable_dependency_generator
%description
Assignment List PyQt5
%prep
%autosetup -n %{modname}-%{version}
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}%{_datadir}/pixmaps
install data/%{modname}.svg %{buildroot}%{_datadir}/pixmaps/%{modname}.svg
mkdir -p %{buildroot}%{_datadir}/applications
install data/%{modname}.desktop %{buildroot}%{_datadir}/applications/%{modname}.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{modname}.desktop
%check
%{__python3} setup.py test
%files -n python3-%{modname}
%{_bindir}/assignment-list
%{python3_sitelib}/src/
%{python3_sitelib}/assignment_list-%{version}*
%{_datadir}/applications/%{modname}.desktop
%{_datadir}/pixmaps/%{modname}.svg
%changelog
* Thu Sep 21 2023 Louie S <louie@example.com>
-
|