Blame python-littleutils.spec

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
740ade5
Release:        4%{?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
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