Sisyphus repository
Last update: 16 october 2019 | SRPMs: 17499 | Visits: 15271211
en ru br
ALT Linux repos
S:2.7.0-alt3.bzr20170317
5.0: 2.0.5-alt0.M50.1
4.1: 1.7.1-alt0.M41.1
4.0: 1.7.1-alt0.M40.1

Other repositories
Upstream:1.3rc1

Group :: Development/Other
RPM: bzr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# vim: set ft=spec: -*- rpm-spec -*-

%def_without check

# %%branch_switch set %%branch_release use

%define branch_switch M50

Name: bzr
Version: 2.0.5
Release: %branch_release alt1

Summary: Bazaar is a decentralized revision control system
License: %gpl2plus
Group: Development/Other

Url: http://bazaar-vcs.org
Packager: Aleksey Avdeev <solo at altlinux.ru>

Source: %name-%version.tar

%add_python_req_skip _lsprof

Conflicts: %name-doc < %version

BuildRequires(pre): rpm-macros-branch
BuildPreReq: rpm-build-licenses

# Automatically added by buildreq on Thu Aug 20 2009 (-bi)

BuildRequires: python-module-Pyrex python-modules-compiler python-modules-email python-modules-logging zlib-devel

%{?!__buildreqs:%{?!_without_check:%{?!_without_test:%{?!_disable_check:%{?!_disable_test:BuildRequires: python-module-docutils}}}}}
%{?!__buildreqs:%{?!_without_check:%{?!_without_test:%{?!_disable_check:%{?!_disable_test:BuildRequires: python-module-paramiko}}}}}

%description
Bazaar is a distributed version control system that Just Works. While
many similar systems require you to adapt to their model of working,
Bazaar adapts to the workflows you want to use, and it takes only five
minutes to try it out. People have used it to version pretty much
anything: single-file projects, your /etc directory and even the
thousands of files and revisions in the source code for Launchpad,
MySQL and Mailman.

%package -n python-module-%{name}lib-tests
Summary: Tools for testing Bazaar
Group: Development/Other

Conflicts: %name < %version-%release
Conflicts: %name > %version-%release

%description -n python-module-%{name}lib-tests
This package contain tools and test suites for testing Bazaar.

%package doc
Summary: %name documentation and examples
Group: Development/Other
BuildArch: noarch

Conflicts: %name < %version

%description doc
Bazaar is a decentralized revision control system. This
package contain documentation and examples for using Bazaar.

%define bzr_docdir %_defaultdocdir/%name-%version
%define bzr_testsdir %python_sitelibdir/bzrlib/tests

%prep
%setup

%build
%python_build

%{?!__buildreqs:%{?!_without_check:%{?!_without_test:%{?!_disable_check:%{?!_disable_test:%make_build check || exit 1}}}}}

%install
%define _compress_method none
CFLAGS="%optflags" %python_install \
--optimize=2 \
               --install-data=%_datadir \
--record=INSTALLED_FILES

grep '^%bzr_testsdir/' INSTALLED_FILES > INSTALLED_FILES.test
grep -v '^%bzr_testsdir/' INSTALLED_FILES > INSTALLED_FILES.main

install -dm0755 %buildroot%bzr_docdir
install -m0644 BRANCH.TODO INSTALL NEWS README TODO %buildroot%bzr_docdir
cp -a doc contrib %buildroot%bzr_docdir

%files -f INSTALLED_FILES.main
%doc %bzr_docdir
%exclude %bzr_docdir/doc
%exclude %bzr_docdir/contrib

%files -n python-module-%{name}lib-tests -f INSTALLED_FILES.test

%files doc
%doc %bzr_docdir/doc
%doc %bzr_docdir/contrib

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin