File qm.spec of Package qm

#
# spec file for package qm (Version 2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           qm
BuildRequires:  python-devel
License:        GPL v2 or later
Group:          Development/Tools/Building
AutoReqProv:    on
Version:        2.3
Release:        194
Summary:        QMTest--General Purpose Testing Solution
Url:             http://www.codesourcery.com/qmtest/
Source:         qm-%{version}.tar.bz2
Patch:          qm-firefox.patch
Patch:          qm-doc.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python python-devel python-xml MozillaFirefox

%description
QMTest is a cost-effective general purpose testing solution that can be
used to implement a robust, easy to use testing process.



Authors:
--------
    info@codesourcery.com

%prep
%setup -q -n qm-%{version}
%patch

%build
%{suse_update_config -f}
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build 

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT \
                        --record-rpm=INSTALLED_FILES
find $RPM_BUILD_ROOT/usr/share/qm -type f \( -name "*.gif" -o -name "*.txt" \) -print0 | xargs -0 chmod 644

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc %{_docdir}/qm/*
%dir %{_docdir}/qm
%dir %py_sitedir/qm
%py_sitedir/qm/
%py_sitedir/qm*
%{_prefix}/bin/qm*
%dir %{_prefix}/share/qm
%{_prefix}/share/qm/
#%exclude /usr/share/doc/packages

%changelog
* Tue Sep 09 2008 ro@suse.de
- use macro py_sitedir in filelist
* Thu Apr 12 2007 stefan@suse.de
- fix Bug 260746 - qm packaging error
* Tue Nov 07 2006 ro@suse.de
- fix docu permissions
* Tue Feb 28 2006 jmatejek@suse.cz
- updated to reflect python changes due to #149809
* Fri Feb 17 2006 ro@suse.de
- Require and default to firefox
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jul 11 2005 schubi@suse.de
- update to 2.3
* Thu Dec 23 2004 schubi@suse.de
- initial
openSUSE Build Service is sponsored by