9a05375
%global pypi_name littleutils
9a05375
9a05375
%global _description %{expand:
9a05375
Small collection of Python utilities.}
9a05375
9a05375
Name:           python-%{pypi_name}
9a05375
Version:        0.2.2
69154f9
Release:        12%{?dist}
9a05375
Summary:        Small collection of Python utilities
9a05375
9a05375
License:        MIT
9a05375
URL:            https://pypi.org/pypi/%{pypi_name}
9a05375
Source0:        %pypi_source
9a05375
Source1:        https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE
9a05375
9a05375
BuildArch:      noarch
9a05375
9a05375
%{?python_enable_dependency_generator}
9a05375
9a05375
%description %_description
9a05375
9a05375
%package -n python3-%{pypi_name}
9a05375
Summary:        %{summary}
9a05375
BuildRequires:  python3-devel
9a05375
BuildRequires:  %{py3_dist setuptools}
9a05375
%{?python_provide:%python_provide python3-%{pypi_name}}
9a05375
9a05375
%description -n python3-%{pypi_name} %_description
9a05375
9a05375
%prep
9a05375
%autosetup -n %{pypi_name}-%{version}
9a05375
rm -rf %{pypi_name}.egg-info
9a05375
cp %{SOURCE1} . -vp
9a05375
9a05375
# Comment out to remove /usr/bin/env shebangs
9a05375
# Can use something similar to correct/remove /usr/bin/python shebangs also
9a05375
# find . -type f -name "*.py" -exec sed -i '/^#![  ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
9a05375
9a05375
%build
9a05375
%py3_build
9a05375
9a05375
%install
9a05375
%py3_install
9a05375
9a05375
%check
9a05375
# no tests
9a05375
9a05375
%files -n python3-%{pypi_name}
9a05375
%license LICENSE
9a05375
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
9a05375
%{python3_sitelib}/%{pypi_name}
9a05375
9a05375
%changelog
69154f9
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-12
69154f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
69154f9
e7d31d7
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.2.2-11
e7d31d7
- Rebuilt for Python 3.12
e7d31d7
50ab986
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-10
50ab986
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
50ab986
8023693
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-9
8023693
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
8023693
6690eea
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.2.2-8
6690eea
- Rebuilt for Python 3.11
6690eea
1981576
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-7
1981576
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1981576
8d290a7
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-6
8d290a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
8d290a7
f3a3148
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.2.2-5
f3a3148
- Rebuilt for Python 3.10
f3a3148
740ade5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-4
740ade5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
740ade5
4154419
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-3
4154419
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
4154419
7513da4
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.2.2-2
7513da4
- Rebuilt for Python 3.9
7513da4
9a05375
* Thu Feb 06 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-1
9a05375
- Initial build
9a05375
- use -p in the cp command