Blame files/pagure.spec

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 fe5017
Name:           pagure
Pierre-Yves Chibon 92d0cb
Version:        0.1.7
Pierre-Yves Chibon 3a9067
Release:        1%{?dist}
Pierre-Yves Chibon bf7b1c
Summary:        A git-centered forge
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
License:        GPLv2+
Pierre-Yves Chibon fe5017
URL:            http://fedorahosted.org/pagure/
Pierre-Yves Chibon 291600
Source0:        https://fedorahosted.org/releases/p/a/pagure/%{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 d2eff7
BuildRequires:  python-blinker
Pierre-Yves Chibon d2eff7
BuildRequires:  python-chardet
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 0fb5f1
BuildRequires:  python-munch
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 d2eff7
Requires:  python-blinker
Pierre-Yves Chibon d2eff7
Requires:  python-chardet
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 0fb5f1
Requires:  python-munch
Pierre-Yves Chibon bf7b1c
Requires:  mod_wsgi
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon e0049f
# No dependency of the app per se, but required to make it working.
Pierre-Yves Chibon d4a7e7
Requires:  gitolite3
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon bf7b1c
%description
Pierre-Yves Chibon fe5017
Pagure is a light-weight git-centered forge based on pygit2.
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon fe5017
Currently, Pagure offers a web-interface for git repositories, a ticket
Pierre-Yves Chibon fe5017
system and possibilities to create new projects, fork existing ones and
Pierre-Yves Chibon fe5017
create/merge pull-requests across or within projects.
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon fcdeaa
%package milters
Pierre-Yves Chibon e0049f
Summary:            Milter to integrate pagure with emails
Pierre-Yves Chibon e0049f
BuildArch:          noarch
Pierre-Yves Chibon e0049f
BuildRequires:      python-pymilter
Pierre-Yves Chibon e0049f
BuildRequires:      systemd-devel
Pierre-Yves Chibon e0049f
Requires:           python-pymilter
Pierre-Yves Chibon e0049f
Requires(post):     systemd
Pierre-Yves Chibon e0049f
Requires(preun):    systemd
Pierre-Yves Chibon e0049f
Requires(postun):   systemd
Pierre-Yves Chibon fcdeaa
# It would work with sendmail but we configure things (like the tempfile)
Pierre-Yves Chibon fcdeaa
# to work with postfix
Pierre-Yves Chibon e0049f
Requires:           postfix
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
%description milters
Pierre-Yves Chibon fcdeaa
Milters (Mail filters) allowing the integration of pagure and emails.
Pierre-Yves Chibon fcdeaa
This is useful for example to allow commenting on a ticket by email.
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
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 e0049f
%{__python2} setup.py build
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
%install
Pierre-Yves Chibon e0049f
%{__python2} 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 fe5017
install -m 644 files/pagure.conf $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/pagure.conf
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
# Install configuration file
Pierre-Yves Chibon fe5017
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/pagure
Pierre-Yves Chibon fe5017
install -m 644 files/pagure.cfg.sample $RPM_BUILD_ROOT/%{_sysconfdir}/pagure/pagure.cfg
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
# Install WSGI file
Pierre-Yves Chibon fe5017
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pagure
Pierre-Yves Chibon fe5017
install -m 644 files/pagure.wsgi $RPM_BUILD_ROOT/%{_datadir}/pagure/pagure.wsgi
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
# Install the createdb script
Pierre-Yves Chibon fe5017
install -m 644 createdb.py $RPM_BUILD_ROOT/%{_datadir}/pagure/pagure_createdb.py
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon fcdeaa
# Install the milter files
Pierre-Yves Chibon fcdeaa
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/run/pagure
Pierre-Yves Chibon fcdeaa
mkdir -p $RPM_BUILD_ROOT/%{_tmpfilesdir}
Pierre-Yves Chibon fcdeaa
mkdir -p $RPM_BUILD_ROOT/%{_unitdir}
Pierre-Yves Chibon fcdeaa
install -m 0644 milters/milter_tempfile.conf \
Pierre-Yves Chibon fcdeaa
    $RPM_BUILD_ROOT/%{_tmpfilesdir}/%{name}-milter.conf
