File python-reviewboard.spec of Package python-reviewboard
#
# spec file for package python-reviewboard
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-reviewboard
Summary: Web-based code review tool
License: MIT
Group: Productivity/Networking/Web/Frontends
Version: 1.6.6
Release: 0
Url: http://www.review-board.org
Source0: ReviewBoard-%{version}.tar.gz
%if %{?suse_version} >= 1120
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: -post-build-checks
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools >= 0.6c11
Requires: apache2
Requires: apache2-mod_wsgi
Requires: patch
Requires: patchutils
Requires: python-Djblets >= 0.6.16
Requires: python-django >= 1.3.1
Requires: python-django-evolution >= 0.6.5
Requires: python-flup
Requires: python-memcached
Requires: python-paramiko >= 1.7.6
Requires: python-pygments >= 1.4
Requires: python-python-dateutil == 1.5
Requires: python-recaptcha
Requires: python-tz
# for using memcached
Recommends: memcached
# for AD connection
Recommends: python-ldap
Recommends: python-pydns
# for subversion
Recommends: python-pysvn
# since 1.6.5 (see ChangeLog)
Conflicts: python-django >= 1.4
%{py_requires}
%description
Review Board is a powerful web-based code review tool that offers
developers an easy way to handle code reviews. It scales well from small
projects to large companies and offers a variety of tools to take much
of the stress and time out of the code review process.
%prep
%setup -n ReviewBoard-%{version}
# prepare releasenotes files
mkdir ReleaseNotes
pushd ReleaseNotes
cp -a ../docs/releasenotes/reviewboard/1.6*.txt .
popd
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=filelist
%fdupes %{buildroot}%{py_sitedir}
%clean
rm -rf %{buildroot}
%files -f filelist
%defattr(-,root,root)
%doc AUTHORS COPYING INSTALL NEWS README
%doc ReleaseNotes
%changelog