summaryrefslogtreecommitdiff
path: root/cram.spec
diff options
context:
space:
mode:
Diffstat (limited to 'cram.spec')
-rw-r--r--cram.spec35
1 files changed, 35 insertions, 0 deletions
diff --git a/cram.spec b/cram.spec
new file mode 100644
index 0000000..0c40a2b
--- /dev/null
+++ b/cram.spec
@@ -0,0 +1,35 @@
+Name: cram
+Version: 0.7
+Release: 3
+ExclusiveArch: any
+Summary: 'functional testing framework for command line applications'
+License: GPL2
+URL: https://bitheap.org/cram/
+Source0: cram-0.7.tar.gz::https://bitheap.org/cram/cram-0.7.tar.gz
+BuildRequires: python
+%define __brp_mangle_shebangs %{nil}
+%define debug_package %{nil}
+%define srcdir %{_builddir}
+%define pkgname cram
+
+
+%prep
+
+%description
+'functional testing framework for command line applications'
+
+%install
+ export pkgdir="%{buildroot}"
+ export srcdir="%{srcdir}"
+ export pkgname="%{pkgname}"
+ export _pkgname="%{_pkgname}"
+ export _pkgfolder="%{_pkgfolder}"
+ export pkgver="%{version}"
+ cd "%{_builddir}"
+ cd "$pkgname-$pkgver";
+ python setup.py install --root="$pkgdir/" --optimize=1
+
+%files
+/*
+%exclude %dir /usr/bin
+%exclude %dir /usr/lib