-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpython-varlink.spec
More file actions
47 lines (35 loc) · 1.1 KB
/
python-varlink.spec
File metadata and controls
47 lines (35 loc) · 1.1 KB
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
Name: python-varlink
Version: 30.3.1
Release: 1%{?dist}
Summary: Python implementation of Varlink
License: ASL 2.0
URL: https://github.com/varlink/%{name}
Source0: https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-rpm-macros
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%global _description \
An python module for Varlink with client and server support.
%description %_description
%package -n python3-varlink
Summary: %summary
%{?python_provide:%python_provide python3-varlink}
%description -n python3-varlink %_description
%prep
%autosetup -n python-%{version}
%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%py3_build
%check
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} check
%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%py3_install
%files -n python3-varlink
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/*
%changelog