summaryrefslogtreecommitdiff
path: root/spec/assignment-list.spec
blob: 4fa733698a4c97ad04838ce99029aace9cd717bf (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
%global modname assignment-list

Name:           python3-%{modname}
Version:        0.0.1
Release:        1%{?dist}
Summary:        Assignment List PyQt5

License:        Unlicense
URL:            https://github.com/lshprung/assignment-list-pyqt
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}/assignment_list_pyqt
%{python3_sitelib}/assignment_list-%{version}*
%{_datadir}/applications/%{modname}.desktop
%{_datadir}/pixmaps/%{modname}.svg


%changelog
* Wed Jan 03 2024 Louie S <lshprung@tutanota.com> - 0.0.1
- Update src directory name to assignment_list_pyqt
* Thu Sep 21 2023 Louie S <louie@example.com>
- Initial spec version