@@ -85,13 +85,22 @@ Source0: https://git.fedorahosted.org/cgit/codescan-diff.git/snapshot/$SRC
85
85
BuildRequires: boost-devel
86
86
BuildRequires: cmake
87
87
BuildRequires: help2man
88
- BuildRequires: python-devel
89
88
90
89
%description
91
90
This package contains the csdiff tool for comparing code scan defect lists in
92
91
order to find out added or fixed defects, and the csgrep utility for filtering
93
92
defect lists using various filtering predicates.
94
93
94
+ %package -n python2-%{name}
95
+ Summary: Python interface to csdiff for Python 2
96
+ Conflicts: %{name} <= 1.2.3
97
+ BuildRequires: python2-devel
98
+ %{?python_provide:%python_provide python2-%{name}}
99
+
100
+ %description -n python2-%{name}
101
+ This package contains the Python 2 binding for the csdiff tool for comparing
102
+ code scan defect lists to find out added or fixed defects.
103
+
95
104
%if 0%{?rhel} && 0%{?rhel} <= 6
96
105
%{!?__python2: %global __python2 /usr/bin/python2}
97
106
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
@@ -104,7 +113,7 @@ defect lists using various filtering predicates.
104
113
make version.cc
105
114
mkdir csdiff_build
106
115
cd csdiff_build
107
- %cmake ..
116
+ %cmake .. -DPYTHON_EXECUTABLE=%{__python2}
108
117
make %{?_smp_mflags} VERBOSE=yes
109
118
110
119
%install
@@ -126,8 +135,11 @@ ctest %{?_smp_mflags} --output-on-failure
126
135
%{_mandir}/man1/cshtml.1*
127
136
%{_mandir}/man1/cslinker.1*
128
137
%{_mandir}/man1/cssort.1*
129
- %{python2_sitearch}/pycsdiff.so
130
138
%doc COPYING README
139
+
140
+ %files -n python2-%{name}
141
+ %{python2_sitearch}/pycsdiff.so
142
+ %doc COPYING
131
143
EOF
132
144
133
145
set -v
0 commit comments