From 8f1c19cf4856bc2b742143bc38e54e1ac11281ff Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:33:53 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.6.24-1mamba;Fri Dec 29 2023] --- README.md | 2 ++ tito.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 tito.spec diff --git a/README.md b/README.md index dbb9c27..9f0fbd7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # tito +A tool for managing rpm based git projects. + diff --git a/tito.spec b/tito.spec new file mode 100644 index 0000000..d286734 --- /dev/null +++ b/tito.spec @@ -0,0 +1,55 @@ +%define pkgname tito +Name: tito +Version: 0.6.24 +Release: 1mamba +Summary: A tool for managing rpm based git projects +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +* Fri Dec 29 2023 Silvan Calarco 0.6.24-1mamba +- package created using the webbuild interface