Compare commits

...

19 Commits
rawhide ... el6

Author SHA1 Message Date
Kamil Dudka 216441d109 update to latest upstream release (1.7.0) 2020-02-05 17:18:33 +01:00
Kamil Dudka ffa049d6e2 update to latest upstream release (1.6.1)
Resolves: #1705427 - make pycsdiff build with Python 3.8
2019-05-02 17:58:32 +02:00
Kamil Dudka 8c79ca74cc update to latest upstream release (1.6.0) 2019-02-04 20:26:00 +01:00
Fedora Release Engineering 2cf54561d8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-04 20:25:58 +01:00
Jonathan Wakely e819d889f6 Rebuilt and patched for Boost 1.69 2019-02-04 20:25:56 +01:00
Igor Gnatenko e87d22ae61 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-02-04 20:25:54 +01:00
Kamil Dudka 95ff915fab update to latest upstream release (1.5.0) 2018-10-18 15:19:26 +02:00
Kamil Dudka af1df99658 update to latest upstream release
... and make both python2 and python3 optional
2018-05-03 17:09:55 +02:00
Kamil Dudka 0e8fdfa9ec add explicit BR for the gcc-c++ compiler
... as instructed at:

https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B
2018-05-03 17:09:45 +02:00
Kamil Dudka 3abf7df07e update to latest upstream release (1.3.3) 2018-01-16 12:48:33 +01:00
Kamil Dudka 7db62c57bb update to latest upstream release
... and update project URL and source URL
2017-02-16 11:06:48 +01:00
Kamil Dudka a0b01e85d3 update to latest upstream release (1.3.1) 2016-09-14 14:22:24 +02:00
Kamil Dudka 9c9965b843 update to latest upstream release
... and introduce the python2- subpackage
2016-05-20 18:47:10 +02:00
Kamil Dudka 81457ac2d0 update to latest upstream release (1.2.3) 2015-05-26 13:53:48 +02:00
Kamil Dudka 5c2370e88b update to latest upstream release (1.2.2) 2015-04-02 18:12:40 +02:00
Kamil Dudka def0fc6e1e update to latest upstream release (1.2.1) 2015-03-06 14:46:50 +01:00
Kamil Dudka 25c4906865 update to latest upstream release (1.1.3)
... and package the pycsdiff python module
2015-01-19 15:50:13 +01:00
Kamil Dudka 93f2bab6b8 update to latest upstream (1.1.1) 2014-11-07 17:16:24 +01:00
Kamil Dudka 42bd86cb60 update to latest upstream bugfix release (1.0.10) 2014-09-03 14:18:05 +02:00
3 changed files with 167 additions and 7 deletions

16
csdiff-1.7.0.tar.xz.asc Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEmSqW4HUFbnnNghT5hz2zdXKjezYFAl465N8ACgkQhz2zdXKj
ezbkKw/9H78FgjIalE9Ji5kvG55lstKpwOE/R+Mqaplq7dkeKPZyjuEG+KZDdlOP
YkZeMpOmbj/lWVfl01+LmFbag6Co7o7VW7RHwPiQsoc37+YubZ4co9VwfdAZ2Oak
kMTiRFOu+k9zGLrxyY98JdSF7HcnPt4BtBbwhHTliQL99ojcpnDEMUz3e2ViE13R
SeUm5YLuROfUCL3KweL/A9F+kh7yDTV1xdyM6YO7IQlPQ8SlWhCtzaruyRyhmkHr
VBLj4rmjvzzeLH8qbZ+MmsXmv8PKu9a2S/+j5oWM4v8HoWDaPRrDZO7dVO9LbIBh
u/36YjGRogwlGoU7GJSkRpOg4P+LAtmMzc9A5V9Xb2ThTUcGhw66FcxU01ZKehLI
JqgyBLITfkY1srINBQcxdbgYiacJMMy1tYiNAujahVby/E1wKs9ztT72b/l9fG77
4aQ9gmH9HCKcW0uer95zNne+XLmfQR4XXU1yn8Sjgn1LI7AMbnisUqh4L+V3WAKi
qZsPwCn/nunOfCU5fGk6ZEDI1tbPP6UvV1vDRxcROt36mRkO/OH8TYzF9eyeAJ/M
UcVQWSou27QhyuW1zdqalsgSDTjr/Q/JYNM/IjXRnqgHLtuF0+K7WHrQtn64zzRS
nxUqcTnqqUWJ/pzJggN33UT0J0cMnjx08XBrVmqVNMmnkRxe6I0=
=y232
-----END PGP SIGNATURE-----

View File

