Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0
cram
cram.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cram.spec of Package cram
# # spec file for package cram # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: cram Version: 0.7 Release: 0 Summary: A simple testing framework for command line applications License: GPL-2.0 Group: Development/Languages/Python Url: https://bitheap.org/cram/ Source: https://bitheap.org/cram/cram-%{version}.tar.gz 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 %ifpython3 Provides: cram = %{version} Obsoletes: cram < %{version} %endif %python_subpackages %description 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. %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 %build %python_build %install %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 %{python_files} %defattr(-,root,root,-) %doc COPYING.txt NEWS.rst README.rst %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 %{_datadir}/vim/site/syntax/cram.vim %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor