| |
@@ -3,12 +3,16 @@
|
| |
|
| |
Name: python-%{pkg_name}
|
| |
Version: 0.4
|
| |
- Release: 9%{?dist}
|
| |
+ Release: 10%{?dist}
|
| |
Summary: LaCrosse Python sensor library
|
| |
|
| |
License: LGPLv2+
|
| |
URL: http://github.com/hthiery/python-lacrosse
|
| |
- Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
| |
+ # Cannot use a git tarball as a Source, see https://github.com/hthiery/python-lacrosse/issues/11
|
| |
+ Source0: %{pypi_source %{pypi_name}}
|
| |
+ # The following files are missing from the sdist
|
| |
+ Source1: https://github.com/hthiery/python-lacrosse/raw/%{version}/AUTHORS
|
| |
+ Source2: https://github.com/hthiery/python-lacrosse/raw/%{version}/COPYING
|
| |
BuildArch: noarch
|
| |
|
| |
%description
|
| |
@@ -29,7 +33,8 @@
|
| |
Python libray to work with the Jeelink USB RF adapter.
|
| |
|
| |
%prep
|
| |
- %autosetup -n %{name}-%{version}
|
| |
+ %autosetup -n %{pypi_name}-%{version}
|
| |
+ cp -p %{SOURCE1} %{SOURCE2} .
|
| |
rm -rf %{pypi_name}.egg-info
|
| |
|
| |
%build
|
| |
@@ -46,11 +51,16 @@
|
| |
%license COPYING
|
| |
%{_bindir}/pylacrosse
|
| |
%{python3_sitelib}/%{pypi_name}/
|
| |
- # Unversioned egg-info: https://github.com/hthiery/python-lacrosse/issues/11
|
| |
- %{python3_sitelib}/%{pypi_name}*py%{python3_version}.egg-info/
|
| |
+ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
| |
%exclude %{python3_sitelib}/tests
|
| |
|
| |
%changelog
|
| |
+ * Tue Jan 24 2023 Miro Hrončok <mhroncok@redhat.com> - 0.4-10
|
| |
+ - Use sdist from PyPI to build the package to correct version metadata
|
| |
+ - This makes the package provide python3dist(pylacrosse) = 0.4 instead of python3dist(pylacrosse) = unknown
|
| |
+ - This makes the package build with packaging 22+
|
| |
+
|
| |
+
|
| |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-9
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
| |
|
| |
The upstream setup.py tries to:
Hence,t he version was "unknown". This is not even incorrect,
but since packaging 22 also considered invalid and the package would FTBFS without the fix.