|
Pierre-Yves Chibon |
bf7b1c |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from
|
|
Pierre-Yves Chibon |
bf7b1c |
%distutils.sysconfig import get_python_lib; print (get_python_lib())")}
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
Name: progit
|
|
Pierre-Yves Chibon |
bf7b1c |
Version: 0.0
|
|
Pierre-Yves Chibon |
bf7b1c |
Release: 1.20141008%{?dist}
|
|
Pierre-Yves Chibon |
bf7b1c |
Summary: A git-centered forge
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
License: GPLv2+
|
|
Pierre-Yves Chibon |
bf7b1c |
URL: http://fedorahosted.org/progit/
|
|
Pierre-Yves Chibon |
bf7b1c |
Source0: https://fedorahosted.org/releases/p/r/progit/%{name}-%{version}.tar.gz
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildArch: noarch
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python2-devel
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-setuptools
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-nose
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-alembic
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-arrow
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-docutils
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-flask
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-flask-wtf
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-markdown
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-psutil
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-pygit2 >= 0.20.1
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-pygments
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-fedora
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-openid
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-openid-cla
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-openid-teams
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-straight-plugin
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-wtforms
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
# EPEL6
|
|
Pierre-Yves Chibon |
bf7b1c |
%if ( 0%{?rhel} && 0%{?rhel} == 6 )
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-sqlalchemy0.8
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-sqlalchemy0.8
|
|
Pierre-Yves Chibon |
bf7b1c |
%else
|
|
Pierre-Yves Chibon |
bf7b1c |
BuildRequires: python-sqlalchemy > 0.8
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-sqlalchemy > 0.8
|
|
Pierre-Yves Chibon |
bf7b1c |
%endif
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-alembic
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-arrow
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-docutils
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-flask
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-flask-wtf
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-markdown
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-psutil
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-pygit2 >= 0.20.1
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-pygments
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-fedora
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-openid
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-openid-cla
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-openid-teams
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-straight-plugin
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: python-wtforms
|
|
Pierre-Yves Chibon |
bf7b1c |
Requires: mod_wsgi
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%description
|
|
Pierre-Yves Chibon |
bf7b1c |
ProGit is a light-weight git-centered forge based on pygit2.
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
Currently, ProGit offers a decent web-interface for git repositories, a
|
|
Pierre-Yves Chibon |
bf7b1c |
simplistic ticket system (that needs improvements) and possibilities to
|
|
Pierre-Yves Chibon |
bf7b1c |
create new projects, fork existing ones and create/merge pull-requests
|
|
Pierre-Yves Chibon |
bf7b1c |
across or within projects.
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%prep
|
|
Pierre-Yves Chibon |
bf7b1c |
%setup -q
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%build
|
|
Pierre-Yves Chibon |
bf7b1c |
%{__python} setup.py build
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%install
|
|
Pierre-Yves Chibon |
bf7b1c |
rm -rf $RPM_BUILD_ROOT
|
|
Pierre-Yves Chibon |
bf7b1c |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
# Install apache configuration file
|
|
Pierre-Yves Chibon |
bf7b1c |
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/
|
|
Pierre-Yves Chibon |
bf7b1c |
install -m 644 files/progit.conf $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/progit.conf
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
# Install configuration file
|
|
Pierre-Yves Chibon |
bf7b1c |
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/progit
|
|
Pierre-Yves Chibon |
bf7b1c |
install -m 644 files/progit.cfg.sample $RPM_BUILD_ROOT/%{_sysconfdir}/progit/progit.cfg
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
# Install WSGI file
|
|
Pierre-Yves Chibon |
bf7b1c |
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/progit
|
|
Pierre-Yves Chibon |
f7804e |
install -m 644 files/progit.wsgi $RPM_BUILD_ROOT/%{_datadir}/progit/progit.wsgi
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
# Install the createdb script
|
|
Pierre-Yves Chibon |
bf7b1c |
install -m 644 createdb.py $RPM_BUILD_ROOT/%{_datadir}/progit/progit_createdb.py
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%files
|
|
Pierre-Yves Chibon |
bf7b1c |
%doc README.rst LICENSE
|
|
Pierre-Yves Chibon |
bf7b1c |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/progit.conf
|
|
Pierre-Yves Chibon |
bf7b1c |
%config(noreplace) %{_sysconfdir}/progit/progit.cfg
|
|
Pierre-Yves Chibon |
bf7b1c |
%dir %{_sysconfdir}/progit/
|
|
Pierre-Yves Chibon |
bf7b1c |
%{_datadir}/progit/
|
|
Pierre-Yves Chibon |
bf7b1c |
%{python_sitelib}/progit/
|
|
Pierre-Yves Chibon |
bf7b1c |
%{python_sitelib}/progit*.egg-info
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
|
|
Pierre-Yves Chibon |
bf7b1c |
%changelog
|
|
Pierre-Yves Chibon |
bf7b1c |
* Wed Oct 08 2014 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0-1.20141008</pingou@pingoured.fr>
|
|
Pierre-Yves Chibon |
bf7b1c |
- Initial packaging work for Fedora
|