diff --git a/.gitignore b/.gitignore index 99d1206..29d06bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /slugify-0.0.1.tar.gz /python-slugify-1.2.0.tar.gz /LICENSE.md +/python-slugify-1.2.1.tar.gz diff --git a/python-slugify.spec b/python-slugify.spec index f55ec69..3d5050c 100644 --- a/python-slugify.spec +++ b/python-slugify.spec @@ -1,20 +1,15 @@ %global sum Returns Unicode slugs Name: python-slugify -Version: 1.2.0 -Release: 4%{?dist} +Version: 1.2.1 +Release: 1%{?dist} Summary: %{sum} License: BSD URL: https://github.com/un33k/python-slugify -Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz -# License file from GitHub -# https://raw.githubusercontent.com/un33k/python-slugify/master/LICENSE.md -Source1: LICENSE.md +Source0: https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python2-setuptools %description A Python slugify application that handles Unicode. @@ -24,6 +19,9 @@ Summary: %{sum} %{?python_provide:%python_provide python2-slugify} Requires: python-unidecode +BuildRequires: python2-devel +BuildRequires: python2-setuptools + %description -n python2-slugify A Python slugify application that handles Unicode. @@ -31,6 +29,7 @@ A Python slugify application that handles Unicode. Summary: %{sum} %{?python_provide:%python_provide python3-slugify} Requires: python3-unidecode + BuildRequires: python3-devel BuildRequires: python3-setuptools @@ -38,9 +37,7 @@ BuildRequires: python3-setuptools A Python slugify application that handles Unicode. %prep -%setup -q -n %{name}-%{version} - -cp -p %{SOURCE1} . +%autosetup %build %py2_build @@ -64,20 +61,24 @@ for i in slugify-{3,%{?python3_version}}; do done %files -n python2-slugify -%license LICENSE.md +%license LICENSE %{_bindir}/python2-* %{_bindir}/slugify-2* %{python2_sitelib}/slugify/ %{python2_sitelib}/python_slugify-%{version}-py?.?.egg-info %files -n python3-slugify -%license LICENSE.md +%license LICENSE %{_bindir}/slugify %{_bindir}/slugify-3* %{python3_sitelib}/slugify/ %{python3_sitelib}/python_slugify-%{version}-py?.?.egg-info %changelog +* Fri Jan 27 2017 William Moreno - 1.2.1-1 +- Update to v1.2.1 +- Update source url + * Mon Dec 19 2016 Miro HronĨok - 1.2.0-4 - Rebuild for Python 3.6 diff --git a/slugify-0.0.1-LICENSE.patch b/slugify-0.0.1-LICENSE.patch deleted file mode 100644 index 560a618..0000000 --- a/slugify-0.0.1-LICENSE.patch +++ /dev/null @@ -1,55 +0,0 @@ -Subdirectorios comunes: ../slugify-0.0.1.orig/bin y ./bin -diff -uN ../slugify-0.0.1.orig/LICENSE ./LICENSE ---- ../slugify-0.0.1.orig/LICENSE 1969-12-31 18:00:00.000000000 -0600 -+++ ./LICENSE 2014-10-27 19:52:17.351481721 -0600 -@@ -0,0 +1,20 @@ -+This is free and unencumbered software released into the public domain. -+Anyone is free to copy, modify, publish, use, compile, sell, or -+distribute this software, either in source code form or as a compiled -+binary, for any purpose, commercial or non-commercial, and by any -+means. -+In jurisdictions that recognize copyright laws, the author or authors -+of this software dedicate any and all copyright interest in the -+software to the public domain. We make this dedication for the benefit -+of the public at large and to the detriment of our heirs and -+successors. We intend this dedication to be an overt act of -+relinquishment in perpetuity of all present and future rights to this -+software under copyright law. -+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 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. -+For more information, please refer to -diff -uN ../slugify-0.0.1.orig/slugify-0.0.1-LICENSE.patch ./slugify-0.0.1-LICENSE.patch ---- ../slugify-0.0.1.orig/slugify-0.0.1-LICENSE.patch 1969-12-31 18:00:00.000000000 -0600 -+++ ./slugify-0.0.1-LICENSE.patch 2014-10-28 19:47:14.784928145 -0600 -@@ -0,0 +1,25 @@ -+Subdirectorios comunes: ../slugify-0.0.1.orig/bin y ./bin -+diff -uN ../slugify-0.0.1.orig/LICENSE ./LICENSE -+--- ../slugify-0.0.1.orig/LICENSE 1969-12-31 18:00:00.000000000 -0600 -++++ ./LICENSE 2014-10-27 19:52:17.351481721 -0600 -+@@ -0,0 +1,20 @@ -++This is free and unencumbered software released into the public domain. -++Anyone is free to copy, modify, publish, use, compile, sell, or -++distribute this software, either in source code form or as a compiled -++binary, for any purpose, commercial or non-commercial, and by any -++means. -++In jurisdictions that recognize copyright laws, the author or authors -++of this software dedicate any and all copyright interest in the -++software to the public domain. We make this dedication for the benefit -++of the public at large and to the detriment of our heirs and -++successors. We intend this dedication to be an overt act of -++relinquishment in perpetuity of all present and future rights to this -++software under copyright law. -++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 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. -++For more information, please refer to -Subdirectorios comunes: ../slugify-0.0.1.orig/src y ./src diff --git a/sources b/sources index e1c40d1..324fa5b 100644 --- a/sources +++ b/sources @@ -1,3 +1 @@ -557a7e401ea3c9716d29389c56cf82c5 slugify-0.0.1.tar.gz -cf93234028a5c504834fc03a5bfb25db python-slugify-1.2.0.tar.gz -a13950410fa56c4bfe56cca52fbdc4a2 LICENSE.md +SHA512 (python-slugify-1.2.1.tar.gz) = 433a44d445c071fa569e709ea481f04dc065a1e8b0f4b7ab8af19017812cbe889b185e3622995ff6deed2e1f5e09ed3d052bcd47e519dcdc441ac37a39c726f0