-Summary: A collection of utilities and plugins for Bazaar-NG
-Summary(pl.UTF-8): Zbiór narzędzi i wtyczek dla programu Bazaar-NG
+%define ver 2.3
+%define minor 0
+Summary: A collection of utilities and plugins for Bazaar
+Summary(pl.UTF-8): Zbiór narzędzi i wtyczek dla programu Bazaar
Name: bzrtools
-Version: 0.14.0
+Version: %{ver}.%{minor}
Release: 1
License: GPL v2
Group: Development/Version Control
-Source0: http://panoramicfeedback.com/opensource/%{name}-%{version}.tar.gz
-# Source0-md5: 5932729e81f19562a6a844be2555a115
+Source0: http://code.launchpad.net/bzrtools/trunk/%{version}/+download/%{name}-%{version}.tar.gz
+# Source0-md5: c781d9b099c8cdaee2d0dc2785e90ab7
URL: http://bazaar-vcs.org/BzrTools
-BuildRequires: python >= 1:2.4
-BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: python-devel >= 1:2.4
+BuildRequires: python-modules
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.710
%pyrequires_eq python
-Requires: bzr >= 0.14
+Requires: bzr >= %{ver}
Requires: diffutils
Requires: graphviz >= 2.6
Requires: librsvg
Requires: patch
Requires: rsync >= 2.6.6
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-BzrTools is a collection of plugins for Bazaar-NG (bzr). Among the
+BzrTools is a collection of plugins for Bazaar (bzr). Among the
included plugins are:
- push - uses rsync to push local changes to a remote server
- annotate - prints a file annotated with the revision next to each
- patch - apply a patch to your tree from a file or URL
%description -l pl.UTF-8
-BZrTools to zestaw wtyczek do programu Bazaar-NG (bzr). Zestaw zawiera
+BZrTools to zestaw wtyczek do programu Bazaar (bzr). Zestaw zawiera
następujące narzędzia:
- push - używa programu rsync do wysłania lokalnych zmian na zdalny
serwer
%setup -q -n %{name}
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
+%py_install \
+ --install-purelib %{py_sitedir} \
--optimize=2 \
--root=$RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc NEWS NEWS.Shelf README README.Shelf TODO TODO.Shelf CREDITS
-%{py_sitescriptdir}/bzrlib/plugins/bzrtools
+%{py_sitedir}/bzrlib/plugins/bzrtools
+%{py_sitedir}/*.egg-info