3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Utility library for gitignore style pattern matching of file paths
8 Summary(pl.UTF-8): Biblioteka narzędzioawa do dopasowywania wzorców ścieżek plików w stylu gitignore
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pathspec/
15 Source0: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz
16 # Source0-md5: fbd6575abb2be29927aebb2f38110bb6
17 URL: https://pypi.org/project/pathspec/
19 BuildRequires: python-modules >= 1:2.7
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.5
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.7
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 pathspec is a utility library for pattern matching of file paths. So
34 far this only includes Git's wildmatch pattern matching which itself
35 is derived from Rsync's wildmatch. Git uses wildmatch for its
38 %description -l pl.UTF-8
39 pathspec to biblioteka narzędziowa do dopasowywania wzorców ścieżek
40 plików. Obecnie obejmuje to tylko algorytm dopasowywania wildmatch
41 Gita, wywodzący się z wildmatch programu Rsync. Git wykorzystuje
42 wildmatch na potrzeby plików gitignore.
44 %package -n python3-pathspec
45 Summary: Utility library for gitignore style pattern matching of file paths
46 Summary(pl.UTF-8): Biblioteka narzędzioawa do dopasowywania wzorców ścieżek plików w stylu gitignore
47 Group: Libraries/Python
48 Requires: python3-modules >= 1:3.5
50 %description -n python3-pathspec
51 pathspec is a utility library for pattern matching of file paths. So
52 far this only includes Git's wildmatch pattern matching which itself
53 is derived from Rsync's wildmatch. Git uses wildmatch for its
56 %description -n python3-pathspec -l pl.UTF-8
57 pathspec to biblioteka narzędziowa do dopasowywania wzorców ścieżek
58 plików. Obecnie obejmuje to tylko algorytm dopasowywania wildmatch
59 Gita, wywodzący się z wildmatch programu Rsync. Git wykorzystuje
60 wildmatch na potrzeby plików gitignore.
63 %setup -q -n pathspec-%{version}
70 %{__python} -m unittest discover -s pathspec/tests
78 %{__python3} -m unittest discover -s pathspec/tests
83 rm -rf $RPM_BUILD_ROOT
88 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/pathspec/tests
95 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/pathspec/tests
99 rm -rf $RPM_BUILD_ROOT
103 %defattr(644,root,root,755)
104 %doc CHANGES.rst README.rst
105 %{py_sitescriptdir}/pathspec
106 %{py_sitescriptdir}/pathspec-%{version}-py*.egg-info
110 %files -n python3-pathspec
111 %defattr(644,root,root,755)
112 %doc CHANGES.rst README.rst
113 %{py3_sitescriptdir}/pathspec
114 %{py3_sitescriptdir}/pathspec-%{version}-py*.egg-info