31e01c3
Name:       csdiff
effa04e
Version:    1.2.2
5050de5
Release:    1%{?dist}
31e01c3
Summary:    Non-interactive tools for processing code scan results in plain-text
31e01c3
31e01c3
Group:      Applications/Text
31e01c3
License:    GPLv3+
31e01c3
URL:        https://git.fedorahosted.org/cgit/codescan-diff.git
807fc31
Source0:    https://git.fedorahosted.org/cgit/codescan-diff.git/snapshot/%{name}-%{version}.tar.xz
31e01c3
31e01c3
BuildRequires: boost-devel
31e01c3
BuildRequires: cmake
31e01c3
BuildRequires: help2man
4cbb8f7
BuildRequires: python-devel
31e01c3
31e01c3
%description
31e01c3
This package contains the csdiff tool for comparing code scan defect lists in
31e01c3
order to find out added or fixed defects, and the csgrep utility for filtering
31e01c3
defect lists using various filtering predicates. 
31e01c3
4cbb8f7
%if 0%{?rhel} && 0%{?rhel} <= 6
4cbb8f7
%{!?__python2: %global __python2 /usr/bin/python2}
4cbb8f7
%{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
4cbb8f7
%endif
4cbb8f7
31e01c3
%prep
31e01c3
%setup -q
31e01c3
31e01c3
%build
31e01c3
make version.cc
31e01c3
mkdir csdiff_build
31e01c3
cd csdiff_build
31e01c3
%cmake ..
31e01c3
make %{?_smp_mflags} VERBOSE=yes
31e01c3
31e01c3
%install
31e01c3
cd csdiff_build
31e01c3
make install DESTDIR="$RPM_BUILD_ROOT"
31e01c3
31e01c3
%check
31e01c3
cd csdiff_build
31e01c3
ctest %{?_smp_mflags} --output-on-failure
31e01c3
31e01c3
%files
31e01c3
%{_bindir}/csdiff
31e01c3
%{_bindir}/csgrep
31e01c3
%{_bindir}/cshtml
31e01c3
%{_bindir}/cslinker
31e01c3
%{_bindir}/cssort
31e01c3
%{_mandir}/man1/csdiff.1*
31e01c3
%{_mandir}/man1/csgrep.1*
31e01c3
%{_mandir}/man1/cshtml.1*
31e01c3
%{_mandir}/man1/cslinker.1*
31e01c3
%{_mandir}/man1/cssort.1*
4cbb8f7
%{python2_sitearch}/pycsdiff.so
31e01c3
%doc COPYING README
31e01c3
31e01c3
%changelog
effa04e
* Wed Apr 01 2015 Kamil Dudka <kdudka@redhat.com> 1.2.2-1
effa04e
- update to latest upstream release
effa04e
958c492
* Tue Mar 03 2015 Kamil Dudka <kdudka@redhat.com> 1.2.1-1
958c492
- update to latest upstream release
958c492
5050de5
* Wed Feb 18 2015 Kamil Dudka <kdudka@redhat.com> 1.2.0-1
5050de5
- update to latest upstream release
5050de5
b8d5f6b
* Thu Feb 05 2015 Kamil Dudka <kdudka@redhat.com> 1.1.4-2
b8d5f6b
- rebuild for boost 1.57.0
b8d5f6b
1a4f3f3
* Wed Jan 28 2015 Kamil Dudka <kdudka@redhat.com> 1.1.4-1
1a4f3f3
- update to latest upstream release
1a4f3f3
Petr Machata b22c118
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.1.3-2
Petr Machata b22c118
- Rebuild for boost 1.57.0
Petr Machata b22c118
5103b51
* Mon Jan 19 2015 Kamil Dudka <kdudka@redhat.com> 1.1.3-1
5103b51
- update to latest upstream
5103b51
4cbb8f7
* Thu Dec 18 2014 Kamil Dudka <kdudka@redhat.com> 1.1.2-1
4cbb8f7
- update to latest upstream release
4cbb8f7
- package the pycsdiff python module
4cbb8f7
9857081
* Thu Nov 06 2014 Kamil Dudka <kdudka@redhat.com> 1.1.1-1
9857081
- update to latest upstream release
9857081
a3eacb3
* Fri Sep 19 2014 Kamil Dudka <kdudka@redhat.com> 1.1.0-1
a3eacb3
- update to latest upstream release
a3eacb3
d401a5b
* Wed Aug 20 2014 Kamil Dudka <kdudka@redhat.com> 1.0.10-1
d401a5b
- update to latest upstream bugfix release
d401a5b
97c59d3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-2
97c59d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
97c59d3
28c6fd1
* Fri Aug 01 2014 Kamil Dudka <kdudka@redhat.com> 1.0.9-1
28c6fd1
- update to latest upstream bugfix release
28c6fd1
5569280
* Thu Jul 17 2014 Kamil Dudka <kdudka@redhat.com> 1.0.8-1
5569280
- update to latest upstream bugfix release
5569280
99a3441
* Thu Jun 19 2014 Kamil Dudka <kdudka@redhat.com> 1.0.6-1
99a3441
- update to latest upstream bugfix release
99a3441
ea55310
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-3
ea55310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ea55310
Petr Machata 5375e62
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 1.0.4-2
Petr Machata 5375e62
- Rebuild for boost 1.55.0
Petr Machata 5375e62
807fc31
* Mon Mar 17 2014 Kamil Dudka <kdudka@redhat.com> 1.0.4-1
807fc31
- update to latest upstream
807fc31
31e01c3
* Thu Feb 20 2014 Kamil Dudka <kdudka@redhat.com> 1.0.2-2
31e01c3
- abandon RHEL-5 compatibility per Fedora Review Request (#1066027)
31e01c3
31e01c3
* Wed Feb 19 2014 Kamil Dudka <kdudka@redhat.com> 1.0.2-1
31e01c3
- packaged for Fedora