File bzr-explorer.spec of Package bzr-explorer

# spec file for package bzr-explorer (Version 1.2.1)

# norootforbuild

Name:           bzr-explorer
Version:        1.3.0
Release:        0
License:        GNU General Public License (GPL)
Group:          Development/Tools/Version Control
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel bzr python-qt4 gettext-runtime
Requires:       bzr python-qt4 python-pygments qbzr
Source:         %{name}-%{version}.tar.gz
Summary:        Desktop GUI for Bazaar

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.

%setup -n %{name}-%{version}

python build

python 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

%{__rm} -rf %{buildroot}

%files -f %{name}.files