Blame module-build-service.spec

73bd166
Name:           module-build-service
73bd166
Version:        1.3.26
73bd166
Release:        3%{?dist}
73bd166
Summary:        The Module Build Service for Modularity
84ddd55
4c81418
73bd166
Group:          Development/Tools
73bd166
License:        MIT
73bd166
URL:            https://pagure.io/fm-orchestrator
73bd166
Source0:        https://files.pythonhosted.org/packages/source/m/%{name}/%{name}-%{version}.tar.gz
73bd166
Patch0:         mbs-no-mbsbuild.patch
73bd166
Patch1:         mbs-build-trailing-slash.patch
84ddd55
5dafa34
%if 0%{?rhel} && 0%{?rhel} <= 7
5dafa34
# In EL7 we need flask which needs python-itsdangerous which comes from
5dafa34
# rhel7-extras which is only available on x86_64 for now.
73bd166
ExclusiveArch:  %{ix86} x86_64
5dafa34
%else
73bd166
BuildArch:      noarch
5dafa34
%endif
84ddd55
73bd166
BuildRequires:  python2-devel
73bd166
73bd166
BuildRequires:  python2-mock
73bd166
BuildRequires:  python-vcrpy
73bd166
BuildRequires:  fedmsg
73bd166
BuildRequires:  git
73bd166
BuildRequires:  help2man
73bd166
BuildRequires:  kobo
73bd166
BuildRequires:  kobo-rpmlib
73bd166
73bd166
BuildRequires:  m2crypto
73bd166
BuildRequires:  mock
73bd166
BuildRequires:  python2-pdc-client
73bd166
BuildRequires:  python2-dogpile-cache
73bd166
BuildRequires:  python-fedora
73bd166
BuildRequires:  python-flask-script
73bd166
BuildRequires:  python-httplib2
73bd166
BuildRequires:  python-m2ext
73bd166
BuildRequires:  python-munch
73bd166
BuildRequires:  python2-funcsigs
73bd166
BuildRequires:  python2-modulemd >= 1.1.0
73bd166
BuildRequires:  rpm-build
73bd166
BuildRequires:  python-qpid
73bd166
BuildRequires:  python-openidc-client
73bd166
BuildRequires:  python-urlgrabber
84ddd55
73bd166
BuildRequires:  python2-koji
c67d405
d6a3534
%if 0%{?rhel} && 0%{?rhel} <= 7
73bd166
BuildRequires:  python-setuptools
73bd166
BuildRequires:  python-flask-sqlalchemy
73bd166
BuildRequires:  python-flask-migrate
73bd166
BuildRequires:  python-nose
73bd166
BuildRequires:  python-mock
73bd166
BuildRequires:  python-six
73bd166
BuildRequires:  pyOpenSSL
73bd166
BuildRequires:  python-sqlalchemy
73bd166
BuildRequires:  python-futures
73bd166
BuildRequires:  python-flask
73bd166
BuildRequires:  systemd-python
d6a3534
%else
73bd166
BuildRequires:  python2-setuptools
73bd166
BuildRequires:  python2-flask-sqlalchemy
73bd166
BuildRequires:  python2-flask-migrate
73bd166
BuildRequires:  python2-nose
73bd166
BuildRequires:  python2-mock
73bd166
BuildRequires:  python2-tabulate
73bd166
BuildRequires:  python2-six
73bd166
BuildRequires:  python2-futures
73bd166
BuildRequires:  python2-flask
73bd166
BuildRequires:  python2-systemd
4a816fa
09c13a8
%if 0%{?fedora} && 0%{?fedora} <= 25
73bd166
BuildRequires:  pyOpenSSL
73bd166
BuildRequires:  python-sqlalchemy
4a816fa
%else
73bd166
BuildRequires:  python2-pyOpenSSL
73bd166
BuildRequires:  python2-sqlalchemy
4a816fa
%endif
4a816fa
d6a3534
%endif
d6a3534
73bd166
BuildRequires:  systemd
84ddd55
73bd166
Requires:       systemd
73bd166
Requires:       fedmsg
73bd166
Requires:       fedmsg-hub
73bd166
Requires:       fedpkg
73bd166
Requires:       git
73bd166
Requires:       kobo
73bd166
Requires:       kobo-rpmlib
73bd166
Requires:       m2crypto
73bd166
Requires:       mock
73bd166
Requires:       python2-pdc-client
73bd166
Requires:       pyOpenSSL
73bd166
Requires:       python-fedora
73bd166
Requires:       python-flask-script
73bd166
Requires:       python-httplib2
73bd166
Requires:       python-m2ext
73bd166
Requires:       python-munch
73bd166
Requires:       python2-funcsigs
73bd166
Requires:       python2-modulemd >= 1.1.0
73bd166
Requires:       rpm-build
73bd166
Requires:       python-qpid
73bd166
Requires:       python-openidc-client
73bd166
Requires:       python-urlgrabber
73bd166
Requires:       python2-dogpile-cache
84ddd55
168914f
Requires:       python2-koji
168914f
90f3f4c
# https://bugzilla.redhat.com/show_bug.cgi?id=1466792
73bd166
Requires:       mock-scm
90f3f4c
d6a3534
%if 0%{?rhel} && 0%{?rhel} <= 7
73bd166
Requires:       python-flask-sqlalchemy
73bd166
Requires:       python-flask-migrate
73bd166
Requires:       python-mock
73bd166
Requires:       python-six
73bd166
Requires:       pyOpenSSL
73bd166
Requires:       python-sqlalchemy
73bd166
Requires:       python-futures
73bd166
Requires:       python-flask
73bd166
Requires:       systemd-python
4a816fa
%else
73bd166
Requires:       python2-flask-sqlalchemy
73bd166
Requires:       python2-flask-migrate
73bd166
Requires:       python2-mock
73bd166
Requires:       python2-systemd
73bd166
Requires:       python2-six
73bd166
Requires:       python2-futures
73bd166
Requires:       python2-flask
73bd166
Requires:       python2-tabulate
4a816fa
09c13a8
%if 0%{?fedora} && 0%{?fedora} <= 25
73bd166
Requires:       pyOpenSSL
73bd166
Requires:       python-sqlalchemy
d6a3534
%else
73bd166
Requires:       python2-pyOpenSSL
73bd166
Requires:       python2-sqlalchemy
4a816fa
%endif
4a816fa
d6a3534
%endif
d6a3534
84ddd55
84ddd55
%description
7317892
The Module Build Service (MBS) coordinates module builds and is responsible
7317892
for a number of tasks:
84ddd55
84ddd55
- Providing an interface for module client-side tooling via which module build
84ddd55
  submission and build state queries are possible.
