[packages/cmdtest] new, version 0.9
glen
glen at pld-linux.org
Tue Jan 21 00:48:31 CET 2014
commit 967cb816d4d4e7ff4375debd624a7cf52a2fe1d6
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jan 20 23:48:03 2014 +0000
new, version 0.9
based on fedora package
b7f8a77175a971eec165af467af74c4b3b2d35cd
cmdtest.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/cmdtest.spec b/cmdtest.spec
new file mode 100644
index 0000000..353489c
--- /dev/null
+++ b/cmdtest.spec
@@ -0,0 +1,64 @@
+Summary: Black-box testing for Unix command line tools
+Name: cmdtest
+Version: 0.9
+Release: 1
+License: GPL v3+
+Group: Development/Building
+Source0: http://code.liw.fi/debian/pool/main/c/cmdtest/%{name}_%{version}.orig.tar.gz
+# Source0-md5: 5fff5c87c8b01b261f73bd4ae1277ed5
+URL: http://liw.fi/cmdtest/
+BuildRequires: python-cliapp
+BuildRequires: python-coverage-test-runner
+BuildRequires: python-markdown
+BuildRequires: python-ttystatus
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
+Requires: python-cliapp
+Requires: python-ttystatus
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+cmdtest black box tests Unix command line tools. Roughly, it is given
+a command line and input files, and the expected output, and it
+verifies that the command line produces the expected output. If not,
+it reports a problem, and shows the differences.
+
+%prep
+%setup -q
+
+%build
+%if %{with tests}
+# CoverageTestRunner trips up on build directory;
+# remove it first
+rm -rf build
+%{__python} setup.py check
+%endif
+
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+ --skip-build \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/yarnlib/*_tests.py*
+
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README README.yarn
+%attr(755,root,root) %{_bindir}/cmdtest
+%attr(755,root,root) %{_bindir}/yarn
+%{_mandir}/man1/cmdtest.1*
+%{_mandir}/man1/yarn.1*
+%{py_sitescriptdir}/cmdtestlib.py[co]
+%{py_sitescriptdir}/cmdtest-%{version}-py*.egg-info
+%dir %{py_sitescriptdir}/yarnlib
+%{py_sitescriptdir}/yarnlib/*.py[co]
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cmdtest.git/commitdiff/967cb816d4d4e7ff4375debd624a7cf52a2fe1d6
More information about the pld-cvs-commit
mailing list