diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a7621d3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +Copyright © 2013 Florent Xicluna + +Licensed under the terms of the Expat License + +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-pep8-naming.spec b/python-pep8-naming.spec index c89341b..fedce74 100644 --- a/python-pep8-naming.spec +++ b/python-pep8-naming.spec @@ -8,17 +8,18 @@ This module provides a plugin for flake8, the Python code checker. \ Name: python-%{srcname} Version: 0.4.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Check PEP-8 naming conventions, a plugin for flake8 License: MIT URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/PyCQA/pep8-naming/master/LICENSE BuildArch: noarch BuildRequires: python2-devel -BuildRequires: python-flake8 +BuildRequires: python2-flake8 BuildRequires: python3-devel BuildRequires: python3-flake8 @@ -30,7 +31,7 @@ BuildRequires: python3-flake8 %package -n python2-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python2-%{srcname}} -Requires: python-flake8 +Requires: python2-flake8 %description -n python2-%{srcname} %{_description} @@ -47,6 +48,7 @@ Requires: python3-flake8 %prep %autosetup -n %{srcname}-%{version} +cp -p %SOURCE1 . %build @@ -66,17 +68,23 @@ Requires: python3-flake8 %files -n python2-%{srcname} %doc README.rst +%license LICENSE %{python2_sitelib}/pep8ext_naming.py* %{python2_sitelib}/%{srcname_}-%{version}-py?.?.egg-info %files -n python3-%{srcname} %doc README.rst +%license LICENSE %{python3_sitelib}/pep8ext_naming.py %{python3_sitelib}/__pycache__/pep8ext_naming.*.py* %{python3_sitelib}/%{srcname_}-%{version}-py?.?.egg-info %changelog +* Fri Oct 27 2017 Elliott Sales de Andrade 0.4.1-4 +- Use python2- BuildRequires/Requires. +- Add license file to package. + * Wed Oct 25 2017 Elliott Sales de Andrade 0.4.1-3 - Enable tests during build. - Simplify spec for Fedora.