File bzr-loom.spec of Package bzr-loom
# norootforbuild
BuildRequires: python-devel
BuildRequires: bzr >= 1.0
Name: bzr-loom
Version: 1.3
Release: 3
Source0: %{name}-%{version}.tar.gz
Patch0: bzr-loom-setup.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: Dummy
Summary: Plugin for bzr similar to Quilt
URL: https://launchpad.net/bzr-loom/
Requires: bzr >= 1.0
%description
A bzr plugin providing functionality similar to quilt, Mercurial queues,
stgit, etc.
%prep
%setup
%patch0 -p0
%build
python setup.py build
%install
%if 0%{?suse_version}
%define __record_arg --record-rpm
%else
%define __record_arg --record
%endif
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT %__record_arg %{name}.files --install-data %{_datadir}
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f %{name}.files
%defattr(-, root, root)
%doc HOWTO NEWS README TODO
%changelog