]> git.pld-linux.org Git - packages/python-parse_type.git/commitdiff
- new auto/th/python-parse_type-0.5.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 10 Feb 2021 20:49:38 +0000 (21:49 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 10 Feb 2021 20:49:38 +0000 (21:49 +0100)
python-parse_type.spec [new file with mode: 0644]

diff --git a/python-parse_type.spec b/python-parse_type.spec
new file mode 100644 (file)
index 0000000..0679300
--- /dev/null
@@ -0,0 +1,117 @@
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary:       Simplify building parse types based on the parse module
+Summary(pl.UTF-8):     Uproszczenie tworzenia typów do analizy w oparciu o moduł parse
+Name:          python-parse_type
+Version:       0.5.2
+Release:       1
+License:       BSD
+Group:         Libraries/Python
+#Source0Download: https://pypi.org/simple/parse-type/
+Source0:       https://files.pythonhosted.org/packages/source/p/parse-type/parse_type-%{version}.tar.gz
+# Source0-md5: b954062f14ab723a91fe1e2be15e859d
+URL:           https://pypi.org/project/parse-type/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-enum34
+BuildRequires: python-parse >= 1.8.4
+BuildRequires: python-pytest >= 3.2
+BuildRequires: python-six >= 1.11
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-2to3 >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-parse >= 1.8.4
+BuildRequires: python3-pytest >= 3.2
+BuildRequires: python3-six >= 1.11
+%if "%{py3_ver}" < "3.4"
+BuildRequires: python3-enum34
+%endif
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires:      python-modules >= 1:2.7
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+parse_type extends the parse module (opposite of "string.format()").
+
+%description -l pl.UTF-8
+parse_type rozszerza moduł parse (odwrotność "string.format()").
+
+%package -n python3-parse_type
+Summary:       Simplify building parse types based on the parse module
+Summary(pl.UTF-8):     Uproszczenie tworzenia typów do analizy w oparciu o moduł parse
+Group:         Libraries/Python
+Requires:      python3-modules >= 1:3.2
+
+%description -n python3-parse_type
+parse_type rozszerza moduł parse (odwrotność "string.format()").
+
+%description -n python3-parse_type -l pl.UTF-8
+parse_type rozszerza moduł parse (odwrotność "string.format()").
+
+%prep
+%setup -q -n parse_type-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python} -m pytest tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest 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 CHANGES.txt LICENSE README.rst
+%{py_sitescriptdir}/parse_type
+%{py_sitescriptdir}/parse_type-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-parse_type
+%defattr(644,root,root,755)
+%doc CHANGES.txt LICENSE README.rst
+%{py3_sitescriptdir}/parse_type
+%{py3_sitescriptdir}/parse_type-%{version}-py*.egg-info
+%endif
This page took 0.084787 seconds and 4 git commands to generate.