SPECS: QMTest.spec (NEW) - New spec file.

japhy japhy at pld-linux.org
Tue Jul 24 02:30:15 CEST 2007


Author: japhy                        Date: Tue Jul 24 00:30:15 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- New spec file.

---- Files affected:
SPECS:
   QMTest.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/QMTest.spec
diff -u /dev/null SPECS/QMTest.spec:1.1
--- /dev/null	Tue Jul 24 02:30:15 2007
+++ SPECS/QMTest.spec	Tue Jul 24 02:30:09 2007
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+%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}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/07/24 00:30:09  japhy
+- New spec file.
+
================================================================


More information about the pld-cvs-commit mailing list