]> git.pld-linux.org Git - packages/python3-serpent.git/commitdiff
- python-serpent.spec updated to 1.30.2 (for python 3.5+) as python3-serpent.spec auto/th/python3-serpent-1.30.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 8 Feb 2021 05:36:41 +0000 (06:36 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Mon, 8 Feb 2021 05:36:41 +0000 (06:36 +0100)
python3-serpent.spec [moved from python-serpent.spec with 50% similarity]

similarity index 50%
rename from python-serpent.spec
rename to python3-serpent.spec
index d32b145e52a4c8b270482c47dee87dbc807633f9..f8e1feab9361bfe8f482c6bbb0ed1efea1f5dcc3 100644 (file)
@@ -6,36 +6,24 @@
 
 Summary:       Serialization based on ast.literal_eval
 Summary(pl.UTF-8):     Serializacja oparta na ast.literal_eval
-Name:          python-serpent
-# keep 1.2x here for python2 support
-Version:       1.28
+Name:          python3-serpent
+Version:       1.30.2
 Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/serpent/
 Source0:       https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz
-# Source0-md5: 15ef8b67c76a6d19bac9c16731a1e62a
+# Source0-md5: cbef4f9c88f88c38195d11a0363a095f
 URL:           https://pypi.org/project/serpent/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-attrs
-BuildRequires: python-enum34
-BuildRequires: python-pytz
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.5
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-attrs
 BuildRequires: python3-pytz
 %endif
-%endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-Requires:      python-modules >= 1:2.7
+Requires:      python3-modules >= 1:3.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -53,75 +41,27 @@ Ponieważ serializuje tylko ciągi znaków i tworzy obiekty przy użyciu
 ast.literal_eval(), zserializowane dane są bezpieczne do przesyłania
 na inne maszyny (np. po sieci) i deserializacji na nich.
 
-%package -n python3-serpent
-Summary:       Serialization based on ast.literal_eval
-Summary(pl.UTF-8):     Serializacja oparta na ast.literal_eval
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.4
-
-%description -n python3-serpent
-Serpent is a simple serialization library based on ast.literal_eval.
-
-Because it only serializes literals and recreates the objects using
-ast.literal_eval(), the serialized data is safe to transport to other
-machines (over the network for instance) and de-serialize it there.
-
-%description -n python3-serpent -l pl.UTF-8
-Serpent to prosta biblioteka serializacji oparta na ast.literal_eval.
-
-Ponieważ serializuje tylko ciągi znaków i tworzy obiekty przy użyciu
-ast.literal_eval(), zserializowane dane są bezpieczne do przesyłania
-na inne maszyny (np. po sieci) i deserializacji na nich.
-
 %prep
 %setup -q -n serpent-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest discover -s tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
 %{__python3} -m unittest discover -s tests
 %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 LICENSE README.md
-%{py_sitescriptdir}/serpent.py[co]
-%{py_sitescriptdir}/serpent-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-serpent
-%defattr(644,root,root,755)
-%doc LICENSE README.md
 %{py3_sitescriptdir}/serpent.py
 %{py3_sitescriptdir}/__pycache__/serpent.cpython-*.py[co]
 %{py3_sitescriptdir}/serpent-%{version}-py*.egg-info
-%endif
This page took 0.134293 seconds and 4 git commands to generate.