forked from pool/python-ddg3
Accepting request 809426 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/809426 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-ddg3?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 07:22:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||
|
||||
- %python3_only -> %python_alternative
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 8 15:13:00 UTC 2018 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-ddg3
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -12,7 +12,8 @@
|
||||
# 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/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define skip_python2 1
|
||||
@@ -20,17 +21,18 @@
|
||||
Name: python-ddg3
|
||||
Version: 0.6.6git~20170824T092521~0ef6b2f
|
||||
Release: 0
|
||||
License: BSD-3-Clause
|
||||
Summary: Library for querying the Duck Duck Go API
|
||||
Url: https://github.com/jpetrucciani/python-duckduckgo
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/jpetrucciani/python-duckduckgo
|
||||
Source: ddg3-%{version}.tar.xz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-requests
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -44,11 +46,18 @@ A Python3 library for querying the Duck Duck Go API.
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/ddg3
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative ddg3
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative ddg3
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/ddg3
|
||||
%python_alternative %{_bindir}/ddg3
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user