python-cube-scramble-cli/python-cube-scramble-cli.spec

56 lines
1.6 KiB
RPMSpec

Name: python-cube-scramble-cli
Version: 0.4.3
Release: 2mamba
Summary: Applications/Games
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/seanbreckenridge/cube-scramble-cli
Source: https://github.com/seanbreckenridge/cube-scramble-cli.git/%{version}/cube-scramble-cli-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
BuildRequires: python3.7dist(prompt-toolkit)
BuildRequires: python3.7dist(pytwistyscrambler)
BuildRequires: python3.7dist(setuptools)
BuildRequires: python3.7dist(tabulate)
## AUTOBUILDREQ-END
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n cube-scramble-cli-%{version}
%build
CFLAGS="%{optflags}" %{__python3} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{python3_inc} \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/cube_scramble_cli-%{version}-py*.egg-info
%{python_sitearch}/cube_scramble_cli-%{version}-py*.egg-info/*
%doc LICENSE
%changelog
* Fri Jan 14 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.3-2mamba
- rebuild for python3 and with dist deps
* Fri May 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.3-1mamba
- package created using the webbuild interface