forked from leapp-to/snactor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
python-snactor.spec
70 lines (55 loc) · 1.43 KB
/
python-snactor.spec
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
65
66
67
68
69
%global debug_package %{nil}
Name: python-snactor
Version: 0.1
Release: 1
Summary: Python Actor execution library
Group: Unspecified
License: ASL 2.0
URL: https://github.com/leapp-to/snactor
# git clone https://github.com/leapp-to/snactor
# tito build --tgz --tag=%{version}
Source0: %{name}-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: PyYAML
BuildRequires: python2-jsl
BuildRequires: python2-jsonschema
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires: python-setuptools
BuildRequires: epel-rpm-macros
%else
%if 0%{?fedora} > 25
BuildRequires: python2-pytest-cov
BuildRequires: python2-pytest-flake8
%endif
BuildRequires: python2-setuptools
BuildRequires: python-rpm-macros
%endif
Requires: PyYAML
Requires: python2-jsl
Requires: python2-jsonschema
%description
%prep
%autosetup
%build
%py2_build
%install
%py2_install
echo Starting to copy data from: $PWD
install -dm 0755 %{buildroot}%{_datadir}/%{name}
cp -r examples/* %{buildroot}%{_datadir}/%{name}/
%check
%if 0%{?fedora} <= 25 || (0%{?rhel} && 0%{?rhel} <= 7)
echo 'Skipping tests due to missing dependencies'
%else
make test
%endif
%files
%doc README.md LICENSE
%{python2_sitelib}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/scripts/*
%{_datadir}/%{name}/actors/*
%{_datadir}/%{name}/schema/*
%changelog
* Fri Aug 25 2017 Vinzenz Feenstra <[email protected]> 0.1-1
- new package built with tito