未验证 提交 f2688d2d 编写于 作者: A Amador Pahim

Merge branch 'clebergnu-spec_upstream_sync_package_name'

Signed-off-by: NAmador Pahim <apahim@redhat.com>
...@@ -95,19 +95,19 @@ install: ...@@ -95,19 +95,19 @@ install:
srpm: source srpm: source
if test ! -d BUILD/SRPM; then mkdir -p BUILD/SRPM; fi if test ! -d BUILD/SRPM; then mkdir -p BUILD/SRPM; fi
mock -r $(MOCK_CONFIG) --resultdir BUILD/SRPM -D "commit $(COMMIT)" --buildsrpm --spec avocado.spec --sources SOURCES mock -r $(MOCK_CONFIG) --resultdir BUILD/SRPM -D "commit $(COMMIT)" --buildsrpm --spec python-avocado.spec --sources SOURCES
rpm: srpm rpm: srpm
if test ! -d BUILD/RPM; then mkdir -p BUILD/RPM; fi if test ! -d BUILD/RPM; then mkdir -p BUILD/RPM; fi
mock -r $(MOCK_CONFIG) --resultdir BUILD/RPM -D "commit $(COMMIT)" --rebuild BUILD/SRPM/avocado-$(VERSION)-*.src.rpm mock -r $(MOCK_CONFIG) --resultdir BUILD/RPM -D "commit $(COMMIT)" --rebuild BUILD/SRPM/python-avocado-$(VERSION)-*.src.rpm
srpm-release: source-release srpm-release: source-release
if test ! -d BUILD/SRPM; then mkdir -p BUILD/SRPM; fi if test ! -d BUILD/SRPM; then mkdir -p BUILD/SRPM; fi
mock -r $(MOCK_CONFIG) --resultdir BUILD/SRPM -D "commit $(RELEASE_COMMIT)" --buildsrpm --spec avocado.spec --sources SOURCES mock -r $(MOCK_CONFIG) --resultdir BUILD/SRPM -D "commit $(RELEASE_COMMIT)" --buildsrpm --spec python-avocado.spec --sources SOURCES
rpm-release: srpm-release rpm-release: srpm-release
if test ! -d BUILD/RPM; then mkdir -p BUILD/RPM; fi if test ! -d BUILD/RPM; then mkdir -p BUILD/RPM; fi
mock -r $(MOCK_CONFIG) --resultdir BUILD/RPM -D "commit $(RELEASE_COMMIT)" --rebuild BUILD/SRPM/avocado-$(VERSION)-*.src.rpm mock -r $(MOCK_CONFIG) --resultdir BUILD/RPM -D "commit $(RELEASE_COMMIT)" --rebuild BUILD/SRPM/python-avocado-$(VERSION)-*.src.rpm
clean: clean:
$(PYTHON) setup.py clean $(PYTHON) setup.py clean
......
%global modulename avocado %global srcname avocado
%if ! 0%{?commit:1} %if ! 0%{?commit:1}
%define commit f12f277434096dc628f5b0b731d7c37e0789427d %define commit f12f277434096dc628f5b0b731d7c37e0789427d
%endif %endif
%global shortcommit %(c=%{commit}; echo ${c:0:7}) %global shortcommit %(c=%{commit}; echo ${c:0:7})
Summary: Framework with tools and libraries for Automated Testing Summary: Framework with tools and libraries for Automated Testing
Name: avocado Name: python-%{srcname}
Version: 47.0 Version: 47.0
Release: 0%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
Group: Development/Tools Group: Development/Tools
URL: http://avocado-framework.github.io/ URL: http://avocado-framework.github.io/
Source0: https://github.com/avocado-framework/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz Source0: https://github.com/avocado-framework/%{srcname}/archive/%{commit}/%{srcname}-%{version}-%{shortcommit}.tar.gz
BuildArch: noarch BuildArch: noarch
Requires: python, python-requests, python-setuptools, pyliblzma, gdb, gdb-gdbserver, python-stevedore, python-yaml, procps-ng Requires: python, python-requests, python-setuptools, pyliblzma, gdb, gdb-gdbserver, python-stevedore, python-yaml, procps-ng
BuildRequires: python2-devel, python-setuptools, python-docutils, python-mock, python-psutil, python-sphinx, python-requests, pystache, yum, python-stevedore, python-lxml, perl-Test-Harness, fabric, python-flexmock, libvirt-python, python-yaml, procps-ng BuildRequires: python2-devel, python-setuptools, python-docutils, python-mock, python-psutil, python-sphinx, python-requests, pystache, yum, python-stevedore, python-lxml, perl-Test-Harness, fabric, python-flexmock, libvirt-python, python-yaml, procps-ng
...@@ -21,6 +21,15 @@ BuildRequires: python-aexpect ...@@ -21,6 +21,15 @@ BuildRequires: python-aexpect
BuildRequires: aexpect BuildRequires: aexpect
%endif %endif
# For compatibility reasons, let's mark this package as one that
# provides the same functionality as the old package name and also
# one that obsoletes the old package name, so that the new name is
# favored. These could (and should) be removed in the future.
# These changes are backed by the following guidelines:
# https://fedoraproject.org/wiki/Upgrade_paths_%E2%80%94_renaming_or_splitting_packages
Obsoletes: %{srcname} < 47.0-1
Provides: %{srcname} = %{version}-%{release}
# For some strange reason, fabric on Fedora 24 does not require the # For some strange reason, fabric on Fedora 24 does not require the
# python-crypto package, but the fabric code always imports it. Newer # python-crypto package, but the fabric code always imports it. Newer
# fabric versions, such from Fedora 25 do conditional imports (try: # fabric versions, such from Fedora 25 do conditional imports (try:
...@@ -42,7 +51,7 @@ Avocado is a set of tools and libraries (what people call ...@@ -42,7 +51,7 @@ Avocado is a set of tools and libraries (what people call
these days a framework) to perform automated testing. these days a framework) to perform automated testing.
%prep %prep
%setup -q -n %{name}-%{commit} %setup -q -n %{srcname}-%{commit}
# package plugins-runner-vm requires libvirt-python, but the RPM # package plugins-runner-vm requires libvirt-python, but the RPM
# version of libvirt-python does not publish the egg info and this # version of libvirt-python does not publish the egg info and this
# causes that dep to be attempted to be installed by pip # causes that dep to be attempted to be installed by pip
...@@ -124,7 +133,9 @@ selftests/run ...@@ -124,7 +133,9 @@ selftests/run
%package plugins-output-html %package plugins-output-html
Summary: Avocado HTML report plugin Summary: Avocado HTML report plugin
Requires: avocado == %{version}, pystache Requires: %{name} == %{version}, pystache
Obsoletes: %{srcname}-plugins-output-html < 47.0-1
Provides: %{srcname}-plugins-output-html = %{version}-%{release}
%description plugins-output-html %description plugins-output-html
Adds to avocado the ability to generate an HTML report at every job results Adds to avocado the ability to generate an HTML report at every job results
...@@ -136,11 +147,13 @@ arbitrary filesystem location. ...@@ -136,11 +147,13 @@ arbitrary filesystem location.
%package plugins-runner-remote %package plugins-runner-remote
Summary: Avocado Runner for Remote Execution Summary: Avocado Runner for Remote Execution
Requires: avocado == %{version}, fabric Requires: %{name} == %{version}, fabric
%if 0%{?fedora} == 24 %if 0%{?fedora} == 24
Requires: python-crypto Requires: python-crypto
BuildRequires: python-crypto BuildRequires: python-crypto
%endif %endif
Obsoletes: %{srcname}-plugins-runner-remote < 47.0-1
Provides: %{srcname}-plugins-runner-remote = %{version}-%{release}
%description plugins-runner-remote %description plugins-runner-remote
Allows Avocado to run jobs on a remote machine, by means of an SSH Allows Avocado to run jobs on a remote machine, by means of an SSH
...@@ -151,8 +164,10 @@ connection. Avocado must be previously installed on the remote machine. ...@@ -151,8 +164,10 @@ connection. Avocado must be previously installed on the remote machine.
%package plugins-runner-vm %package plugins-runner-vm
Summary: Avocado Runner for libvirt VM Execution Summary: Avocado Runner for libvirt VM Execution
Requires: avocado == %{version}, avocado-plugins-runner-remote == %{version} Requires: %{name} == %{version}, %{name}-plugins-runner-remote == %{version}
Requires: libvirt-python Requires: libvirt-python
Obsoletes: %{srcname}-plugins-runner-vm < 47.0-1
Provides: %{srcname}-plugins-runner-vm = %{version}-%{release}
%description plugins-runner-vm %description plugins-runner-vm
Allows Avocado to run jobs on a libvirt based VM, by means of Allows Avocado to run jobs on a libvirt based VM, by means of
...@@ -164,12 +179,14 @@ itself. Avocado must be previously installed on the VM. ...@@ -164,12 +179,14 @@ itself. Avocado must be previously installed on the VM.
%package plugins-runner-docker %package plugins-runner-docker
Summary: Avocado Runner for Execution on Docker Containers Summary: Avocado Runner for Execution on Docker Containers
Requires: avocado == %{version}, avocado-plugins-runner-remote == %{version} Requires: %{name} == %{version}, %{name}-plugins-runner-remote == %{version}
%if 0%{?fedora} %if 0%{?fedora}
Requires: python-aexpect Requires: python-aexpect
%else %else
Requires: aexpect Requires: aexpect
%endif %endif
Obsoletes: %{srcname}-plugins-runner-docker < 47.0-1
Provides: %{srcname}-plugins-runner-docker = %{version}-%{release}
%description plugins-runner-docker %description plugins-runner-docker
Allows Avocado to run jobs on a Docker container by interacting with a Allows Avocado to run jobs on a Docker container by interacting with a
...@@ -182,7 +199,7 @@ be previously installed on the container. ...@@ -182,7 +199,7 @@ be previously installed on the container.
%package examples %package examples
Summary: Avocado Test Framework Example Tests Summary: Avocado Test Framework Example Tests
Requires: avocado == %{version} Requires: %{name} == %{version}
%description examples %description examples
The set of example tests present in the upstream tree of the Avocado framework. The set of example tests present in the upstream tree of the Avocado framework.
...@@ -194,6 +211,9 @@ examples of how to write tests on your own. ...@@ -194,6 +211,9 @@ examples of how to write tests on your own.
%{_datadir}/avocado/wrappers %{_datadir}/avocado/wrappers
%changelog %changelog
* Wed Mar 8 2017 Cleber Rosa <cleber@redhat.com> - 47.0-1
- Rename package to python-avocado and subpackges accordingly
* Mon Mar 6 2017 Cleber Rosa <cleber@redhat.com> - 47.0-0 * Mon Mar 6 2017 Cleber Rosa <cleber@redhat.com> - 47.0-0
- New upstream release - New upstream release
......
...@@ -114,6 +114,7 @@ CC_BINARY = probe_binary('cc') ...@@ -114,6 +114,7 @@ CC_BINARY = probe_binary('cc')
# but their behavior and flags are in most cases different. # but their behavior and flags are in most cases different.
GNU_ECHO_BINARY = probe_binary('echo') GNU_ECHO_BINARY = probe_binary('echo')
if GNU_ECHO_BINARY is not None: if GNU_ECHO_BINARY is not None:
if probe_binary('man') is not None:
echo_manpage = process.run('man %s' % os.path.basename(GNU_ECHO_BINARY)).stdout echo_manpage = process.run('man %s' % os.path.basename(GNU_ECHO_BINARY)).stdout
if '-e' not in echo_manpage: if '-e' not in echo_manpage:
GNU_ECHO_BINARY = probe_binary('gecho') GNU_ECHO_BINARY = probe_binary('gecho')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册