From 34c94ae16c950c9066b84ca99d8fc0e2b77074650033018f4e2e159ffc7b9135 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 29 Nov 2011 15:16:00 +0000 Subject: [PATCH] Accepting request 94260 from home:namtrac:bugfix Replaces python-gflags, please remove that and accept this one OBS-URL: https://build.opensuse.org/request/show/94260 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gflags?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-gflags-1.6.tar.gz | 3 ++ python-python-gflags.changes | 15 ++++++++ python-python-gflags.spec | 72 ++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-gflags-1.6.tar.gz create mode 100644 python-python-gflags.changes create mode 100644 python-python-gflags.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-gflags-1.6.tar.gz b/python-gflags-1.6.tar.gz new file mode 100644 index 0000000..8952348 --- /dev/null +++ b/python-gflags-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2727d3a1c9d7a3b28c64550d6c653fcf66fa6927023edcec3b58dcbeab50185f +size 62408 diff --git a/python-python-gflags.changes b/python-python-gflags.changes new file mode 100644 index 0000000..12ee0f9 --- /dev/null +++ b/python-python-gflags.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Mon May 23 14:15:42 UTC 2011 - prusnak@opensuse.org + +- updated to 1.6 + +------------------------------------------------------------------- +Tue Oct 26 00:00:00 UTC 2010 - silas@sewell.ch + +- Fix non-executable-script error + +------------------------------------------------------------------- +Wed Oct 13 00:00:00 UTC 2010 - silas@sewell.ch + +- Initial package + diff --git a/python-python-gflags.spec b/python-python-gflags.spec new file mode 100644 index 0000000..c47f99c --- /dev/null +++ b/python-python-gflags.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-python-gflags +# +# Copyright (c) 2011 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: python-python-gflags +Version: 1.6 +Release: 0 +Url: http://code.google.com/p/python-gflags +Summary: Google Commandline Flags Module +License: BSD +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/p/python-gflags/python-gflags-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +BuildRequires: python-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 +BuildArch: noarch +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%description +This project is the python equivalent of google-gflags, a Google commandline +flag implementation for C++. It is intended to be used in situations where a +project wants to mimic the command-line flag handling of a C++ app that uses +google-gflags, or for a Python app that, via swig or some other means, is +linked with a C++ app that uses google-gflags. + +The gflags package contains a library that implements commandline flags +processing. As such it's a replacement for getopt(). It has increased +flexibility, including built-in support for Python types, and the ability to +define flags in the source file in which they're used. (This last is its major +difference from OptParse.) + +%prep +%setup -q -n python-gflags-%{version} + +%build +CFLAGS="%{optflags}" python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# Remove ext from name +mv %{buildroot}%{_bindir}/gflags2man.py %{buildroot}%{_bindir}/gflags2man + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%{_bindir}/gflags2man +%{python_sitelib}/* + +%changelog