Browse Source

Applied second review notes from Robert-André Mauchin

Ref.:

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

+ 0
- 14
ydiff.spec.in View File

5
 URL:        https://github.com/ymattw/ydiff
5
 URL:        https://github.com/ymattw/ydiff
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
9
 BuildRequires: python3-devel
8
 BuildRequires: python3-devel
10
 BuildArch: noarch
9
 BuildArch: noarch
11
 
10
 
16
 workspace or from stdin, with side by side (similar to diff -y) and auto
15
 workspace or from stdin, with side by side (similar to diff -y) and auto
17
 pager support.
16
 pager support.
18
 
17
 
19
-%package -n python2-%{name}
20
-Summary: %{summary}
21
-%description -n python2-%{name}
22
-Python library that implements API used by ydiff tool.
23
-
24
 %package -n     python3-%{name}
18
 %package -n     python3-%{name}
25
 Summary:        %{summary}
19
 Summary:        %{summary}
26
 %{?python_provide:%python_provide python3-%{name}}
20
 %{?python_provide:%python_provide python3-%{name}}
32
 /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
26
 /usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py
33
 
27
 
34
 %build
28
 %build
35
-%py2_build
36
 %py3_build
29
 %py3_build
37
 
30
 
38
 %install
31
 %install
39
-%py2_install
40
 %py3_install
32
 %py3_install
41
 
33
 
42
 %files
34
 %files
44
 %license LICENSE
36
 %license LICENSE
45
 %{_bindir}/ydiff
37
 %{_bindir}/ydiff
46
 
38
 
47
-%files -n python2-%{name}
48
-%{python2_sitelib}/%{name}.py
49
-%{python2_sitelib}/%{name}.pyc
50
-%{python2_sitelib}/%{name}.pyo
51
-%{python2_sitelib}/%{name}-*.egg-info
52
-
53
 %files -n python3-%{name}
39
 %files -n python3-%{name}
54
 %{python3_sitelib}/__pycache__/*
40
 %{python3_sitelib}/__pycache__/*
55
 %{python3_sitelib}/%{name}.py
41
 %{python3_sitelib}/%{name}.py