Skip to content

Commit

Permalink
(a) Modify spec file to use pypi name of python-ffwd
Browse files Browse the repository at this point in the history
(b) Update package name in cgmanifest.json/License-map/License.json
  • Loading branch information
Sumynwa committed Jul 26, 2022
1 parent 1f2c01f commit 7da8ff1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SPECS/LICENSES-AND-NOTICES/data/licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -2040,7 +2040,7 @@
"python-cachetools",
"python-cherrypy",
"python-execnet",
"python-ffwd-client",
"python-ffwd",
"python-logutils",
"python-nocasedict",
"python-pecan",
Expand Down
23 changes: 16 additions & 7 deletions SPECS/python-ffwd/python-ffwd.spec
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
Name: python-ffwd-client
%global pypi_name ffwd
%global _description \
Flexible metric forwarding agent (FFWD) client for python.

Name: python-%{pypi_name}
Version: 0.0.2
Release: 1%{?dist}
Summary: Flexible metric forwarding agent(ffwd) client for python
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
URL: https://github.com/udoprog/ffwd-client-python
Source0: https://github.com/udoprog/ffwd-client-python/archive/refs/tags/%{version}.tar.gz#/ffwd-client-python-%{version}.tar.gz
URL: https://github.com/udoprog/%{pypi_name}-client-python
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{pypi_name}-client-python-%{version}.tar.gz

BuildRequires: python3-setuptools
%if %{with_check}
BuildRequires: python3-pip
BuildRequires: python3-pytest
%endif
BuildArch: noarch

%description
Flexible metric forwarding agent (FFWD) client for python.
%description %{_description}

%package -n python3-%{pypi_name}
Summary: %{summary}

%description -n python3-%{pypi_name} %{_description}

%prep
%autosetup -n ffwd-client-python-%{version} -p1
%autosetup -n %{pypi_name}-client-python-%{version} -p1

%build
%py3_build
Expand All @@ -30,7 +39,7 @@ Flexible metric forwarding agent (FFWD) client for python.
%{python3} -m pip install atomicwrites attrs pluggy pygments six more-itertools
%{python3} -m pytest -v tests

%files
%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{_bindir}/ffwd-send
Expand Down
2 changes: 1 addition & 1 deletion cgmanifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -20333,7 +20333,7 @@
"component": {
"type": "other",
"other": {
"name": "python-ffwd-client",
"name": "python-ffwd",
"version": "0.0.2",
"downloadUrl": "https://github.com/udoprog/ffwd-client-python/archive/refs/tags/0.0.2.tar.gz"
}
Expand Down

0 comments on commit 7da8ff1

Please sign in to comment.