]> git.pld-linux.org Git - packages/python-hgtools.git/blame - python-hgtools.spec
rebuild with python 3.10
[packages/python-hgtools.git] / python-hgtools.spec
CommitLineData
6f9d402e
JB
1#
2# Conditional build:
46eb8e8d 3%bcond_with tests # test target [pytest-runner doesn't support build-base]
6f9d402e
JB
4%bcond_without python2 # CPython 2.x module
5%bcond_without python3 # CPython 3.x module
6
7Summary: Python 2 classes and setuptools plugin for Mercurial and Git repositories
8Summary(pl.UTF-8): Klasy Pythona 2 oraz wtyczka setuptools do repozytoriów Mercurial oraz Git
6f9d402e 9Name: python-hgtools
46eb8e8d 10Version: 6.5.1
53d72010 11Release: 7
6f9d402e
JB
12License: MIT
13Group: Libraries/Python
46eb8e8d
JB
14#Source0Download: https://pypi.python.org/simple/hgtools/
15Source0: https://pypi.python.org/packages/source/h/hgtools/hgtools-%{version}.tar.gz
16# Source0-md5: ce8413687e43d5626cdcfee5024a9bc0
6f9d402e 17URL: https://bitbucket.org/jaraco/hgtools/
6f9d402e 18BuildRequires: rpm-pythonprov
46eb8e8d 19BuildRequires: rpmbuild(macros) >= 1.714
6f9d402e 20%if %{with python2}
46eb8e8d
JB
21%{?with_tests:BuildRequires: python-backports.unittest_mock}
22%{?with_tests:BuildRequires: python-pytest >= 2.8}
23%{?with_tests:BuildRequires: python-pytest-runner}
6f9d402e
JB
24BuildRequires: python-modules >= 1:2.6
25BuildRequires: python-setuptools
46eb8e8d 26BuildRequires: python-setuptools_scm >= 1.9
6f9d402e
JB
27%endif
28%if %{with python3}
46eb8e8d
JB
29%{?with_tests:BuildRequires: python3-backports.unittest_mock}
30%{?with_tests:BuildRequires: python3-pytest >= 2.8}
31%{?with_tests:BuildRequires: python3-pytest-runner}
6f9d402e 32BuildRequires: python3-setuptools
46eb8e8d 33BuildRequires: python3-setuptools_scm >= 1.9
6f9d402e
JB
34BuildRequires: python3-modules >= 1:3.2
35%endif
36Requires: python-modules >= 1:2.6
37BuildArch: noarch
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41hgtools builds on the setuptools_hg plugin for setuptools. hgtools
42provides classes for inspecting and working with repositories in the
43Mercurial and Git version control systems (VCS).
44
45%description -l pl.UTF-8
46hgtools dobudowuje wtyczkę setuptools_hg dla setuptools. Zapewnia
47klasy do przeglądania orazy pracy z repozytoriami systemów kontroli
48wersji (VCS) Mercurial oraz Git.
49
50%package -n python3-hgtools
51Summary: Python 3 classes and setuptools plugin for Mercurial and Git repositories
52Summary(pl.UTF-8): Klasy Pythona 3 oraz wtyczka setuptools do repozytoriów Mercurial oraz Git
53Group: Libraries/Python
46eb8e8d 54Requires: python3-modules >= 1:3.2
6f9d402e
JB
55
56%description -n python3-hgtools
57hgtools builds on the setuptools_hg plugin for setuptools. hgtools
58provides classes for inspecting and working with repositories in the
59Mercurial and Git version control systems (VCS).
60
61%description -n python3-hgtools -l pl.UTF-8
62hgtools dobudowuje wtyczkę setuptools_hg dla setuptools. Zapewnia
63klasy do przeglądania orazy pracy z repozytoriami systemów kontroli
64wersji (VCS) Mercurial oraz Git.
65
66%prep
67%setup -q -n hgtools-%{version}
68
69%build
70%if %{with python2}
46eb8e8d 71%py_build %{?with_tests:test}
6f9d402e
JB
72%endif
73
74%if %{with python3}
46eb8e8d 75%py3_build %{?with_tests:test}
6f9d402e
JB
76%endif
77
78%install
79rm -rf $RPM_BUILD_ROOT
80
81%if %{with python2}
b9fda368 82%py_install
6f9d402e
JB
83
84%py_postclean
85%endif
86
87%if %{with python3}
b9fda368 88%py3_install
6f9d402e
JB
89%endif
90
91%clean
92rm -rf $RPM_BUILD_ROOT
93
94%if %{with python2}
95%files
96%defattr(644,root,root,755)
46eb8e8d 97%doc CHANGES.rst LICENSE README.rst
6f9d402e
JB
98%{py_sitescriptdir}/hgtools
99%{py_sitescriptdir}/hgtools-%{version}-py*.egg-info
100%endif
101
102%if %{with python3}
103%files -n python3-hgtools
104%defattr(644,root,root,755)
46eb8e8d 105%doc CHANGES.rst LICENSE README.rst
6f9d402e
JB
106%{py3_sitescriptdir}/hgtools
107%{py3_sitescriptdir}/hgtools-%{version}-py*.egg-info
108%endif
This page took 0.151195 seconds and 4 git commands to generate.