Pierre-Yves Chibon fcdeaa
install -m 644 milters/pagure_milter.service \
Pierre-Yves Chibon fcdeaa
    $RPM_BUILD_ROOT/%{_unitdir}/pagure_milter.service
Pierre-Yves Chibon 6245ad
install -m 644 milters/comment_email_milter.py \
Pierre-Yves Chibon 6245ad
    $RPM_BUILD_ROOT/%{_datadir}/pagure/comment_email_milter.py
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon e0049f
%post milters
Pierre-Yves Chibon e0049f
%systemd_post pagure_milter.service
Pierre-Yves Chibon e0049f
Pierre-Yves Chibon e0049f
%preun milters
Pierre-Yves Chibon e0049f
%systemd_preun pagure_milter.service
Pierre-Yves Chibon e0049f
Pierre-Yves Chibon e0049f
%postun milters
Pierre-Yves Chibon e0049f
%systemd_postun_with_restart pagure_milter.service
Pierre-Yves Chibon e0049f
Pierre-Yves Chibon e0049f
Pierre-Yves Chibon bf7b1c
%files
Pierre-Yves Chibon e0049f
%doc README.rst
Pierre-Yves Chibon e0049f
%license LICENSE
Pierre-Yves Chibon fe5017
%config(noreplace) %{_sysconfdir}/httpd/conf.d/pagure.conf
Pierre-Yves Chibon fe5017
%config(noreplace) %{_sysconfdir}/pagure/pagure.cfg
Pierre-Yves Chibon fe5017
%dir %{_sysconfdir}/pagure/
Pierre-Yves Chibon 6245ad
%dir %{_datadir}/pagure/
Pierre-Yves Chibon 6245ad
%{_datadir}/pagure/pagure*
Pierre-Yves Chibon fe5017
%{python_sitelib}/pagure/
Pierre-Yves Chibon fe5017
%{python_sitelib}/pagure*.egg-info
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon bf7b1c
Pierre-Yves Chibon fcdeaa
%files milters
Pierre-Yves Chibon e0049f
%license LICENSE
Pierre-Yves Chibon fcdeaa
%attr(755,postfix,postfix) %dir %{_localstatedir}/run/pagure
Pierre-Yves Chibon 6245ad
%dir %{_datadir}/pagure/
Pierre-Yves Chibon fcdeaa
%{_tmpfilesdir}/%{name}-milter.conf
Pierre-Yves Chibon fcdeaa
%{_unitdir}/pagure_milter.service
Pierre-Yves Chibon ff78aa
%{_datadir}/pagure/comment_email_milter.py*
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon fcdeaa
Pierre-Yves Chibon bf7b1c
%changelog
Pierre-Yves Chibon 92d0cb
* Fri May 22 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.7-1</pingou@pingoured.fr>
Pierre-Yves Chibon 92d0cb
- Update to 0.1.7
Pierre-Yves Chibon 92d0cb
- Drop debugging code on the milter and the hooks
Pierre-Yves Chibon 92d0cb
- Adjust the search_issues method to support filter for some tags, excluding
Pierre-Yves Chibon 92d0cb
  some others (for example ?tags=easfix&tags=!0.2)
Pierre-Yves Chibon 92d0cb
- Support groups when searching an user's projects (ie: finding the projects an
Pierre-Yves Chibon 92d0cb
  user has access to via the group their are in)
Pierre-Yves Chibon 92d0cb
- Do not load the git repo from the FS when loading an user's page
Pierre-Yves Chibon 92d0cb
- Present and document the SSH keys in a dedicated documentation page
Pierre-Yves Chibon 92d0cb
Pierre-Yves Chibon ea4656
* Wed May 20 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.6-1</pingou@pingoured.fr>
Pierre-Yves Chibon ea4656
- Update to 0.1.6
Pierre-Yves Chibon ea4656
- Fix sending notification emails to multiple users, avoid sending private into
Pierre-Yves Chibon ea4656
  to all of them