@ -1,15 +1,29 @@
# python3 is not available on RHEL <= 7
%if 0%{?fedora} || 0%{?rhel} > 7
%bcond_without python3
%else
%bcond_with python3
%endif
# python2 is not available on RHEL > 7 and not needed on Fedora > 29
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
%bcond_with python2
%else
%bcond_without python2
%endif
Name: csdiff
Version: 1.0.8
Version: 1.7.0
Release: 1%{?dist}
Summary: Non-interactive tools for processing code scan results in plain-text
Group: Applications/Text
License: GPLv3+
URL: https://git.fedorahosted.org/cgit/codescan-diff.git
Source0: https://git.fedorahosted.org/cgit/codescan-diff.git/snapshot/%{name}-%{version}.tar.xz
URL: https://github.com/kdudka/csdiff
Source0: https://github.com/kdudka/csdiff/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: help2man
%description
@ -17,18 +31,75 @@ This package contains the csdiff tool for comparing code scan defect lists in
order to find out added or fixed defects, and the csgrep utility for filtering
defect lists using various filtering predicates.
%if %{with python2}
%package -n python2-%{name}
Summary: Python interface to csdiff for Python 2
Conflicts: %{name} <= 1.2.3
%if 0%{?fedora} > 28
BuildRequires: boost-python2-devel
%endif
BuildRequires: python2-devel
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
This package contains the Python 2 binding for the csdiff tool for comparing
code scan defect lists to find out added or fixed defects.
%if 0%{?rhel} && 0%{?rhel} <= 6
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
%endif
%if %{with python3}
%package -n python3-%{name}
Summary: Python interface to csdiff for Python 3
BuildRequires: boost-python3-devel
BuildRequires: python3-devel
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
This package contains the Python 3 binding for the csdiff tool for comparing
code scan defect lists to find out added or fixed defects.
%endif
%prep
%setup -q
rm -rf ./boost_*
%build
make version.cc
mkdir csdiff_build
cd csdiff_build
%cmake ..
%cmake .. -DBUILD_PYCSDIFF=OFF
make %{?_smp_mflags} VERBOSE=yes
%if %{with python2}
mkdir ../csdiff_build_py2
cd ../csdiff_build_py2
%cmake .. -DPYTHON_EXECUTABLE=%{__python2}
make %{?_smp_mflags} VERBOSE=yes
%endif
%if %{with python3}
mkdir ../csdiff_build_py3
cd ../csdiff_build_py3
%cmake .. \
-DPYTHON_EXECUTABLE=%{__python3} \
-DBOOST_PYTHON_LIB_NAME=boost_python%{python3_version_nodots}
make %{?_smp_mflags} VERBOSE=yes pycsdiff
%endif
%install
%if %{with python2}
mkdir -vp %{buildroot}%{python2_sitearch}
install -vm0644 csdiff_build_py2/pycsdiff.so %{buildroot}%{python2_sitearch}
%endif
%if %{with python3}
mkdir -vp %{buildroot}%{python3_sitearch}
install -vm0644 csdiff_build_py3/pycsdiff.so %{buildroot}%{python3_sitearch}
%endif
cd csdiff_build
make install DESTDIR="$RPM_BUILD_ROOT"
@ -42,14 +113,87 @@ ctest %{?_smp_mflags} --output-on-failure
%{_bindir}/cshtml
%{_bindir}/cslinker
%{_bindir}/cssort
%{_bindir}/cstrans-df-run
%{_mandir}/man1/csdiff.1*
%{_mandir}/man1/csgrep.1*
%{_mandir}/man1/cshtml.1*
%{_mandir}/man1/cslinker.1*
%{_mandir}/man1/cssort.1*
%{_mandir}/man1/cstrans-df-run.1*
%doc COPYING README
%if %{with python2}
%files -n python2-%{name}
%{python2_sitearch}/pycsdiff.so
%doc COPYING
%endif
%if %{with python3}
%files -n python3-%{name}
%{python3_sitearch}/pycsdiff.so
%doc COPYING
%endif
%changelog
* Wed Feb 05 2020 Kamil Dudka <kdudka@redhat.com> 1.7.0-1
- update to latest upstream release
* Thu May 02 2019 Kamil Dudka <kdudka@redhat.com> 1.6.1-1
- make pycsdiff build with Python 3.8 (#1705427)
- update to latest upstream release
* Mon Feb 04 2019 Kamil Dudka <kdudka@redhat.com> 1.6.0-1
- update to latest upstream release
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Wed Jan 30 2019 Jonathan Wakely <jwakely@redhat.com> - 1.5.0-2
- Rebuilt and patched for Boost 1.69
* Thu Oct 18 2018 Kamil Dudka <kdudka@redhat.com> 1.5.0-1
- update to latest upstream release
* Thu May 03 2018 Kamil Dudka <kdudka@redhat.com> 1.4.0-1
- update to latest upstream release
- make both python2 and python3 optional
* Mon Feb 19 2018 Kamil Dudka <kdudka@redhat.com> 1.3.3-4
- add explicit BR for the gcc-c++ compiler
* Mon Jan 15 2018 Kamil Dudka <kdudka@redhat.com> 1.3.3-1
- update to latest upstream release
* Wed Feb 15 2017 Kamil Dudka <kdudka@redhat.com> 1.3.2-1
- update to latest upstream release
- update project URL and source URL
* Wed Sep 14 2016 Kamil Dudka <kdudka@redhat.com> 1.3.1-1
- update to latest upstream release
* Fri May 20 2016 Kamil Dudka <kdudka@redhat.com> 1.3.0-1
- update to latest upstream release
- introduce the python2-csdiff subpackage
* Tue May 26 2015 Kamil Dudka <kdudka@redhat.com> 1.2.3-1
- update to latest upstream release
* Wed Apr 01 2015 Kamil Dudka <kdudka@redhat.com> 1.2.2-1
- update to latest upstream release
* Tue Mar 03 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1
- update to latest upstream release
* Mon Jan 19 2015 Kamil Dudka <kdudka@redhat.com> 1.1.3-1
- update to latest upstream release
- package the pycsdiff python module
* Fri Nov 07 2014 Kamil Dudka <kdudka@redhat.com> 1.1.1-1
- update to latest upstream release
* Wed Sep 03 2014 Kamil Dudka <kdudka@redhat.com> 1.0.10-1
- update to latest upstream bugfix release
* Thu Jul 17 2014 Kamil Dudka <kdudka@redhat.com> 1.0.8-1
- update to latest upstream bugfix release

View File

@ -1 +1 @@
c92e3489b0b9618981ed4d1e9eae2079 csdiff-1.0.8.tar.xz
SHA512 (csdiff-1.7.0.tar.xz) = 8e457f290aa42ad7b4095e2d3e00fae569b385b8de9ed670c15fb938a0fe923c8dfbc580b0212cf8907eb34cc516a2269588e261d72287d6a994ccb5d5772372