From b51954f1e6aaee01d1ef0d4cedb2181e10576a9a Mon Sep 17 00:00:00 2001 From: clime Date: Sep 07 2017 13:50:17 +0000 Subject: Update copr-rpmbuild to 0.7-1 --- diff --git a/.gitignore b/.gitignore index 1b06093..eebfec8 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /copr-rpmbuild-0.6.tar.gz +/copr-rpmbuild-0.7.tar.gz diff --git a/copr-rpmbuild.spec b/copr-rpmbuild.spec index f660561..cbbe20b 100644 --- a/copr-rpmbuild.spec +++ b/copr-rpmbuild.spec @@ -1,7 +1,7 @@ Name: copr-rpmbuild Summary: Run COPR build tasks -Version: 0.6 -Release: 3%{?dist} +Version: 0.7 +Release: 1%{?dist} URL: https://pagure.io/copr/copr # Source is created by: @@ -12,25 +12,26 @@ Source0: %{name}-%{version}.tar.gz License: GPLv2+ BuildArch: noarch - +BuildRequires: python3-devel +BuildRequires: rpm-python3 BuildRequires: asciidoc +Requires: createrepo_c +Requires: dnf-plugins-core +Requires: rpm-python3 +Requires: python3 +Requires: python3-jinja2 +Requires: python3-munch +Requires: python3-lockfile +Requires: python3-configparser +Requires: python3-simplejson -Requires: perl-interpreter -Requires: perl(Getopt::Long::Descriptive) -Requires: perl(Config::IniFiles) -Requires: perl(Text::Template::Simple) -Requires: perl(JSON::Tiny) -Requires: perl(Data::Types) -Requires: perl(HTTP::Tiny) -Requires: perl(IPC::Run) -Requires: perl(IPC::System::Simple) -Requires: perl(Time::Out) -Requires: perl(File::Tee) -Requires: perl(Proc::Fork) Requires: mock Requires: git +Requires: git-svn Requires: expect -Requires: curl +Requires: rubygem-gem2rpm +Requires: pyp2rpm +Requires: rpkg %description Provides command capable of running COPR build-tasks. @@ -41,6 +42,7 @@ build build-id 12345 for chroot epel-7-x86_64. %setup -q %build +%py3_build a2x -d manpage -f manpage man/copr-rpmbuild.1.asciidoc %install @@ -49,16 +51,21 @@ install -d %{buildroot}%{_sharedstatedir}/copr-rpmbuild install -d %{buildroot}%{_sharedstatedir}/copr-rpmbuild/results install -d %{buildroot}%{_bindir} -install -m 755 main.pl %{buildroot}%{_bindir}/copr-rpmbuild +install -m 755 main.py %{buildroot}%{_bindir}/copr-rpmbuild install -m 644 main.ini %{buildroot}%{_sysconfdir}/copr-rpmbuild/main.ini -install -m 644 mockcfg.tmpl %{buildroot}%{_sysconfdir}/copr-rpmbuild/mockcfg.tmpl +install -m 644 mock.cfg.j2 %{buildroot}%{_sysconfdir}/copr-rpmbuild/mock.cfg.j2 +install -m 644 rpkg.conf.j2 %{buildroot}%{_sysconfdir}/copr-rpmbuild/rpkg.conf.j2 install -d %{buildroot}%{_mandir}/man1 install -p -m 644 man/copr-rpmbuild.1 %{buildroot}/%{_mandir}/man1/ +%py3_install + %files %license LICENSE +%{python3_sitelib}/* + %{_bindir}/copr-rpmbuild %{_mandir}/man1/copr-rpmbuild.1* @@ -67,16 +74,13 @@ install -p -m 644 man/copr-rpmbuild.1 %{buildroot}/%{_mandir}/man1/ %dir %{_sysconfdir}/copr-rpmbuild %config(noreplace) %{_sysconfdir}/copr-rpmbuild/main.ini -%config(noreplace) %{_sysconfdir}/copr-rpmbuild/mockcfg.tmpl +%config(noreplace) %{_sysconfdir}/copr-rpmbuild/mock.cfg.j2 +%config(noreplace) %{_sysconfdir}/copr-rpmbuild/rpkg.conf.j2 %changelog -* Wed Jul 26 2017 Fedora Release Engineering - 0.6-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Thu Jul 13 2017 Petr Pisar - 0.6-2 -- perl dependency renamed to perl-interpreter - - +* Thu Sep 07 2017 clime 0.7-1 +- rewrite to python +- build-srpm from upstream ability added * Fri Jul 07 2017 clime 0.6-1 - support for source downloading diff --git a/sources b/sources index 2069fdd..a991b13 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (copr-rpmbuild-0.6.tar.gz) = 7f6239543c2104443b6409fc3033f939f77e64e297399ef9831e77156ac42f6545b680fa35e99a575ca812e5ba0f17c999bfba6d0b783471fa4515182c4ba313 +SHA512 (copr-rpmbuild-0.7.tar.gz) = dd3417cacf7d5d01ca4bb0f5178c522c1d34e8998273c33894cd00d7f62a6659240f8281c1413e390f093c970c527db4944b5af4840977f2378d2227c0eff6f6