]> git.pld-linux.org Git - packages/python3-parse.git/blob - python3-parse.spec
rebuild with python 3.10
[packages/python3-parse.git] / python3-parse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4
5 Summary:        parse() - the opposite of format()
6 Summary(pl.UTF-8):      parse() - odwrotność format()
7 Name:           python3-parse
8 Version:        1.19.0
9 Release:        3
10 License:        MIT
11 Group:          Libraries/Python
12 #Source0Download: https://pypi.org/simple/parse/
13 Source0:        https://files.pythonhosted.org/packages/source/p/parse/parse-%{version}.tar.gz
14 # Source0-md5:  15e1e590c964254ac5fbea308a6ec6d4
15 URL:            https://pypi.org/project/parse/
16 BuildRequires:  python3-modules >= 1:3.4
17 BuildRequires:  python3-setuptools
18 BuildRequires:  rpm-pythonprov
19 BuildRequires:  rpmbuild(macros) >= 1.714
20 Requires:       python3-modules >= 1:3.4
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Parse strings using a specification based on the Python format()
26 syntax.
27
28 %description -l pl.UTF-8
29 Rozkład łańcuchów znaków przy użyciu specyfikacji opartej na składni
30 pythonowej metody format().
31
32 %prep
33 %setup -q -n parse-%{version}
34
35 %build
36 %py3_build
37
38 %if %{with tests}
39 %{__python3} test_parse.py
40 %endif
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %py3_install
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %doc LICENSE README.rst
53 %{py3_sitescriptdir}/parse.py
54 %{py3_sitescriptdir}/__pycache__/parse.cpython-*.py[co]
55 %{py3_sitescriptdir}/parse-%{version}-py*.egg-info
This page took 0.109813 seconds and 3 git commands to generate.