From bd7474c91fe0ddebec16ddfff421a07584de9ca21537d41ce070eb9be6f5abd1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 25 Apr 2017 20:18:46 +0000 Subject: [PATCH 1/3] Accepting request 491075 from home:TheBlackCat:branches:devel:languages:python Update to version 3.1.1 OBS-URL: https://build.opensuse.org/request/show/491075 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gflags?expand=0&rev=14 --- python-gflags-2.0.tar.gz | 3 --- python-gflags-3.1.1.tar.gz | 3 +++ python-python-gflags.changes | 47 ++++++++++++++++++++++++++++++++++++ python-python-gflags.spec | 44 ++++++++++++++++++--------------- 4 files changed, 75 insertions(+), 22 deletions(-) delete mode 100644 python-gflags-2.0.tar.gz create mode 100644 python-gflags-3.1.1.tar.gz diff --git a/python-gflags-2.0.tar.gz b/python-gflags-2.0.tar.gz deleted file mode 100644 index 8159b23..0000000 --- a/python-gflags-2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0dff6360423f3ec08cbe3bfaf37b339461a54a21d13be0dd5d9c9999ce531078 -size 65094 diff --git a/python-gflags-3.1.1.tar.gz b/python-gflags-3.1.1.tar.gz new file mode 100644 index 0000000..ceca79a --- /dev/null +++ b/python-gflags-3.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaff6449ca74320c709052e4664a52337832b2338f4a4267088564f3e98f6c63 +size 52633 diff --git a/python-python-gflags.changes b/python-python-gflags.changes index f905bec..87abac7 100644 --- a/python-python-gflags.changes +++ b/python-python-gflags.changes @@ -1,3 +1,50 @@ +------------------------------------------------------------------- +Tue Apr 25 20:13:24 UTC 2017 - toddrme2178@gmail.com + +- Update to version 3.1.1 + * Added PEP8 style method/function aliases. +- Update to version 3.1.0 + * Python3 compatibility + * Removed UnrecognizedFlag exception. + * Replaced flags.DuplicateFlag with flags.DuplicateFlagError. + * Moved the validators.Error class to exceptions.ValidationError. + * Renamed IllegalFlagValue to IllegalFlagValueError. + * Removed MutualExclusionValidator class, in favor of flags.MarkFlagsAsMutualExclusive. + * Removed FlagValues.AddValidator method. + * Removed _helpers.GetMainModule. + * Use xml.dom.minidom to create XML strings, instead of manual crafting. + * Declared PEP8-style names. + * Added examples. +- Update to version 3.0.7 + * Removed the unused method ShortestUniquePrefixes. + * Removed _GetCallingModule function alias. +- Update to version 3.0.6 + * Declared pypi package classifiers. + * Added support for CLIF flag processing (not included in python-gflags repo + yet). +- Update to version 3.0.5 + * Added a warning when FLAGS.SetDefault is used after flags were parsed. + * Added new function: MarkFlagsAsRequired. +- Update to version 3.0.4 + * One more fix for setup.py - this time about third_party package. +- Update to version 3.0.3 + * Fixed setup.py. + * --noflag if argument is given is no longer allowed. + * Python3 compatibility: removed need for cgi import. + * Disallowed unparsed flag usage after FLAGS.Reset() +- Update to version 3.0.2 + * Fix MANIFEST.in to include all relevant files. +- Update to version 3.0.1 + * Some changes for python3 compatibility. + * Automatically generate ordering operations for Flag. + * Add optional comma compatibility to whitespace-separated list flags. + * A lot of potentially backwards incompatible changes since 2.0. + * This version is NOT recommended to use in production. Some of the files and + documentation has been lost during export; this will be fixed in next + versions. +- Fix source URL +- Implement single-spec version + ------------------------------------------------------------------- Thu Feb 13 16:03:54 UTC 2014 - rschweikert@suse.com diff --git a/python-python-gflags.spec b/python-python-gflags.spec index 545c01b..8e985e1 100644 --- a/python-python-gflags.spec +++ b/python-python-gflags.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-gflags # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,27 +16,26 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-gflags -Version: 2.0 +Version: 3.1.1 Release: 0 Url: http://code.google.com/p/python-gflags Summary: Google Commandline Flags Module License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz +Source: http://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} Provides: python-gflags = %{version} -# Change to < after 1.6 release -Obsoletes: python-gflags <= %{version} -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} > 1110 +Obsoletes: python-gflags < %{version} BuildArch: noarch -%endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +Requires(post): update-alternatives +Requires(preun): update-alternatives +%python_subpackages %description This project is the python equivalent of google-gflags, a Google commandline @@ -55,17 +54,24 @@ difference from OptParse.) %setup -q -n python-gflags-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# Remove ext from name -mv %{buildroot}%{_bindir}/gflags2man.py %{buildroot}%{_bindir}/gflags2man +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +mv %{buildroot}%{_bindir}/gflags2man.py %{buildroot}%{_bindir}/gflags2man +%python_clone -a %{buildroot}%{_bindir}/gflags2man -%files +%post +%python_install_alternative gflags2man + +%preun +%python_uninstall_alternative gflags2man + +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README -%{_bindir}/gflags2man +%python_alternative %{_bindir}/gflags2man %{python_sitelib}/* %changelog From 3f47e2afebb4b60e4da491a90a0b3b4d97b05baf23235fb7f955ab433c938461 Mon Sep 17 00:00:00 2001 From: Todd R Date: Tue, 25 Apr 2017 21:48:45 +0000 Subject: [PATCH 2/3] Accepting request 491150 from home:TheBlackCat:branches:devel:languages:python Fix URL. OBS-URL: https://build.opensuse.org/request/show/491150 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gflags?expand=0&rev=15 --- python-python-gflags.changes | 5 +++++ python-python-gflags.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-python-gflags.changes b/python-python-gflags.changes index 87abac7..2a9969d 100644 --- a/python-python-gflags.changes +++ b/python-python-gflags.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 25 21:48:26 UTC 2017 - toddrme2178@gmail.com + +- Fix URL. + ------------------------------------------------------------------- Tue Apr 25 20:13:24 UTC 2017 - toddrme2178@gmail.com diff --git a/python-python-gflags.spec b/python-python-gflags.spec index 8e985e1..ff69b0d 100644 --- a/python-python-gflags.spec +++ b/python-python-gflags.spec @@ -24,7 +24,7 @@ Url: http://code.google.com/p/python-gflags Summary: Google Commandline Flags Module License: BSD-3-Clause Group: Development/Languages/Python -Source: http://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: python-rpm-macros From f223ab3fae669710ddee47986f66db686c2f2046c0ac75a070cc913585aa7ef8 Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Thu, 27 Apr 2017 12:11:09 +0000 Subject: [PATCH 3/3] Accepting request 491278 from home:alarrosa:branches:devel:languages:python - Provide python-gflags in the python2 package OBS-URL: https://build.opensuse.org/request/show/491278 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gflags?expand=0&rev=16 --- python-python-gflags.changes | 5 +++++ python-python-gflags.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-python-gflags.changes b/python-python-gflags.changes index 2a9969d..47ba813 100644 --- a/python-python-gflags.changes +++ b/python-python-gflags.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 26 16:20:48 UTC 2017 - alarrosa@suse.com + +- Provide python-gflags in the python2 package + ------------------------------------------------------------------- Tue Apr 25 21:48:26 UTC 2017 - toddrme2178@gmail.com diff --git a/python-python-gflags.spec b/python-python-gflags.spec index ff69b0d..396ec48 100644 --- a/python-python-gflags.spec +++ b/python-python-gflags.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-gflags # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,7 @@ # +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-python-gflags Version: 3.1.1 @@ -26,12 +27,16 @@ License: BSD-3-Clause Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Provides: python-gflags = %{version} Obsoletes: python-gflags < %{version} +%ifpython2 +Provides: %{oldpython}-gflags = %{version} +Obsoletes: %{oldpython}-gflags < %{version} +%endif BuildArch: noarch Requires(post): update-alternatives Requires(preun): update-alternatives