Notification time stamped 2022-09-01 02:17:04 UTC
From 9a05375cd6e89debc71e2d90a320441a741919b1 Mon Sep 17 00:00:00 2001 From: Ankur Sinha (Ankur Sinha Gmail) sanjay.ankur@gmail.com Date: Feb 07 2020 15:31:43 +0000 Subject: Initial import
---
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e5c6aab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/littleutils-0.2.2.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0d4d9dc --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 Alex Hall + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-littleutils.spec b/python-littleutils.spec new file mode 100644 index 0000000..7c3e0c7 --- /dev/null +++ b/python-littleutils.spec @@ -0,0 +1,56 @@ +%global pypi_name littleutils + +%global _description %{expand: +Small collection of Python utilities.} + +Name: python-%{pypi_name} +Version: 0.2.2 +Release: 1%{?dist} +Summary: Small collection of Python utilities + +License: MIT +URL: https://pypi.org/pypi/%%7Bpypi_name%7D +Source0: %pypi_source +Source1: https://raw.githubusercontent.com/alexmojaki/littleutils/master/LICENSE + +BuildArch: noarch + +%{?python_enable_dependency_generator} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info +cp %{SOURCE1} . -vp + +# Comment out to remove /usr/bin/env shebangs +# Can use something similar to correct/remove /usr/bin/python shebangs also +# find . -type f -name "*.py" -exec sed -i '/^#![ ]*/usr/bin/env.*$/ d' {} 2>/dev/null ';' + +%build +%py3_build + +%install +%py3_install + +%check +# no tests + +%files -n python3-%{pypi_name} +%license LICENSE +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/%{pypi_name} + +%changelog +* Thu Feb 06 2020 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.2.2-1 +- Initial build +- use -p in the cp command diff --git a/sources b/sources new file mode 100644 index 0000000..b5aa33b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (littleutils-0.2.2.tar.gz) = ce0b3af4ef5db634ce0dbb916deb767260f66418abbdca2b289386ecd4c2e44602cb95d568c70588ef9a40e3d700f33cbc5bcdbf859f5030795f79f11871a6ff
https://src.fedoraproject.org/rpms/python-littleutils/c/9a05375cd6e89debc71e...
scm-commits@lists.fedoraproject.org