From ea5a6eb965f88567274e8e1b2aa302f515cf632e84f2b8e24c30da8b022bdb18 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 7 Apr 2017 20:48:03 +0000 Subject: [PATCH 1/3] Accepting request 486628 from home:TheBlackCat:branches:devel:languages:python - Update to 2.16.0.0 - Initial singlespec version. - Add LICENSE file OBS-URL: https://build.opensuse.org/request/show/486628 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcversioner?expand=0&rev=3 --- COPYING | 13 +++++++++++++ python-vcversioner.changes | 9 +++++++++ python-vcversioner.spec | 21 +++++++++------------ vcversioner-2.14.0.0.tar.gz | 3 --- vcversioner-2.16.0.0.tar.gz | 3 +++ 5 files changed, 34 insertions(+), 15 deletions(-) create mode 100644 COPYING delete mode 100644 vcversioner-2.14.0.0.tar.gz create mode 100644 vcversioner-2.16.0.0.tar.gz diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..edfd17b --- /dev/null +++ b/COPYING @@ -0,0 +1,13 @@ +Copyright (c) 2013-2014, Aaron Gallagher <_@habnab.it> + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/python-vcversioner.changes b/python-vcversioner.changes index 1e0b586..dc79be4 100644 --- a/python-vcversioner.changes +++ b/python-vcversioner.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Apr 7 20:39:49 UTC 2017 - toddrme2178@gmail.com + +- Update to 2.16.0.0 + * And now update classifiers. + * Only set the version on the distribution metadata. +- Initial singlespec version. +- Add LICENSE file + ------------------------------------------------------------------- Sun Jun 14 19:50:47 UTC 2015 - nemysis@gmx.ch diff --git a/python-vcversioner.spec b/python-vcversioner.spec index 86fabd1..5be998c 100644 --- a/python-vcversioner.spec +++ b/python-vcversioner.spec @@ -1,7 +1,7 @@ # # spec file for package python-vcversioner # -# Copyright (c) 2015 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 @@ -14,24 +14,20 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ -%define oname vcversioner Name: python-vcversioner -Version: 2.14.0.0 +Version: 2.16.0.0 Release: 0 License: ISC Summary: Use version control tags to discover version numbers Url: https://github.com/habnabit/vcversioner Group: Development/Languages/Python -Source0: https://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz +Source0: https://pypi.python.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz +Source1: https://raw.githubusercontent.com/habnabit/vcversioner/%{version}/COPYING BuildRequires: python-devel BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif %description Elevator pitch: you can write a setup.py with no version information @@ -39,7 +35,8 @@ specified, and vcversioner will find a recent, properly-formatted VCS tag and extract a version from it. %prep -%setup -q -n %{oname}-%{version} +%setup -q -n vcversioner-%{version} +cp %{SOURCE1} . %build python setup.py build @@ -52,8 +49,8 @@ python setup.py test %files %defattr(-,root,root,-) -%doc README.rst -%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info -%{python_sitelib}/%{oname}.* +%doc README.rst COPYING +%{python_sitelib}/vcversioner.py* +%{python_sitelib}/vcversioner-%{version}-py*.egg-info %changelog diff --git a/vcversioner-2.14.0.0.tar.gz b/vcversioner-2.14.0.0.tar.gz deleted file mode 100644 index 90b8e5c..0000000 --- a/vcversioner-2.14.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:acd43686e92e6c8bbeb4f2eef54408567a7adea9692fa72d591eec5357c03b86 -size 9015 diff --git a/vcversioner-2.16.0.0.tar.gz b/vcversioner-2.16.0.0.tar.gz new file mode 100644 index 0000000..d063751 --- /dev/null +++ b/vcversioner-2.16.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b +size 9024 From 28db8936d0e77e3593f1f6676d5eccc12084e2b45938d0af728f65b43bf5af5c Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 7 Apr 2017 20:48:56 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcversioner?expand=0&rev=4 --- python-vcversioner.changes | 1 - 1 file changed, 1 deletion(-) diff --git a/python-vcversioner.changes b/python-vcversioner.changes index dc79be4..4363928 100644 --- a/python-vcversioner.changes +++ b/python-vcversioner.changes @@ -4,7 +4,6 @@ Fri Apr 7 20:39:49 UTC 2017 - toddrme2178@gmail.com - Update to 2.16.0.0 * And now update classifiers. * Only set the version on the distribution metadata. -- Initial singlespec version. - Add LICENSE file ------------------------------------------------------------------- From 02f9003b6fca4c5954574113f8ed9482a668d0998fa19d30e3079d127cd79e1d Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 7 Apr 2017 20:56:26 +0000 Subject: [PATCH 3/3] Accepting request 486634 from home:TheBlackCat:branches:devel:languages:python - Implement single-spec version OBS-URL: https://build.opensuse.org/request/show/486634 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcversioner?expand=0&rev=5 --- python-vcversioner.changes | 5 +++++ python-vcversioner.spec | 19 +++++++++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/python-vcversioner.changes b/python-vcversioner.changes index 4363928..2b1bbe7 100644 --- a/python-vcversioner.changes +++ b/python-vcversioner.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 7 20:55:59 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version + ------------------------------------------------------------------- Fri Apr 7 20:39:49 UTC 2017 - toddrme2178@gmail.com diff --git a/python-vcversioner.spec b/python-vcversioner.spec index 5be998c..76818f9 100644 --- a/python-vcversioner.spec +++ b/python-vcversioner.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vcversioner Version: 2.16.0.0 Release: 0 @@ -24,11 +25,15 @@ Url: https://github.com/habnabit/vcversioner Group: Development/Languages/Python Source0: https://pypi.python.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz Source1: https://raw.githubusercontent.com/habnabit/vcversioner/%{version}/COPYING -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages + %description Elevator pitch: you can write a setup.py with no version information specified, and vcversioner will find a recent, properly-formatted @@ -39,18 +44,20 @@ VCS tag and extract a version from it. cp %{SOURCE1} . %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.rst COPYING %{python_sitelib}/vcversioner.py* +%pycache_only %{python_sitelib}/__pycache__/vcversioner.*.py* %{python_sitelib}/vcversioner-%{version}-py*.egg-info %changelog