diff --git python-unipath/python-unipath.spec python-unipath/python-unipath.spec.tmp index 72fdd730f7..97246f61d1 100644 --- python-unipath/python-unipath.spec +++ python-unipath/python-unipath.spec.tmp @@ -5,7 +5,7 @@ Summary: Alternative to Python modules os, os.path and shutil Name: python-unipath Version: 1.0 -Release: 10%{?dist} +Release: 11%{?dist} License: Python Group: Development/Tools URL : http://pypi.python.org/pypi/Unipath/ @@ -17,26 +17,34 @@ BuildRequires: python-setuptools BuildRequires: python3-devel BuildRequires: python3-setuptools %endif -%description -Unipath is a package for doing pathname calculations and filesystem -access in an object-oriented manner, an alternative to functions in -os.path, shutil and glob, and even some functions in os.* It's based -on Jason Orendorff's path.py but does not adhere as strictly to the -underlying functions' syntax, in order to provide more user -convenience and higher-level functionality. For example: - - o p.mkdir() succeeds silently if the directory already exists, and - o p.mkdir(True) creates intermediate directories a la os.makedirs. - o p.rmtree(parents=True) combines shutil.rmtree, os.path.isdir, - os.remove, and os.removedirs, to recursively remove whatever it is - if it exists. - o p.read_file("rb") returns the file's contents in binary mode. - o p.needs_update([other_path1, ...]) returns True if p doesn't exist - or has an older timestamp than any of the others. - o extra convenience functions in the unipath.tools module. dict2dir - creates a directory hierarchy described by a dict. dump_path displays +%global _description\ +Unipath is a package for doing pathname calculations and filesystem\ +access in an object-oriented manner, an alternative to functions in\ +os.path, shutil and glob, and even some functions in os.* It's based\ +on Jason Orendorff's path.py but does not adhere as strictly to the\ +underlying functions' syntax, in order to provide more user\ +convenience and higher-level functionality. For example:\ +\ + o p.mkdir() succeeds silently if the directory already exists, and\ + o p.mkdir(True) creates intermediate directories a la os.makedirs.\ + o p.rmtree(parents=True) combines shutil.rmtree, os.path.isdir,\ + os.remove, and os.removedirs, to recursively remove whatever it is\ + if it exists.\ + o p.read_file("rb") returns the file's contents in binary mode.\ + o p.needs_update([other_path1, ...]) returns True if p doesn't exist\ + or has an older timestamp than any of the others.\ + o extra convenience functions in the unipath.tools module. dict2dir\ + creates a directory hierarchy described by a dict. dump_path displays\ an ASCII tree of a directory hierarchy. +%description %_description + +%package -n python2-unipath +Summary: %summary +%{?python_provide:%python_provide python2-unipath} + +%description -n python2-unipath %_description + %if 0%{?with_python3} %package -n python3-unipath Summary: Alternative to Python modules os, os.path and shutil @@ -86,7 +94,7 @@ pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root %{buildroot} %endif -%files +%files -n python2-unipath %doc BUGS.txt CHANGES PKG-INFO README.html README.rst %{python_sitelib}/unipath/ %{python_sitelib}/%{oname}-%{version}-py*.egg-info @@ -99,6 +107,10 @@ pushd %{py3dir} %endif %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 1.0-11 +- Python 2 binary package renamed to python2-unipath + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild