blob: 87eaea337f21edc79fa80e366c576f5b339919f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
%global pypi_name msm
Name: python-%{pypi_name}
Version: 0.8.9
Release: 1%{?dist}
Summary: Mycroft Skills Manager
License: ASL 2.0
URL: https://github.com/MycroftAI/mycroft-skills-manager
Source0: %{pypi_source}
BuildArch: noarch
# MSM tries to install requirements with sudo if it's not in a venv. Because,
# by default, skills are installed system-wide. This is not the behaviour in
# the RPM-based mycroft, where skills are user-wide, so this will rely on pip
# user installation instead ;).
Patch0: msm-no-sudo-pip.patch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
%global _description %{expand:
Mycroft Skills Manager is a command line tool and a python module for
interacting with the mycroft-skills repository. It allows querying the
repository for information (skill listings, skill meta data, etc) and of course
installing and removing skills from the system.
}
%description %_description
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires: python3dist(fasteners)
Requires: python3dist(gitpython)
Requires: python3dist(lazy)
Requires: python3dist(pako)
Requires: python3dist(pyyaml)
Requires: python3dist(setuptools)
%description -n python3-%{pypi_name} %_description
%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
rm %{buildroot}%{_prefix}/%{pypi_name}/LICENSE
%files -n python3-%{pypi_name}
%license LICENSE
%{_bindir}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%changelog
* Sat Jun 06 2020 Lyes Saadi <fedora@lyes.eu> - 0.8.7-1
- Initial Package
|