tito/tito.spec

62 lines
1.7 KiB
RPMSpec
Raw Normal View History

%define pkgname tito
Name: tito
Version: 0.6.26
Release: 1mamba
Summary: A tool for managing rpm based git projects
Group: Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/rpm-software-management/tito
Source: https://github.com/rpm-software-management/tito.git/tito-%{version}-1/tito-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython311-devel
BuildRequires: perl-devel
BuildRequires: python3.11dist(blessed)
## AUTOBUILDREQ-END
%description
A tool for managing rpm based git projects.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
#%if "%{?with_pyver}" != "3"
## Rename any conflicting file outside of python site packages tree
#for f in %{_bindir}/pdm; do
# mv %{buildroot}${f}{,-%{?pyappend}}
#done
#%endif
%files
%defattr(-,root,root)
%{_bindir}/generate-patches.pl
%{_bindir}/tito
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
%dir %{python_sitelib}/%{pkgname}
%{python_sitelib}/%{pkgname}/*
%doc AUTHORS COPYING LICENSE
%changelog
* Thu Mar 07 2024 Automatic Build System <autodist@openmamba.org> 0.6.26-1mamba
- automatic version update by autodist
* Thu Feb 01 2024 Automatic Build System <autodist@openmamba.org> 0.6.25-1mamba
- automatic version update by autodist
* Fri Dec 29 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.24-1mamba
- package created using the webbuild interface