From 5924a5258be70caaa578aab85f13d23a945db6ab Mon Sep 17 00:00:00 2001 From: Louie S Date: Thu, 21 Sep 2023 16:14:05 -0400 Subject: Created spec file for building rpms --- spec/assignment-list.spec | 54 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 spec/assignment-list.spec (limited to 'spec') 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 +- -- cgit