]> git.pld-linux.org Git - packages/QMTest.git/commitdiff
- New spec file.
authorjaphy <japhy@pld-linux.org>
Tue, 24 Jul 2007 00:30:09 +0000 (00:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    QMTest.spec -> 1.1

QMTest.spec [new file with mode: 0644]

diff --git a/QMTest.spec b/QMTest.spec
new file mode 100644 (file)
index 0000000..fb58245
--- /dev/null
@@ -0,0 +1,60 @@
+%define        tarname qm
+%define        lcname  qmtest
+Summary:       Testing tool
+Summary(pl.UTF-8):     Narzędzie do przeprowadzania testów
+Name:          QMTest
+Version:       2.3
+Release:       1
+License:       GPL v2
+Group:         Development/Tools
+Source0:       http://www.codesourcery.com/public/%{lcname}/%{tarname}-%{version}/%{tarname}-%{version}.tar.gz
+# Source0-md5: a302b541fde20ebea5ee88d3d6185143
+Patch0:                %{name}-python25.patch
+URL:           http://www.codesourcery.com/qmtest/
+BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.219
+%pyrequires_eq  python
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+QMTest is a general purpose testing solution that can be used to
+implement a robust, easy-to-use testing process.
+
+%description -l pl.UTF-8
+QMTest jest ogólnego zastosowania narzędziem służącym do implementacji
+silnego i łatwego w użyciu procesu testowego.
+
+%prep
+%setup -q -n %{tarname}-%{version}
+%patch0 -p1
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_bindir}/%{lcname}.py
+mv $RPM_BUILD_ROOT%{_docdir}/%{tarname} _docs
+rm _docs/COPYING
+
+%py_postclean
+
+# Regenerate configuration cleaned above (it's broken anyway)
+cat > $RPM_BUILD_ROOT%{py_sitedir}/%{tarname}/config.py <<EOF
+version='%{version}'
+data_dir='%{_datadir}/%{tarname}'
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc _docs/*
+%attr(755,root,root) %{_bindir}/*
+%{py_sitedir}/%{tarname}
+%{_datadir}/%{tarname}
This page took 0.137581 seconds and 4 git commands to generate.