Pierre-Yves Chibon ea4656
Pierre-Yves Chibon bb841e
* Tue May 19 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.5-1</pingou@pingoured.fr>
Pierre-Yves Chibon bb841e
- Update to 0.1.5
Pierre-Yves Chibon bb841e
- Bug fix on the milter and the internal API endpoint
Pierre-Yves Chibon bb841e
Pierre-Yves Chibon c2f959
* Tue May 19 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.4-1</pingou@pingoured.fr>
Pierre-Yves Chibon c2f959
- Update to 0.1.4
Pierre-Yves Chibon c2f959
- Fix loading requests and tickets from git (allows syncing projects between
Pierre-Yves Chibon c2f959
  pagure instances)
Pierre-Yves Chibon c2f959
- Add to the template .wsgi file a way to re-locate the tmp folder to work
Pierre-Yves Chibon c2f959
  around a bug in libgit2
Pierre-Yves Chibon c2f959
- Fix unit-tests suite
Pierre-Yves Chibon c2f959
- Adjust the spec file to install all the files required for the milters
Pierre-Yves Chibon c2f959
- Fix the `View` button on the pull-request pages
Pierre-Yves Chibon c2f959
Pierre-Yves Chibon 3a9067
* Wed May 13 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.3-1</pingou@pingoured.fr>
Pierre-Yves Chibon 3a9067
- Update to 0.1.3
Pierre-Yves Chibon 3a9067
- Add support for gitolite3
Pierre-Yves Chibon 3a9067
- Fix unit-tests suite to work on jenkins
Pierre-Yves Chibon 3a9067
Pierre-Yves Chibon e0049f
* Sat May 09 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.2-2</pingou@pingoured.fr>
Pierre-Yves Chibon e0049f
- Fix the Requires on the milter subpackage (adding: post, preun and postun)
Pierre-Yves Chibon e0049f
- Add systemd scriptlet to restart the service gracefully
Pierre-Yves Chibon e0049f
- Use versioned python macro (py2)
Pierre-Yves Chibon e0049f
- Ship the license in the milter subpackage as well
Pierre-Yves Chibon e0049f
- Use the %%license macro
Pierre-Yves Chibon e0049f
Pierre-Yves Chibon f4cd85
* Thu May 07 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.2-1</pingou@pingoured.fr>
Pierre-Yves Chibon f4cd85
- Update to 0.1.2
Pierre-Yves Chibon f4cd85
- Fix bug in the fedmsg hook file (Thanks Zbigniew Jędrzejewski-Szmek)
Pierre-Yves Chibon f4cd85
Pierre-Yves Chibon 8b1c32
* Wed May 06 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1.1-1</pingou@pingoured.fr>
Pierre-Yves Chibon 8b1c32
- Update to 0.1.1
Pierre-Yves Chibon 8b1c32
- Port to python-munch and list it in the dependencies
Pierre-Yves Chibon 8b1c32
- Fix exporting patch when they contain unicode characters or accent
Pierre-Yves Chibon 8b1c32
- After creating an issue, user is brought back to the new issue page
Pierre-Yves Chibon 8b1c32
- Fix unit-tests
Pierre-Yves Chibon 8b1c32
- Stop the pagure hook if the user is deleting a branch (no need to run through
Pierre-Yves Chibon 8b1c32
  all the commits of that branch)
Pierre-Yves Chibon 8b1c32
- Fix the requirements.txt file (Sayan Chowdhury)
Pierre-Yves Chibon 8b1c32
- Fix the tree page to show the commit sha on its proper line (Sayan Chowdhury)
Pierre-Yves Chibon 8b1c32
- Fix typo in the form of some of the plugin (Sayan Chowdhury)
Pierre-Yves Chibon 8b1c32
- Improve the README (Sayan Chowdhury)
Pierre-Yves Chibon 8b1c32
- Fix highlighting the commits tab when accessing it (Sayan Chowdhury)
Pierre-Yves Chibon 8b1c32
Pierre-Yves Chibon 291600
* Mon May 04 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.1-1</pingou@pingoured.fr>
Pierre-Yves Chibon 291600
- First official release: 0.1
Pierre-Yves Chibon 291600
Pierre-Yves Chibon 669904
* Thu Apr 02 2015 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.0-1.20150402</pingou@pingoured.fr>
Pierre-Yves Chibon 669904
- Cut a RPM for testing on Thu Apr 2nd 2015
Pierre-Yves Chibon 669904
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