]>
Commit | Line | Data |
---|---|---|
467bb0b7 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
467bb0b7 JB |
4 | |
5 | Summary: parse() - the opposite of format() | |
6 | Summary(pl.UTF-8): parse() - odwrotność format() | |
88a5914f JB |
7 | Name: python3-parse |
8 | Version: 1.19.0 | |
0152023f | 9 | Release: 3 |
467bb0b7 JB |
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 | |
88a5914f | 14 | # Source0-md5: 15e1e590c964254ac5fbea308a6ec6d4 |
467bb0b7 | 15 | URL: https://pypi.org/project/parse/ |
467bb0b7 JB |
16 | BuildRequires: python3-modules >= 1:3.4 |
17 | BuildRequires: python3-setuptools | |
467bb0b7 JB |
18 | BuildRequires: rpm-pythonprov |
19 | BuildRequires: rpmbuild(macros) >= 1.714 | |
88a5914f | 20 | Requires: python3-modules >= 1:3.4 |
467bb0b7 JB |
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 | ||
467bb0b7 JB |
32 | %prep |
33 | %setup -q -n parse-%{version} | |
34 | ||
35 | %build | |
467bb0b7 JB |
36 | %py3_build |
37 | ||
38 | %if %{with tests} | |
39 | %{__python3} test_parse.py | |
40 | %endif | |
467bb0b7 JB |
41 | |
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
467bb0b7 | 45 | %py3_install |
467bb0b7 JB |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
467bb0b7 JB |
50 | %files |
51 | %defattr(644,root,root,755) | |
88a5914f | 52 | %doc LICENSE README.rst |
467bb0b7 JB |
53 | %{py3_sitescriptdir}/parse.py |
54 | %{py3_sitescriptdir}/__pycache__/parse.cpython-*.py[co] | |
55 | %{py3_sitescriptdir}/parse-%{version}-py*.egg-info |