]> git.pld-linux.org Git - packages/QMTest.git/blame - QMTest.spec
BR: rpmbuild(macros) >= 1.710
[packages/QMTest.git] / QMTest.spec
CommitLineData
e892e659 1%define tarname qmtest
7d638b46 2Summary: Testing tool
3Summary(pl.UTF-8): Narzędzie do przeprowadzania testów
4Name: QMTest
e892e659 5Version: 2.4
7d638b46 6Release: 1
7License: GPL v2
8Group: Development/Tools
ebdcfef3 9Source0: http://www.codesourcery.com/public/qmtest/%{tarname}-%{version}/%{tarname}-%{version}.tar.gz
e892e659 10# Source0-md5: b1c7cd4aa78a0fda1a6598ece98f6033
7d638b46 11Patch0: %{name}-python25.patch
12URL: http://www.codesourcery.com/qmtest/
13BuildRequires: python
ebdcfef3 14BuildRequires: rpm-pythonprov
4606a0df 15BuildRequires: rpmbuild(macros) >= 1.710
7d638b46 16%pyrequires_eq python
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%description
21QMTest is a general purpose testing solution that can be used to
22implement a robust, easy-to-use testing process.
23
24%description -l pl.UTF-8
25QMTest jest ogólnego zastosowania narzędziem służącym do implementacji
26silnego i łatwego w użyciu procesu testowego.
27
28%prep
29%setup -q -n %{tarname}-%{version}
e892e659 30#%patch0 -p1
7d638b46 31
32%build
f6e56f56 33%py_build
7d638b46 34
35%install
36rm -rf $RPM_BUILD_ROOT
f6e56f56 37%py_install
7d638b46 38mv $RPM_BUILD_ROOT%{_docdir}/%{tarname} _docs
39rm _docs/COPYING
40
41%py_postclean
42
43# Regenerate configuration cleaned above (it's broken anyway)
e892e659 44rm $RPM_BUILD_ROOT%{py_sitedir}/qm/config.py*
45cat > $RPM_BUILD_ROOT%{py_sitedir}/qm/config.py <<EOF
7d638b46 46version='%{version}'
47data_dir='%{_datadir}/%{tarname}'
e892e659 48doc_dir='%{_docdir}/%{name}-%{version}'
49extension_path=data_dir+'/site-extensions-2.5'
50prefix='%{_prefix}'
7d638b46 51EOF
52
53%clean
54rm -rf $RPM_BUILD_ROOT
55
56%files
57%defattr(644,root,root,755)
58%doc _docs/*
59%attr(755,root,root) %{_bindir}/*
e892e659 60%{py_sitedir}/qm
7d638b46 61%{_datadir}/%{tarname}
This page took 0.076315 seconds and 4 git commands to generate.