File bzr-explorer.spec of Package bzr-explorer

#
# spec file for package bzr-explorer
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           bzr-explorer
Version:        1.3.0
Release:        0
Summary:        Desktop GUI for Bazaar
License:        GNU General Public License (GPL)
Group:          Development/Tools/Version Control
Url:            https://launchpad.net/bzr-explorer
Source:         https://launchpad.net/bzr-explorer/1.3/%{version}/+download/%{name}-%{version}.tar.gz
Source2:        https://launchpad.net/bzr-explorer/1.3/%{version}/+download/%{name}-%{version}.tar.gz.asc
Source3:        %{name}.keyring
BuildRequires:  bzr
BuildRequires:  gettext-runtime
BuildRequires:  python-devel
BuildRequires:  python-qt4
Requires:       bzr
Requires:       python-pygments
Requires:       python-qt4
Requires:       qbzr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires

%description
Bazaar Explorer is a desktop application for using the Bazaar Version
Control System. It provides a high level interface to all commonly
used features, launching "applets" from the QBzr plug-in to provide
most of the functionality. Alternatively, the applets from the bzr-gtk
plug-in can be used if it is installed. Bazaar Explorer runs on GNOME,
KDE, Windows, Mac OS X and FreeBSD.

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --root %{buildroot} --prefix %{_prefix} --record-rpm %{name}.files --install-data %{_datadir} --install-lib %{py_sitedir}
#files with spaces in confuse RPM
perl -pi -e 's/^(\/usr.*)$/"$1"/' %{name}.files
perl -pi -e 's/^%dir (\/usr.*)$/"$1"/' %{name}.files

%files -f %{name}.files
%defattr(-,root,root,-)
%doc COPYING.txt NEWS README.txt

%changelog
openSUSE Build Service is sponsored by