diff options
author | Louie S <louie@example.com> | 2023-09-21 16:14:05 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2023-09-21 16:14:05 -0400 |
commit | 5924a5258be70caaa578aab85f13d23a945db6ab (patch) | |
tree | 7d95a276faed975af41952da9526dc3fb3535680 /spec | |
parent | f06e96b860bf894c43eb451090a87f9c62aedf6b (diff) |
Created spec file for building rpms
Diffstat (limited to 'spec')
-rw-r--r-- | spec/assignment-list.spec | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/spec/assignment-list.spec b/spec/assignment-list.spec new file mode 100644 index 0000000..8a63294 --- /dev/null +++ b/spec/assignment-list.spec @@ -0,0 +1,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> +- |