|
Stanislav Ochotnicky |
08bcfb3 |
# needed for test content
|
|
Stanislav Ochotnicky |
08bcfb3 |
%{?perl_default_filter}
|
|
Stanislav Ochotnicky |
08bcfb3 |
%global __provides_exclude_from %{perl_vendorarch}/auto/.*\\.so$|%{perl_archlib}/.*\\.so$|%{_docdir}|%{_datadir}/fedora-review/
|
|
Stanislav Ochotnicky |
08bcfb3 |
|
|
Stanislav Ochotnicky |
9401bb1 |
#invoke with "--with tests" to enable tests
|
|
Stanislav Ochotnicky |
9401bb1 |
%bcond_with tests
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
# See notes in make_release which patches this.
|
|
Stanislav Ochotnicky |
9401bb1 |
#global git_tag .fa1afe1
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
08bcfb3 |
|
|
Stanislav Ochotnicky |
562f8c0 |
Name: fedora-review
|
|
Stanislav Ochotnicky |
08bcfb3 |
Version: 0.5.1
|
|
Stanislav Ochotnicky |
f25f398 |
Release: 2%{?git_tag}%{?dist}
|
|
Stanislav Ochotnicky |
562f8c0 |
Summary: Review tool for fedora rpm packages
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
License: GPLv2+
|
|
Stanislav Ochotnicky |
562f8c0 |
URL: https://fedorahosted.org/FedoraReview/
|
|
Stanislav Ochotnicky |
9401bb1 |
Source0: https://fedorahosted.org/released/FedoraReview/%{name}-%{version}%{?git_tag}.tar.gz
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
f25f398 |
Patch1: 0001-deps-Handle-malformed-output-from-rpm-bz-1049042.patch
|
|
Stanislav Ochotnicky |
f25f398 |
Patch2: 0002-deps-Handle-malformed-output-from-rpm-part-2-bz-1049.patch
|
|
Stanislav Ochotnicky |
f25f398 |
Patch3: 0003-checks-Ensure-base-plugin-is-initiated-before-add-on.patch
|
|
Stanislav Ochotnicky |
f25f398 |
|
|
Stanislav Ochotnicky |
562f8c0 |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
909b653 |
BuildRequires: python-argparse
|
|
Stanislav Ochotnicky |
f71eb38 |
BuildRequires: python-BeautifulSoup
|
|
Stanislav Ochotnicky |
f71eb38 |
BuildRequires: python-bugzilla
|
|
Stanislav Ochotnicky |
f71eb38 |
BuildRequires: python-straight-plugin
|
|
Stanislav Ochotnicky |
909b653 |
BuildRequires: python-unittest2
|
|
Stanislav Ochotnicky |
f7d730d |
BuildRequires: python2-devel
|
|
Stanislav Ochotnicky |
f7d730d |
BuildRequires: rpm-python
|
|
Stanislav Ochotnicky |
f7d730d |
|
|
Stanislav Ochotnicky |
f7d730d |
Requires: fedora-packager
|
|
Stanislav Ochotnicky |
909b653 |
Requires: python-argparse
|
|
Stanislav Ochotnicky |
f71eb38 |
Requires: python-BeautifulSoup
|
|
Stanislav Ochotnicky |
f7d730d |
Requires: python-bugzilla
|
|
Stanislav Ochotnicky |
f71eb38 |
Requires: python-kitchen
|
|
Stanislav Ochotnicky |
f7d730d |
Requires: python-straight-plugin
|
|
Stanislav Ochotnicky |
f7d730d |
Requires: rpm-python
|
|
Stanislav Ochotnicky |
0cf9690 |
# licensecheck used to be in rpmdevtools, moved to devscripts later
|
|
Stanislav Ochotnicky |
0cf9690 |
# this is compatible with both situations without ifdefs
|
|
Stanislav Ochotnicky |
0cf9690 |
Requires: %{_bindir}/licensecheck
|
|
Stanislav Ochotnicky |
909b653 |
Requires: yum-utils
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
f7d730d |
# Let's be consistent with the name used on fedorahosted
|
|
Stanislav Ochotnicky |
f7d730d |
provides: FedoraReview = %{version}-%{release}
|
|
Stanislav Ochotnicky |
f7d730d |
|
|
Stanislav Ochotnicky |
0cf9690 |
Provides: %{name}-php-phpci = %{version}-%{release}
|
|
Stanislav Ochotnicky |
0cf9690 |
Obsoletes: %{name}-php-phpci < %{version}-%{release}
|
|
Stanislav Ochotnicky |
f7d730d |
|
|
Stanislav Ochotnicky |
562f8c0 |
%description
|
|
Stanislav Ochotnicky |
562f8c0 |
This tool automates much of the dirty work when reviewing a package
|
|
Stanislav Ochotnicky |
6008662 |
for the Fedora Package Collection like:
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
6008662 |
* Downloading SRPM & SPEC.
|
|
Stanislav Ochotnicky |
562f8c0 |
* Download upstream source
|
|
Stanislav Ochotnicky |
562f8c0 |
* Check md5sums
|
|
Stanislav Ochotnicky |
6008662 |
* Build and install package in mock.
|
|
Stanislav Ochotnicky |
6008662 |
* Run rpmlint.
|
|
Stanislav Ochotnicky |
6008662 |
* Generate a review template, which becomes the starting
|
|
Stanislav Ochotnicky |
6008662 |
point for the review work.
|
|
Stanislav Ochotnicky |
6008662 |
|
|
Stanislav Ochotnicky |
6008662 |
The tool is composed of a plugins, one for each supported language.
|
|
Stanislav Ochotnicky |
6008662 |
As of today, there is plugins for C/C++, Ruby, java, R, perl and
|
|
Stanislav Ochotnicky |
6008662 |
python. There is also support for external tests that can be written
|
|
Stanislav Ochotnicky |
6008662 |
in a simple way in bash.
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
9401bb1 |
%package tests
|
|
Stanislav Ochotnicky |
9401bb1 |
Summary: Test and test data files for fedora-review
|
|
Stanislav Ochotnicky |
9401bb1 |
Requires: %{name} = %{version}-%{release}
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
%description tests
|
|
Stanislav Ochotnicky |
9401bb1 |
Tests are packaged separately due to space concerns.
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
562f8c0 |
%prep
|
|
Stanislav Ochotnicky |
562f8c0 |
%setup -q
|
|
Stanislav Ochotnicky |
909b653 |
|
|
Stanislav Ochotnicky |
f25f398 |
%patch1 -p1
|
|
Stanislav Ochotnicky |
f25f398 |
%patch2 -p1
|
|
Stanislav Ochotnicky |
f25f398 |
%patch3 -p1
|
|
Stanislav Ochotnicky |
f25f398 |
|
|
Stanislav Ochotnicky |
562f8c0 |
%build
|
|
Stanislav Ochotnicky |
9401bb1 |
%{__python} setup.py --quiet build
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
%install
|
|
Stanislav Ochotnicky |
9401bb1 |
%{__python} setup.py --quiet install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
Stanislav Ochotnicky |
9401bb1 |
pkg_dir="$RPM_BUILD_ROOT/%{python_sitelib}/FedoraReview"
|
|
Stanislav Ochotnicky |
9401bb1 |
ln -s %{_datadir}/%{name}/scripts $pkg_dir/scripts
|
|
Stanislav Ochotnicky |
9401bb1 |
ln -s %{_datadir}/%{name}/plugins $pkg_dir/plugins
|
|
Stanislav Ochotnicky |
9401bb1 |
cd test
|
|
Stanislav Ochotnicky |
9401bb1 |
bash < restore-links.sh
|
|
Stanislav Ochotnicky |
9401bb1 |
rm restore-links.sh remember-links
|
|
Stanislav Ochotnicky |
9401bb1 |
cd ..
|
|
Stanislav Ochotnicky |
9401bb1 |
cp -ar test "$RPM_BUILD_ROOT%{_datadir}/%{name}"
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
%check
|
|
Stanislav Ochotnicky |
9401bb1 |
%if %{with tests}
|
|
Stanislav Ochotnicky |
9401bb1 |
cd test
|
|
Stanislav Ochotnicky |
9401bb1 |
export REVIEW_LOGLEVEL=warning
|
|
Stanislav Ochotnicky |
9401bb1 |
export MAKE_RELEASE=1
|
|
Stanislav Ochotnicky |
0cf9690 |
mock --quiet -r fedora-19-i386 --init
|
|
Stanislav Ochotnicky |
0cf9690 |
mock --quiet -r fedora-18-i386 --init
|
|
Stanislav Ochotnicky |
0cf9690 |
mock --quiet -r fedora-19-i386 --uniqueext=hugo --init
|
|
Stanislav Ochotnicky |
9401bb1 |
python -m unittest discover -f
|
|
Stanislav Ochotnicky |
9401bb1 |
%endif
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
%files
|
|
Stanislav Ochotnicky |
909b653 |
%doc COPYING AUTHORS README
|
|
Stanislav Ochotnicky |
562f8c0 |
%{python_sitelib}/*
|
|
Stanislav Ochotnicky |
562f8c0 |
%{_bindir}/fedora-review
|
|
Stanislav Ochotnicky |
9e89a97 |
%{_bindir}/fedora-create-review
|
|
Stanislav Ochotnicky |
922ef72 |
%{_bindir}/koji-download-scratch
|
|
Stanislav Ochotnicky |
562f8c0 |
%{_mandir}/man1/%{name}.1.*
|
|
Stanislav Ochotnicky |
9e89a97 |
%{_mandir}/man1/fedora-create-review.1.*
|
|
Stanislav Ochotnicky |
562f8c0 |
%dir %{_datadir}/%{name}
|
|
Stanislav Ochotnicky |
6008662 |
%{_datadir}/%{name}/plugins
|
|
Stanislav Ochotnicky |
6008662 |
%{_datadir}/%{name}/scripts
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
9401bb1 |
%files tests
|
|
Stanislav Ochotnicky |
9401bb1 |
%doc test/README.test
|
|
Stanislav Ochotnicky |
9401bb1 |
%{_datadir}/%{name}/test
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
%changelog
|
|
Stanislav Ochotnicky |
f25f398 |
* Mon Jan 13 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.1-2
|
|
Stanislav Ochotnicky |
f25f398 |
- Backport fixes for several bugs
|
|
Stanislav Ochotnicky |
f25f398 |
- Resolves: rhbz#1044580
|
|
Stanislav Ochotnicky |
f25f398 |
- Resolves: rhbz#1049042
|
|
Stanislav Ochotnicky |
f25f398 |
|
|
Stanislav Ochotnicky |
08bcfb3 |
* Fri Dec 13 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.1-1
|
|
Stanislav Ochotnicky |
08bcfb3 |
- Update to latest upstream (0.5.1)
|
|
Stanislav Ochotnicky |
08bcfb3 |
|
|
Stanislav Ochotnicky |
9fa511d |
* Tue Oct 15 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-3
|
|
Stanislav Ochotnicky |
9fa511d |
- Really use phpcompatinfo instead of phpci
|
|
Stanislav Ochotnicky |
9fa511d |
|
|
Stanislav Ochotnicky |
0cf9690 |
* Mon Oct 14 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-2
|
|
Stanislav Ochotnicky |
0cf9690 |
- Fix requires for licensecheck (#1016309)
|
|
Stanislav Ochotnicky |
0cf9690 |
- Remove separate php plugin subpackage (#971875)
|
|
Stanislav Ochotnicky |
0cf9690 |
|
|
Stanislav Ochotnicky |
909b653 |
* Fri Aug 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.0-1
|
|
Stanislav Ochotnicky |
909b653 |
- Updating to upstream 0.5.0
|
|
Stanislav Ochotnicky |
909b653 |
|
|
|
91bbeee |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-4
|
|
|
91bbeee |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
91bbeee |
|
|
|
4b66810 |
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.4.1-3
|
|
|
4b66810 |
- Perl 5.18 rebuild
|
|
|
4b66810 |
|
|
Stanislav Ochotnicky |
892c3a8 |
* Thu May 30 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.4.1-2
|
|
Stanislav Ochotnicky |
892c3a8 |
- Backport fix for #967571
|
|
Stanislav Ochotnicky |
892c3a8 |
|
|
Stanislav Ochotnicky |
4994ec4 |
* Mon Apr 29 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.4.1-1
|
|
Stanislav Ochotnicky |
4994ec4 |
- Update to latest upstream version
|
|
Stanislav Ochotnicky |
4994ec4 |
|
|
Stanislav Ochotnicky |
327c404 |
* Tue Feb 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.4.0-4
|
|
Stanislav Ochotnicky |
327c404 |
- Fix rhbz912182
|
|
Stanislav Ochotnicky |
327c404 |
- Reorganize patches a bit
|
|
Stanislav Ochotnicky |
327c404 |
|
|
Stanislav Ochotnicky |
4ce9f38 |
* Fri Feb 8 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.4.0-3
|
|
Stanislav Ochotnicky |
4ce9f38 |
- Fix rhbz908830 and rhbz908830
|
|
Stanislav Ochotnicky |
4ce9f38 |
- Add patch for REVIEW_NO_MOCKGROUP_TEST environment variable
|
|
Stanislav Ochotnicky |
4ce9f38 |
- Remove old patch
|
|
Stanislav Ochotnicky |
4ce9f38 |
|
|
|
c2e099b |
* Mon Feb 04 2013 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.4.0-2
|
|
|
c2e099b |
- Add Patch0 (0001-Fix-syntax-error.patch) from Ralph Bean fixing fedora-create-review
|
|
|
c2e099b |
|
|
Stanislav Ochotnicky |
9401bb1 |
* Mon Jan 28 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.4.0-1
|
|
Stanislav Ochotnicky |
9401bb1 |
- Updating to upstream 0.4.0
|
|
Stanislav Ochotnicky |
9401bb1 |
|
|
|
9cbf0b3 |
* Wed Nov 07 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.3.1-3
|
|
|
9cbf0b3 |
- Backport from upstream's git fix to RHBZ#874246 (Patch0)
|
|
|
9cbf0b3 |
|
|
Stanislav Ochotnicky |
33b778c |
* Thu Oct 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.1-2
|
|
Stanislav Ochotnicky |
33b778c |
- Add symlink to scripts directory so they are loaded
|
|
Stanislav Ochotnicky |
33b778c |
|
|
Stanislav Ochotnicky |
6008662 |
* Tue Sep 25 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.1-1
|
|
Stanislav Ochotnicky |
6008662 |
- Update to lastest upstream (0.3.1)
|
|
Stanislav Ochotnicky |
6008662 |
- Fix loading of system-wide plugins
|
|
Stanislav Ochotnicky |
6008662 |
- Add back suport for EL6
|
|
Stanislav Ochotnicky |
6008662 |
|
|
Stanislav Ochotnicky |
f7d730d |
* Mon Sep 24 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.3.0-1
|
|
Stanislav Ochotnicky |
f7d730d |
- Update to lastest upstream (0.3.0)
|
|
Stanislav Ochotnicky |
f7d730d |
- Remove no longer needed build workarounds
|
|
Stanislav Ochotnicky |
f7d730d |
|
|
Stanislav Ochotnicky |
922ef72 |
* Thu Aug 9 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.2.2-1
|
|
Stanislav Ochotnicky |
922ef72 |
- Update to lastest upstream (0.2.2)
|
|
Stanislav Ochotnicky |
922ef72 |
- Add koji-download-scratch script
|
|
Stanislav Ochotnicky |
922ef72 |
|
|
|
1020293 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
|
|
|
1020293 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1020293 |
|
|
Stanislav Ochotnicky |
f71eb38 |
* Wed Jul 11 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.2.0-1
|
|
Stanislav Ochotnicky |
f71eb38 |
- Update to latest release (0.2.0)
|
|
Stanislav Ochotnicky |
f71eb38 |
|
|
Stanislav Ochotnicky |
883e4c9 |
* Fri Feb 24 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1.3-1
|
|
Stanislav Ochotnicky |
883e4c9 |
- Update to latest bugfix release
|
|
Stanislav Ochotnicky |
883e4c9 |
|
|
Stanislav Ochotnicky |
9e89a97 |
* Fri Jan 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1.2-1
|
|
Stanislav Ochotnicky |
9e89a97 |
- Update to latest bugfix release
|
|
Stanislav Ochotnicky |
9e89a97 |
- Add fedora-create-review script
|
|
Stanislav Ochotnicky |
9e89a97 |
|
|
|
cbd2874 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
|
|
|
cbd2874 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
cbd2874 |
|
|
|
1f5a2f1 |
* Wed Jan 11 2012 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.1-2
|
|
|
1f5a2f1 |
- Add wget as requires
|
|
|
1f5a2f1 |
|
|
Stanislav Ochotnicky |
eab9bf6 |
* Wed Nov 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1.1-1
|
|
Stanislav Ochotnicky |
eab9bf6 |
- New upstream bugfix release
|
|
Stanislav Ochotnicky |
eab9bf6 |
|
|
Stanislav Ochotnicky |
562f8c0 |
* Wed Nov 16 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.1.0-2
|
|
Stanislav Ochotnicky |
562f8c0 |
- Remove things not needed in el6+
|
|
Stanislav Ochotnicky |
562f8c0 |
|
|
Stanislav Ochotnicky |
562f8c0 |
* Thu Nov 10 2011 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.0-1
|
|
Stanislav Ochotnicky |
562f8c0 |
- Initial packaging work for Fedora
|