-
Notifications
You must be signed in to change notification settings - Fork 72
/
python-rivescript.spec
67 lines (49 loc) · 1.45 KB
/
python-rivescript.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
%global srcname rivescript
%global sum A Chatterbot Scripting Language
%global desc A scripting language to make it easy to write responses for a chatterbot.
Name: python-%{srcname}
Version: 1.15.0
Release: 1%{?dist}
Summary: %{sum}
License: MIT
URL: http://pypi.python.org/pypi/%{srcname}
Source0: http://pypi.python.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel python3-devel
%description
%{desc}
%package -n python2-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
%{desc}
%package -n python3-%{srcname}
Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}}
%description -n python3-%{srcname}
%{desc}
%prep
%autosetup -n %{srcname}-%{version}
%build
%py2_build
%py3_build
%install
# Must do the Python2 install first because the scripts in /usr/bin are
# overwritten with every setup.py install, and in general we want the
# Python3 version to be the default.
%py2_install
%py3_install
%check
%{__python2} setup.py test
%{__python3} setup.py test
# Note that there is no %%files section for the unversioned python module if
# we are building for several python runtimes
%files -n python2-%{srcname}
%license LICENSE
%doc README.md
%{python2_sitelib}/*
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*
%changelog