File qm.spec of Package qm

#
# spec file for package qm (Version 2.3)
#
# Copyright (c) 2009 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:        198
Summary:        QMTest--General Purpose Testing Solution
Url:            http://www.codesourcery.com/qmtest/
Source:         qm-%{version}.tar.bz2
Patch1:         qm-firefox.patch
Patch2:         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}
%patch1
%patch2

%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" -o -name "*.dtml" -o -name "*.css" \) -print0 | xargs -0 chmod 644
chmod 644 $RPM_BUILD_ROOT/%{_docdir}/qm/test/html/qm.css

%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
openSUSE Build Service is sponsored by