84ddd55
- Verifying the input data (modulemd, RPM SPEC files and others) is available
84ddd55
  and correct.
84ddd55
- Preparing the build environment in the supported build systems, such as koji.
84ddd55
- Scheduling and building of the module components and tracking the build
84ddd55
  state.
84ddd55
- Emitting bus messages about all state changes so that other infrastructure
84ddd55
  services can pick up the work.
84ddd55
84ddd55
84ddd55
%prep
84ddd55
%setup -q
66e2490
%if 0%{?rhel} && 0%{?rhel} <= 7
dc006fc
%patch0 -p1
66e2490
%endif
84ddd55
800f691
%patch1 -p1
800f691
84ddd55
%build
84ddd55
%py2_build
84ddd55
7317892
84ddd55
%install
84ddd55
%py2_install
35014af
177e09c
export PYTHONPATH=%{buildroot}%{python2_sitelib}
177e09c
mkdir -p %{buildroot}/%{_mandir}/man1
177e09c
for command in mbs-manager mbs-frontend mbs-gencert mbs-upgradedb ; do
e03859a
MBS_CONFIG_FILE=conf/config.py %{buildroot}/%{_bindir}/$command --help || true
e0b83be
MBS_CONFIG_FILE=conf/config.py help2man -N --version-string=%{version} \
73bd166
    %{buildroot}/%{_bindir}/$command > \
73bd166
    %{buildroot}/%{_mandir}/man1/$command.1
