File svn-bisect.spec of Package svn-bisect
#
# spec file for package svn-bisect
#
# 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: svn-bisect
Version: 1.1
Release: 0
Summary: Tool to perform binary searches on SVN checkouts
License: Artistic-1.0 or GPL-1.0+
Group: Development/Tools/Version Control
Url: http://search.cpan.org/dist/App-SVN-Bisect
Source: http://search.cpan.org/CPAN/authors/id/I/IN/INFINOID/App-SVN-Bisect-%{version}.tar.gz
BuildRequires: perl
BuildRequires: perl(IO::All)
BuildRequires: perl(Module::Build) >= 0.36
BuildRequires: perl(YAML::Syck)
Requires: perl(App::SVN::Bisect) = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} >= 1030
Requires: perl-base = %{perl_version}
%else
Requires: perl = %{perl_version}
%endif
%if 0%{?suse_version} >= 1130 && 0%{?suse_version} != 1315
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Output)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
%endif
%description
This tool's purpose is to help you determine which revision of a subversion
repository contains a change. It does this by employing a binary search. It
will manage the current revision of your checkout directory, and narrow in on
the target revision, as you give it clues about the current revision such as
"before" (this revision is before the one you want) or "after" (this revision
is after the one you want).
Start a bisect session with the "start" command. Then, walk the binary tree by
using the "before" and "after" commands. When you are done, the tool will tell
you the target revision.
The most common usage scenario is finding out which rev a bug was introduced
in. For this purpose, some command aliases have been added: if the current
revision contains the bug, you can use the "bad" command (meaning, this
revision is "after" the change you want to find), otherwise use the "good"
command (meaning, this revision is "before" the change you want to find).
All commands should be run from within a subversion checkout directory. After a
"svn-bisect start", all subsequent svn-bisect commands need to be run from that
same directory.
%package -n perl-App-SVN-Bisect
Summary: Perl module to perform binary searches on SVN checkouts
Group: Development/Libraries/Perl
Requires: perl(IO::All)
Requires: perl(YAML::Syck)
%description -n perl-App-SVN-Bisect
This module implements the backend of the "svn-bisect" command line tool. See
the POD documentation of that tool, for usage details.
%prep
%setup -q -n "App-SVN-Bisect-%{version}"
%build
perl ./Build.PL
./Build
%install
./Build pure_install --destdir %{buildroot} --installdirs vendor
%perl_process_packlist
mkdir -p .rpmdoc
for f in Changes README LICENSE; do
ln -s -f ../perl-App-SVN-Bisect/"$f" .rpmdoc/"$f"
done
%check
%if 0%{?suse_version} >= 1130 && 0%{?suse_version} != 1315
./Build test
%endif
%files
%defattr(-,root,root)
%doc .rpmdoc/*
%{_bindir}/svn-bisect
%doc %{_mandir}/man1/svn-bisect.1%{ext_man}
%files -n perl-App-SVN-Bisect
%defattr(-,root,root)
%doc Changes README LICENSE
%dir %{perl_vendorlib}/App
%dir %{perl_vendorlib}/App/SVN
%{perl_vendorlib}/App/SVN/Bisect.pm
%dir %{perl_vendorarch}/auto/App
%dir %{perl_vendorarch}/auto/App/SVN
%{perl_vendorarch}/auto/App/SVN/Bisect
%doc %{perl_man3dir}/App::SVN::Bisect.%{perl_man3ext}%{ext_man}