Browse Source

Applied first review notes from Robert-André Mauchin

Ref.:

    https://bugzilla.redhat.com/show_bug.cgi?id=1595420#c1
Alois Mahdal 5 years ago
parent
commit
b3ac504bb4
1 changed files with 15 additions and 1 deletions
  1. 15
    1
      ydiff.spec.in

+ 15
- 1
ydiff.spec.in View File

@@ -6,10 +6,11 @@ URL:        https://github.com/ymattw/ydiff
6 6
 License:    BSD
7 7
 Source0:    __APP_URLBASE__/archive/%{version}/%{name}-%{version}.tar.gz
8 8
 BuildRequires: python2-devel
9
+BuildRequires: python3-devel
9 10
 BuildArch: noarch
10 11
 
11 12
 Requires: less
12
-Requires: python2-%{name}
13
+Requires: python%{python3_pkgversion}-%{name}
13 14
 %description
14 15
 Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
15 16
 workspace or from stdin, with side by side (similar to diff -y) and auto
@@ -20,15 +21,23 @@ Summary: %{summary}
20 21
 %description -n python2-%{name}
21 22
 Python library that implements API used by ydiff tool.
22 23
 
24
+%package -n     python3-%{name}
25
+Summary:        %{summary}
26
+%{?python_provide:%python_provide python3-%{name}}
27
+%description -n python3-%{name}
28
+Python library that implements API used by ydiff tool.
29
+
23 30
 %prep
24 31
 %autosetup -n %{name}-%{version}
25 32
 /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
26 33
 
27 34
 %build
28 35
 %py2_build
36
+%py3_build
29 37
 
30 38
 %install
31 39
 %py2_install
40
+%py3_install
32 41
 
33 42
 %files
34 43
 %doc README.rst
@@ -41,6 +50,11 @@ Python library that implements API used by ydiff tool.
41 50
 %{python2_sitelib}/%{name}.pyo
42 51
 %{python2_sitelib}/%{name}-*.egg-info
43 52
 
53
+%files -n python3-%{name}
54
+%{python3_sitelib}/__pycache__/*
55
+%{python3_sitelib}/%{name}.py
56
+%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
57
+
44 58
 %changelog
45 59
 * __APP_DATE__ Alois Mahdal <netvor+ydiff@vornet.cz> - __APP_VERSION__-__APP_RELEASE__
46 60
 - Unofficial experimental RPM pseudo-release