commit 88a5914fd3ca42612c1336f32ccf0fe002ad8402
Author: Jakub Bogusz <[email protected]>
Date:   Wed Feb 10 20:30:48 2021 +0100

    - python-parse.spec updated to 1.19.0 (for python 3.4+)

 python-parse.spec => python3-parse.spec | 61 +++------------------------------
 1 file changed, 5 insertions(+), 56 deletions(-)
---
diff --git a/python-parse.spec b/python3-parse.spec
similarity index 50%
rename from python-parse.spec
rename to python3-parse.spec
index 0fdc957..18565af 100644
--- a/python-parse.spec
+++ b/python3-parse.spec
@@ -1,32 +1,23 @@
 #
 # Conditional build:
 %bcond_without tests   # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
 
 Summary:       parse() - the opposite of format()
 Summary(pl.UTF-8):     parse() - odwrotność format()
-Name:          python-parse
-# keep 1.12.x here for python2 support
-Version:       1.12.1
+Name:          python3-parse
+Version:       1.19.0
 Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/parse/
 Source0:       
https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz
-# Source0-md5: 8fc634769f1d841f14a52dd731ca447a
+# Source0-md5: 15e1e590c964254ac5fbea308a6ec6d4
 URL:           https://pypi.org/project/parse/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
 BuildRequires: python3-modules >= 1:3.4
 BuildRequires: python3-setuptools
-%endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.4
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -38,69 +29,27 @@ syntax.
 Rozkład łańcuchów znaków przy użyciu specyfikacji opartej na składni
 pythonowej metody format().
 
-%package -n python3-parse
-Summary:       parse() - the opposite of format()
-Summary(pl.UTF-8):     parse() - odwrotność format()
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.4
-
-%description -n python3-parse
-Parse strings using a specification based on the Python format()
-syntax.
-
-%description -n python3-parse -l pl.UTF-8
-Rozkład łańcuchów znaków przy użyciu specyfikacji opartej na składni
-pythonowej metody format().
-
 %prep
 %setup -q -n parse-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} test_parse.py
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 %{__python3} test_parse.py
 %endif
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
 %py3_install
-%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with python2}
 %files
 %defattr(644,root,root,755)
-%doc README.rst
-%{py_sitescriptdir}/parse.py[co]
-%{py_sitescriptdir}/parse-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-parse
-%defattr(644,root,root,755)
-%doc README.rst
+%doc LICENSE README.rst
 %{py3_sitescriptdir}/parse.py
 %{py3_sitescriptdir}/__pycache__/parse.cpython-*.py[co]
 %{py3_sitescriptdir}/parse-%{version}-py*.egg-info
-%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-parse.git/commitdiff/88a5914fd3ca42612c1336f32ccf0fe002ad8402

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to