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