Name: copr-mocks Version: 1.12.git.750.41fdc599 Summary: COPR system components mocks Release: 1%{?dist} # Source is created by: # git clone https://pagure.io/copr/copr.git # git checkout copr-mocks-1.12.git.750.41fdc599 # cd copr/mocks # rpkg spec --sources Source0: copr-mocks-1.12.git.750.41fdc599.tar.gz License: GPLv2+ BuildArch: noarch BuildRequires: python3-devel BuildRequires: systemd-units Requires: python3 Requires: python3-flask %description This package provides mocks for individual copr system components to enable regression testing of the real components independently. %prep %setup -q %build %install install -d %{buildroot}%{_datadir}/copr/mocks/frontend install -d %{buildroot}%{_datadir}/copr/mocks/backend install -d %{buildroot}%{_unitdir} cp -a frontend/* %{buildroot}%{_datadir}/copr/mocks/frontend/ cp -a backend/* %{buildroot}%{_datadir}/copr/mocks/backend/ cp -a copr-mocks-frontend.service %{buildroot}%{_unitdir}/ %pre getent group copr-mocks >/dev/null || groupadd -r copr-mocks getent passwd copr-mocks >/dev/null || \ useradd -r -g copr-mocks -G copr-mocks -d %{_datadir}/copr/mocks -s /bin/bash -c "COPR mocks user" copr-mocks /usr/bin/passwd -l copr-mocks >/dev/null %files %license LICENSE %{_datadir}/copr/mocks/frontend %{_datadir}/copr/mocks/backend %{_unitdir}/copr-mocks-frontend.service %changelog * Fri Oct 19 2018 Miroslav Suchý 1.12-1 - /usr/bin/env python3 -> /usr/bin/python3 - static_path -> static_folder - fix macro syntax - use git_dir_archive instead of git_dir_pack * Mon Aug 06 2018 clime 1.11-1 - rpkg deployment into COPR * Fri Feb 23 2018 clime 1.10-1 - change in interface between copr-frontend and copr-backend - fix for new copr-dist-git interface * Fri Sep 15 2017 clime 1.9-1 - Spelling fixes * Fri Jun 09 2017 clime 1.8-1 - support for copr-rpmbuild * Wed Apr 19 2017 clime 1.7-1 - support detached builds (i.e. pending -> running build state transition) - replace fedorahosted links * Thu Dec 01 2016 clime 1.6-1 - ignore ValueError exception * Mon Aug 15 2016 clime 1.5-1 - listen even on public IPs (0.0.0.0:5000) * Fri Jul 08 2016 clime 1.4-1 - adjust to frontend now exposing only 1 build and 1 action on /backend/waiting at a time - wait with server termination until all the started build tasks have been finished - send builds & actions by the order they appear in the input files - just publish the first build tasks (also applies for actions) from the whole FE "queue" * Thu May 26 2016 clime 1.3-1 - task files are now directly under batch (data) dir, no in/out subdirs - action result storing fixed + code improvements - make dump files with .json extension for syntax highlighting to kick in - pretty-print dist-git/backend responses * Fri Apr 22 2016 Miroslav Suchý 1.2-1 - support for feeding actions to backend - added debug output - file names update + do not dump empty files - possiblity to omit import-tasks.json (or waiting- task.json) from datadir - added possibility to specify static dir on command line - only finished (failed/succeeded) builds are dumped in the end - simplify output - create outputdir if does not exists + sample test data update - small fix in error handlers - fixes & debug infos & better error/input/output handling - interfaces for backend - initial impl * Fri Mar 04 2016 clime 1.1-1 - new package built with tito * Thu Feb 25 2016 clime 1.0-1 - Initial package version