From 3752c3d36c39cf5e98ac3bfb07f2d96d1e6c9690 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Aug 13 2019 08:01:15 +0000 Subject: Revert "Orphaned for 6+ weeks" This reverts commit 06d54657827ac643cb60653fed3a702d9c121cd2. References: https://pagure.io/releng/issue/8617 Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..838120f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_* +/*.src.rpm + +/pylev-1.3.0.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a049da3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2012, Daniel Lindsley +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the pylev nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL pylev BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..d9f6e95 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# python-pylev + +The python-pylev package \ No newline at end of file diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/python-pylev.spec b/python-pylev.spec new file mode 100644 index 0000000..60a08d2 --- /dev/null +++ b/python-pylev.spec @@ -0,0 +1,70 @@ +%global pypi_name pylev + +%{?python_enable_dependency_generator} + +%global common_description %{expand: +A pure Python Levenshtein implementation that’s not freaking GPL’d. + +Based off the Wikipedia code samples at +https://en.wikipedia.org/wiki/Levenshtein_distance.} + +Name: python-%{pypi_name} +Summary: Liberally licensed, pure Python Levenshtein implementation +Version: 1.3.0 +Release: 2%{?dist} +License: BSD + +URL: http://github.com/toastdriven/pylev +Source0: %{pypi_source} + +# Include LICENSE file from upstream repository +Source1: https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) + +%description %{common_description} + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} %{common_description} + + +%prep +%autosetup -n %{pypi_name}-%{version} + +# Remove bundled egg-info +rm -rf %{pypi_name}.egg-info + +cp %{SOURCE1} . + + +%build +%py3_build + + +%install +%py3_install + + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE + +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + + +%changelog +* Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Dec 19 2018 Fabio Valentini - 1.3.0-1 +- Initial package. + diff --git a/sources b/sources new file mode 100644 index 0000000..dd9836c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pylev-1.3.0.tar.gz) = 096831d55dda5606544bce03c18542b0331c38feb538dd37c67cc2e9b2111d381632669ee2dcd3d7dc9a87d284892371ded1c322d0edc61f529152c282556f4c