177e09c
done
84ddd55
35014af
d73b095
# Still failing https://pagure.io/fm-orchestrator/issue/381
d73b095
#%check
d73b095
#nosetests-2.7 -v
7317892
84ddd55
84ddd55
%files
84ddd55
%doc README.rst
84ddd55
%license LICENSE
84ddd55
%{python2_sitelib}/module_build_service*
84ddd55
%{_bindir}/mbs-*
177e09c
%{_mandir}/man1/mbs-*.1*
84ddd55
%dir %{_sysconfdir}/module-build-service
84ddd55
%config(noreplace) %{_sysconfdir}/module-build-service/config.py
84ddd55
%config(noreplace) %{_sysconfdir}/module-build-service/koji.conf
84ddd55
%config(noreplace) %{_sysconfdir}/module-build-service/copr.conf
7317892
%config(noreplace) %{_sysconfdir}/module-build-service/cacert.pem
35014af
%config(noreplace) %{_sysconfdir}/fedmsg.d/mbs-scheduler.py
84ddd55
%config(noreplace) %{_sysconfdir}/fedmsg.d/mbs-logging.py
84ddd55
%config(noreplace) %{_sysconfdir}/fedmsg.d/module_build_service.py
84ddd55
%exclude %{_sysconfdir}/module-build-service/*.py[co]
84ddd55
%exclude %{_sysconfdir}/fedmsg.d/*.py[co]
84ddd55
%exclude %{python2_sitelib}/conf/
84ddd55
%exclude %{python2_sitelib}/tests/
84ddd55
84ddd55
%changelog
c1ef5c1
* Fri Aug 18 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.26-3
c1ef5c1
- add missing dependency on python2-dogpile-cache
c1ef5c1
800f691
* Thu Aug 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.26-2
800f691
- fix mbs-build issue with trailing slash in REST API url
800f691
e03859a
* Thu Aug 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.26-1
e03859a
- new version
e03859a
90f3f4c
* Fri Aug 11 2017 Ralph Bean <rbean@redhat.com> - 1.3.25-5
90f3f4c
- Require mock-scm for local builds.
90f3f4c
e01f69c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.25-4
e01f69c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e01f69c
04667d9
* Mon Jul 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.25-3
04667d9
- fix typo in spec file
04667d9
c67d405
* Mon Jul 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.25-2
c67d405
- fix dependency on koji
c67d405
4a816fa
* Mon Jul 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.25-1
4a816fa
- new version
4a816fa
06472ac
* Tue Jul 11 2017 Ralph Bean <rbean@redhat.com> - 1.3.24-3
06472ac
- Fix the runtime dep for pdc-client.
06472ac
4a816fa
* Tue Jun 27 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.24-2
ac85250
- Fix the pdc-client dependency
ac85250
4a816fa
* Tue Jun 27 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.24-1
66d99fd
- new version
66d99fd
b53c0aa
* Mon Jun 05 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.23-5
b53c0aa
- Fix the components reuse if database returns them in different order
b53c0aa
fe51ec6
* Mon Jun 05 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.23-4
fe51ec6
- Tag the untagged artifacts when returning their build_id
fe51ec6
2354959
* Mon Jun 05 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.23-3
2354959
- correct the patch from previous commit
2354959
b70930f
* Mon Jun 05 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.23-2
b70930f
- fix bug when untagged builds couldn't be find in Koji
b70930f
9e12c96
* Wed May 31 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.23-1
9e12c96
- new version
9e12c96
66e2490
* Thu May 25 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.22-3
66e2490
- Use the same spec file for both epel7 and fedora
66e2490
a931b7e
* Tue May 16 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.22-2
a931b7e
- fix reusing all components
a931b7e
dc006fc
* Fri May 12 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.22-1
dc006fc
- new version
dc006fc
c01909e
* Fri Apr 07 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.20-1
c01909e
- new version
c01909e
bd6ffaa
* Fri Apr 07 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.18-1
bd6ffaa
- new version
bd6ffaa
6813e83
* Thu Apr 06 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.17-1
6813e83
- new version
6813e83
Petr Šabata 74c30e6
* Sat Mar 25 2017 Petr Šabata <contyk@redhat.com> - 1.3.16-2
Petr Šabata 74c30e6
- Adding a missing runtime dependency, fedpkg
Petr Šabata 74c30e6
59a50c1
* Thu Mar 23 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.16-1
59a50c1
- new version
59a50c1
02a8870
* Thu Mar 23 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.15-1
02a8870
- new version
02a8870
aad2042
* Wed Mar 22 2017 Ralph Bean <rbean@redhat.com> - 1.3.14-1
aad2042
- new version
aad2042
6a7dee3
* Wed Mar 22 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.13-1
6a7dee3
- 1.3.13
6a7dee3
1857f7a
* Wed Mar 22 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.12-1
1857f7a
- 1.3.12
1857f7a
eab7eea
* Fri Mar 17 2017 Jan Kaluza <jkaluza@redhat.com> - 1.3.11-1
eab7eea
- 1.3.11 bump
eab7eea
Petr Šabata be339ac
* Fri Mar 17 2017 Petr Šabata <contyk@redhat.com> - 1.3.10-1
Petr Šabata be339ac
- 1.3.10 bump
Petr Šabata be339ac
786e959
* Thu Mar 16 2017 Ralph Bean <rbean@redhat.com> - 1.3.9-1
786e959
- new version
786e959
cbadef7
* Wed Mar 15 2017 Ralph Bean <rbean@redhat.com> - 1.3.8-1
cbadef7
- new version
cbadef7
c25f43c
* Tue Mar 14 2017 Ralph Bean <rbean@redhat.com> - 1.3.6-1
c25f43c
- new version
c25f43c
796fef3
* Tue Mar 14 2017 Ralph Bean <rbean@redhat.com> - 1.3.5-1
796fef3
- new version
796fef3
c002610
* Mon Mar 13 2017 Ralph Bean <rbean@redhat.com> - 1.3.4-1
c002610
- new version
c002610
d73b095
* Fri Mar 03 2017 Ralph Bean <rbean@redhat.com> - 1.3.3-1
d73b095
- new version
d73b095
Petr Šabata e3dee67
* Fri Mar 03 2017 Petr Šabata <contyk@redhat.com> - 1.3.2-3
Petr Šabata e3dee67
- MBS requires modulemd-1.1.0+ to work properly
Petr Šabata e3dee67
5dafa34
* Thu Mar 02 2017 Ralph Bean <rbean@redhat.com> - 1.3.2-2
5dafa34
- Conditionalize arch for epel7 building.
5dafa34
1a33ec9
* Thu Mar 02 2017 Ralph Bean <rbean@redhat.com> - 1.3.2-1
1a33ec9
- new version
1a33ec9
0a3efd7
* Tue Feb 28 2017 Ralph Bean <rbean@redhat.com> - 1.3.1-2
0a3efd7
- Disable the test suite in koji for now.
0a3efd7
1dacd64
* Tue Feb 28 2017 Ralph Bean <rbean@redhat.com> - 1.3.1-1
e76575a
- new version
e76575a
92e8746
* Wed Feb 15 2017 Ralph Bean <rbean@redhat.com> - 1.2.0-1
92e8746
- new version
92e8746
fa9c054
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
fa9c054
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fa9c054
7317892
* Wed Feb  1 2017 Filip Valder <fvalder@redhat.com> - 1.1.1-2
7317892
- New revision (deps & cleanups)
7317892
e0b83be
* Tue Jan 31 2017 Ralph Bean <rbean@redhat.com> - 1.1.1-1
e0b83be
- new version
e0b83be
35014af
* Tue Jan 24 2017 Ralph Bean <rbean@redhat.com> - 1.1.0-3
35014af
- Include fedmsg.d/mbs-scheduler.py by default.
35014af
d3f12c7
* Wed Jan 18 2017 Ralph Bean <rbean@redhat.com> - 1.1.0-2
d3f12c7
- Dep fixes (for EPEL7).
d3f12c7
d0414f2
* Tue Jan 17 2017 Ralph Bean <rbean@redhat.com> - 1.1.0-1
d0414f2
- new version
d0414f2
d6a3534
* Wed Jan 11 2017 Ralph Bean <rbean@redhat.com> - 1.0.2-4
d6a3534
- Conditionalize some deps for EPEL7.
d6a3534
177e09c
* Wed Jan 11 2017 Ralph Bean <rbean@redhat.com> - 1.0.2-3
177e09c
- Sync spec file from upstream git.
177e09c
177e09c
* Thu Dec 15 2016 Matt Prahl <mprahl@redhat.com> - 1.0.2-2
177e09c
- Replace systemd unit with fedmsg-hub
84ddd55
- Remove an old .pyc file that got included by accident.
84ddd55
84ddd55
* Wed Dec 14 2016 Ralph Bean <rbean@redhat.com> - 1.0.2-1
84ddd55
- Enable test suite in the check section.
84ddd55
- Add systemd scriptlets, per review feedback.
84ddd55
84ddd55
* Mon Dec 12 2016 Ralph Bean <rbean@redhat.com> - 1.0.1-1
84ddd55
- Cleanup in preparation for package review.
84ddd55
84ddd55
* Tue Dec 6 2016 Matt Prahl <mprahl@redhat.com> - 1.0.0-2
84ddd55
- Adds systemd unit.
84ddd55
84ddd55
* Fri Nov 25 2016 Filip Valder <fvalder@redhat.com> - 1.0.0-1
84ddd55
- Let's get this party started.