Hello community, here is the log from the commit of package cram for openSUSE:Factory checked in at 2017-06-23 09:18:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cram (Old) and /work/SRC/openSUSE:Factory/.cram.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cram" Fri Jun 23 09:18:10 2017 rev:7 rq:505589 version:0.7 Changes: -------- --- /work/SRC/openSUSE:Factory/cram/cram.changes 2016-09-25 14:45:27.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.cram.new/cram.changes 2017-06-23 09:18:43.163428960 +0200 @@ -1,0 +2,5 @@ +Wed Jun 14 22:19:22 UTC 2017 - mplus...@suse.com + +- Convert to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cram.spec ++++++ --- /var/tmp/diff_new_pack.A09t1o/_old 2017-06-23 09:18:43.883327236 +0200 +++ /var/tmp/diff_new_pack.A09t1o/_new 2017-06-23 09:18:43.887326671 +0200 @@ -1,7 +1,7 @@ # # spec file for package cram # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,18 +24,23 @@ Group: Development/Languages/Python Url: https://bitheap.org/cram/ Source: https://bitheap.org/cram/cram-%{version}.tar.gz -BuildRequires: python3-coverage -BuildRequires: python3-devel -BuildRequires: python3-nose -BuildRequires: python3-pep8 -BuildRequires: python3-pyflakes -BuildRequires: python3-setuptools -Requires: python3-coverage -Requires: python3-nose -Requires: python3-pep8 -Requires: python3-pyflakes -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module base} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pep8} +BuildRequires: %{python_module pyflakes} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-coverage +Requires: python-nose +Requires: python-pep8 +Requires: python-pyflakes +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch +%python_subpackages %description Cram is a functional testing framework for command line applications @@ -45,30 +50,53 @@ each command and compares the command output in the test with the command's actual output. +%package -n %{name}-common +Summary: Common files for %{name} +Group: Development/Languages/Python +Supplements: python2-%{name} +Supplements: python3-%{name} + +%description -n %{name}-common +Cram is a functional testing framework for command line applications +based on Mercurial's `unified test format'. + +Cram tests look like snippets of interactive shell sessions. Cram runs +each command and compares the command output in the test with the +command's actual output. + +This package contains common files for %{name}. + %prep %setup -q -sed -i 's/python$/python3/' scripts/cram %build -python3 setup.py build +%python_build %install -python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_clone -a %{buildroot}%{_bindir}/cram +%fdupes %{buildroot} install -D -p -m 0644 contrib/cram.vim \ %{buildroot}%{_datadir}/vim/site/syntax/cram.vim +%post +%python_install_alternative cram + +%postun +%python_uninstall_alternative cram + %check +make %{?_smp_mflags} PYTHON=python2 test make %{?_smp_mflags} PYTHON=python3 test -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING.txt NEWS.rst README.rst -%{_bindir}/cram -%dir %{python3_sitelib}/%{name}/ -%dir %{python3_sitelib}/%{name}/__pycache__/ -%{python3_sitelib}/%{name}/*.py -%{python3_sitelib}/%{name}/__pycache__/*.cpython-*.pyc -%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info +%python_alternative %{_bindir}/cram +%{python_sitelib}/* + +%files -n %{name}-common +%defattr(-,root,root) %dir %{_datadir}/vim %dir %{_datadir}/vim/site %dir %{_datadir}/vim/site/syntax