|
Your Name |
9134f83 |
Name: copr-rpmbuild
|
|
Your Name |
9134f83 |
Summary: Run COPR build tasks
|
|
clime |
1774dc8 |
Version: 0.8
|
|
clime |
b51954f |
Release: 1%{?dist}
|
|
Your Name |
9134f83 |
URL: https://pagure.io/copr/copr
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
# Source is created by:
|
|
Your Name |
9134f83 |
# git clone https://pagure.io/copr/copr.git
|
|
Your Name |
9134f83 |
# cd copr/rpmbuild
|
|
Your Name |
9134f83 |
# tito build --tgz
|
|
Your Name |
9134f83 |
Source0: %{name}-%{version}.tar.gz
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
License: GPLv2+
|
|
Your Name |
9134f83 |
BuildArch: noarch
|
|
clime |
b51954f |
BuildRequires: python3-devel
|
|
clime |
b51954f |
BuildRequires: rpm-python3
|
|
Your Name |
9134f83 |
BuildRequires: asciidoc
|
|
clime |
b51954f |
Requires: createrepo_c
|
|
clime |
b51954f |
Requires: dnf-plugins-core
|
|
clime |
b51954f |
Requires: rpm-python3
|
|
clime |
b51954f |
Requires: python3
|
|
clime |
b51954f |
Requires: python3-jinja2
|
|
clime |
b51954f |
Requires: python3-munch
|
|
clime |
b51954f |
Requires: python3-lockfile
|
|
clime |
b51954f |
Requires: python3-configparser
|
|
clime |
b51954f |
Requires: python3-simplejson
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
Requires: mock
|
|
Your Name |
9134f83 |
Requires: git
|
|
clime |
b51954f |
Requires: git-svn
|
|
Your Name |
9134f83 |
Requires: expect
|
|
clime |
b51954f |
Requires: rubygem-gem2rpm
|
|
clime |
b51954f |
Requires: pyp2rpm
|
|
clime |
b51954f |
Requires: rpkg
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%description
|
|
Your Name |
9134f83 |
Provides command capable of running COPR build-tasks.
|
|
Your Name |
9134f83 |
Example: copr-rpmbuild 12345-epel-7-x86_64 will locally
|
|
Your Name |
9134f83 |
build build-id 12345 for chroot epel-7-x86_64.
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%prep
|
|
Your Name |
9134f83 |
%setup -q
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%build
|
|
clime |
b51954f |
%py3_build
|
|
Your Name |
9134f83 |
a2x -d manpage -f manpage man/copr-rpmbuild.1.asciidoc
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%install
|
|
Your Name |
9134f83 |
install -d %{buildroot}%{_sysconfdir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
install -d %{buildroot}%{_sharedstatedir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
install -d %{buildroot}%{_sharedstatedir}/copr-rpmbuild/results
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
install -d %{buildroot}%{_bindir}
|
|
clime |
b51954f |
install -m 755 main.py %{buildroot}%{_bindir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
install -m 644 main.ini %{buildroot}%{_sysconfdir}/copr-rpmbuild/main.ini
|
|
clime |
b51954f |
install -m 644 mock.cfg.j2 %{buildroot}%{_sysconfdir}/copr-rpmbuild/mock.cfg.j2
|
|
clime |
b51954f |
install -m 644 rpkg.conf.j2 %{buildroot}%{_sysconfdir}/copr-rpmbuild/rpkg.conf.j2
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
install -d %{buildroot}%{_mandir}/man1
|
|
Your Name |
9134f83 |
install -p -m 644 man/copr-rpmbuild.1 %{buildroot}/%{_mandir}/man1/
|
|
Your Name |
9134f83 |
|
|
clime |
b51954f |
%py3_install
|
|
clime |
b51954f |
|
|
Your Name |
9134f83 |
%files
|
|
Your Name |
9134f83 |
%license LICENSE
|
|
Your Name |
9134f83 |
|
|
clime |
b51954f |
%{python3_sitelib}/*
|
|
clime |
b51954f |
|
|
Your Name |
9134f83 |
%{_bindir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
%{_mandir}/man1/copr-rpmbuild.1*
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%dir %attr(0775, root, mock) %{_sharedstatedir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
%dir %attr(0775, root, mock) %{_sharedstatedir}/copr-rpmbuild/results
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%dir %{_sysconfdir}/copr-rpmbuild
|
|
Your Name |
9134f83 |
%config(noreplace) %{_sysconfdir}/copr-rpmbuild/main.ini
|
|
clime |
b51954f |
%config(noreplace) %{_sysconfdir}/copr-rpmbuild/mock.cfg.j2
|
|
clime |
b51954f |
%config(noreplace) %{_sysconfdir}/copr-rpmbuild/rpkg.conf.j2
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
%changelog
|
|
clime |
1774dc8 |
* Thu Sep 14 2017 clime <clime@redhat.com> 0.8-1
|
|
clime |
1774dc8 |
- provide more verbose exception logging
|
|
clime |
1774dc8 |
- take timeout into account
|
|
clime |
1774dc8 |
- fix downstream/upstream condition
|
|
clime |
1774dc8 |
- set also use_host_resolv to False if enable_net is False
|
|
clime |
1774dc8 |
- when building rpms, prebuild srpm in mock chroot
|
|
clime |
1774dc8 |
|
|
clime |
b51954f |
* Thu Sep 07 2017 clime <clime@redhat.com> 0.7-1
|
|
clime |
b51954f |
- rewrite to python
|
|
clime |
b51954f |
- build-srpm from upstream ability added
|
|
Your Name |
9134f83 |
* Fri Jul 07 2017 clime <clime@redhat.com> 0.6-1
|
|
Your Name |
9134f83 |
- support for source downloading
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
* Tue Jun 27 2017 clime <clime@redhat.com> 0.5-1
|
|
Your Name |
9134f83 |
- use Perl Virtual naming for Requires
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
* Fri Jun 23 2017 clime <clime@redhat.com> 0.4-1
|
|
Your Name |
9134f83 |
- use dnf.conf for custom-1 chroots
|
|
Your Name |
9134f83 |
- also copy .spec to the build result directory
|
|
Your Name |
9134f83 |
- raise curl timeout for downloading sources to be built
|
|
Your Name |
9134f83 |
- changes according to review bz#1460630
|
|
Your Name |
9134f83 |
- rpmbuild_networking option is now used to enable/disable net
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
* Wed Jun 14 2017 clime <clime@redhat.com> 0.3-1
|
|
Your Name |
9134f83 |
- support for mock's bootstrap container
|
|
Your Name |
9134f83 |
- check each line of sources file separately
|
|
Your Name |
9134f83 |
- allow multiple sources and use current dir for mock as source dir
|
|
Your Name |
9134f83 |
- also check for value of repos first before array referencing in mockcfg.tmpl
|
|
Your Name |
9134f83 |
- handle null for buildroot_pkgs in mockcfg.tmpl
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
* Fri Jun 09 2017 clime <clime@redhat.com> 0.2-1
|
|
Your Name |
9134f83 |
- new package built with tito
|
|
Your Name |
9134f83 |
|
|
Your Name |
9134f83 |
* Fri Jun 02 2017 clime <clime@redhat.com> 0.1-1
|
|
Your Name |
9134f83 |
- Initial version
|