python-ino/python-ino.spec

79 lines
2.5 KiB
RPMSpec

Name: python-ino
Version: 0.3.6
Release: 3mamba
Summary: A command line toolkit for working with Arduino hardware
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://inotool.org/
Source: https://pypi.debian.net/ino/ino-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: python3.11dist(argparse)
BuildRequires: python3.11dist(configobj)
BuildRequires: python3.11dist(jinja2)
BuildRequires: python3.11dist(ordereddict)
BuildRequires: python3.11dist(pyserial)
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
BuildArch: noarch
%description
Ino is a command line toolkit for working with Arduino hardware.
%if "%{?with_pyver}"
%pyver_package
%endif
%prep
%setup -q -n ino-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-O1 --skip-build \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--single-version-externally-managed \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
sed -i "\,__pycache__/,d" %{name}.filelist
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/ino/__pycache__
%{python_sitearch}/ino/__pycache__/*
%dir %{python_sitearch}/ino/commands/__pycache__
%{python_sitearch}/ino/commands/__pycache__/*
%dir %{python_sitearch}/ino-%{version}-py*.egg-info
%{python_sitearch}/ino-%{version}-py*.egg-info/*
%changelog
* Fri Sep 29 2023 Automatic Build System <autodist@mambasoft.it> 0.3.6-3mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sat Apr 03 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.6-2mamba
- rebuilt with distdeps
* Thu Sep 26 2013 Automatic Build System <autodist@mambasoft.it> 0.3.6-1mamba
- automatic update by autodist
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.5-2mamba
- python 2.7 mass rebuild
* Wed Feb 20 2013 Automatic Build System <autodist@mambasoft.it> 0.3.5-1mamba
- automatic version update by autodist
* Mon Oct 08 2012 Automatic Build System <autodist@mambasoft.it> 0.3.4-1mamba
- automatic version update by autodist
* Mon Mar 26 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.3-1mamba
- package created by autospec