1
0

Accepting request 486635 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/486635
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-vcversioner?expand=0&rev=2
This commit is contained in:
Yuchen Lin 2017-04-12 15:35:33 +00:00 committed by Git OBS Bridge
commit b35998c7eb
5 changed files with 51 additions and 21 deletions

13
COPYING Normal file
View File

@ -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.

View File

@ -1,3 +1,16 @@
-------------------------------------------------------------------
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
- Update to 2.16.0.0
* And now update classifiers.
* Only set the version on the distribution metadata.
- Add LICENSE file
-------------------------------------------------------------------
Sun Jun 14 19:50:47 UTC 2015 - nemysis@gmx.ch

View File

@ -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,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%define oname vcversioner
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
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
BuildRequires: python-devel
BuildRequires: python-setuptools
Source0: https://pypi.python.org/packages/source/v/vcversioner/vcversioner-%{version}.tar.gz
Source1: https://raw.githubusercontent.com/habnabit/vcversioner/%{version}/COPYING
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module 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
%python_subpackages
%description
Elevator pitch: you can write a setup.py with no version information
@ -39,21 +40,24 @@ 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
%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
%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/%{oname}.*
%doc README.rst COPYING
%{python_sitelib}/vcversioner.py*
%pycache_only %{python_sitelib}/__pycache__/vcversioner.*.py*
%{python_sitelib}/vcversioner-%{version}-py*.egg-info
%changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:acd43686e92e6c8bbeb4f2eef54408567a7adea9692fa72d591eec5357c03b86
size 9015

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b
size 9024