From 214f2768723e99d663763482f4a793ef03211e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Sun, 9 Jul 2017 10:31:26 +0200 Subject: [PATCH] Initial import (#1465954) --- .gitignore | 1 + python-pathspec.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 75 insertions(+) create mode 100644 python-pathspec.spec diff --git a/.gitignore b/.gitignore index e69de29..aa2435b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pathspec-0.5.3.tar.gz diff --git a/python-pathspec.spec b/python-pathspec.spec new file mode 100644 index 0000000..28109a5 --- /dev/null +++ b/python-pathspec.spec @@ -0,0 +1,73 @@ +Name: python-pathspec +Version: 0.5.3 +Release: 1%{?dist} +Summary: Utility library for gitignore style pattern matching of file paths + +License: MPL 2.0 +URL: https://github.com/cpburnz/python-path-specification +Source0: https://files.pythonhosted.org/packages/source/p/pathspec/pathspec-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel python-setuptools python3-devel python3-setuptools + +%description +Path Specification (pathspec) is a utility library for pattern matching of file +paths. So far this only includes Git's wildmatch pattern matching which itself +is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. + +%package -n python2-pathspec +Summary: %{summary} +%{?python_provide:%python_provide python2-pathspec} + +%description -n python2-pathspec +Path Specification (pathspec) is a utility library for pattern matching of file +paths. So far this only includes Git's wildmatch pattern matching which itself +is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. + +%package -n python3-pathspec +Summary: %{summary} +%{?python_provide:%python_provide python3-pathspec} + +%description -n python3-pathspec +Path Specification (pathspec) is a utility library for pattern matching of file +paths. So far this only includes Git's wildmatch pattern matching which itself +is derived from Rsync's wildmatch. Git uses wildmatch for its gitignore files. + + +%prep +%autosetup -n pathspec-%{version} +# Remove bundled egg-info +rm -rf pathspec.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-pathspec +%doc README.rst +%license LICENSE +%{python2_sitelib}/pathspec +%{python2_sitelib}/pathspec-%{version}-py?.?.egg-info + +%files -n python3-pathspec +%doc README.rst +%license LICENSE +%{python3_sitelib}/pathspec +%{python3_sitelib}/pathspec-%{version}-py?.?.egg-info + +%changelog +* Fri Jul 7 2017 Adrien Vergé - 0.5.3-1 +- Update to latest upstream version +- Include LICENSE file now that upstream packages it + +* Wed Jun 28 2017 Adrien Vergé - 0.5.2-1 +- Initial package. diff --git a/sources b/sources index e69de29..6743c0a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (pathspec-0.5.3.tar.gz) = 3d1476790bd41928a64b11cb0a2983d655714f37b2bd9f13f2dbbcaa32fe2aeb72644036191bc770f9f6da4c68d80b190291bd814c80182a9171620ccfc109a1