forked from pool/python-smpplib
Accepting request 1154513 from devel:languages:python
- Switch to autosetup and pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/request/show/1154513 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-smpplib?expand=0&rev=7
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 4 04:57:07 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to autosetup and pyproject macros.
|
||||||
|
- No more greedy globs in %files.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Dec 8 16:04:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Fri Dec 8 16:04:33 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-smpplib
|
# spec file for package python-smpplib
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
# Copyright (c) 2016-2021, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2016-2021, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,20 +17,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-smpplib
|
Name: python-smpplib
|
||||||
Version: 2.2.3
|
Version: 2.2.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: SMPP library for Python
|
Summary: SMPP library for Python
|
||||||
License: LGPL-2.0-only
|
License: LGPL-2.0-only
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://pypi.org/project/smpplib/
|
URL: https://pypi.org/project/smpplib/
|
||||||
#Git-Clone: https://github.com/python-smpplib/python-smpplib.git
|
#Git-Clone: https://github.com/python-smpplib/python-smpplib.git
|
||||||
Source: https://github.com/python-smpplib/python-smpplib/archive/%{version}.tar.gz#/smpplib-%{version}.tar.gz
|
Source: https://github.com/python-smpplib/python-smpplib/archive/%{version}.tar.gz#/smpplib-%{version}.tar.gz
|
||||||
# https://github.com/python-smpplib/python-smpplib/issues/200
|
# https://github.com/python-smpplib/python-smpplib/issues/200
|
||||||
Patch0: python-smpplib-no-mock.patch
|
Patch0: python-smpplib-no-mock.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module six}
|
BuildRequires: %{python_module six}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -47,14 +47,13 @@ Python-smpplib is a python based SMPP 3.4 client library that
|
|||||||
allows you to send and receive SMS to an SMS gateway or SMSC.
|
allows you to send and receive SMS to an SMS gateway or SMSC.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-smpplib-%{version}
|
%autosetup -p1 -n python-smpplib-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# Remove tests from sitelib
|
# Remove tests from sitelib
|
||||||
%python_expand rm -R %{buildroot}%{$python_sitelib}/smpplib/tests/
|
%python_expand rm -R %{buildroot}%{$python_sitelib}/smpplib/tests/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
@@ -65,6 +64,7 @@ allows you to send and receive SMS to an SMS gateway or SMSC.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitelib}/smpplib*
|
%{python_sitelib}/smpplib
|
||||||
|
%{python_sitelib}/smpplib-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user