File perl-Term-ProgressBar.spec of Package perl-Term-ProgressBar

# spec file for package perl-Term-ProgressBar
# Copyright (c) 2013 SUSE LINUX Products 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

%define modname Term-ProgressBar

Name:           perl-%{modname}
Version:        2.14
Release:        0
Summary:        A progress bar for terminals
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Requires:       perl(Class::MethodMaker)
Requires:       perl(Term::ReadKey)
BuildRequires:  perl(Capture::Tiny) >= 0.13
BuildRequires:  perl(Class::MethodMaker)
BuildRequires:  perl(Term::ReadKey)
BuildRequires:  perl(Test::Exception)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This module provides a simple progress indicator for command line
programs.  You initialize a ProgressBar object with a brief
description of what is happening and the number of things that need
doing, and after each thing is done you call the object's update()

At the moment, this is presented to the user (on stderr) as a sequence
of 50 hash marks (no matter how many things are being done).

%setup -q -n %{modname}-%{version}
%__sed -i 's/\r$//' examples/*.pl

perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"

make test

rm -rf %{buildroot}
make DESTDIR=$RPM_BUILD_ROOT install_vendor

rm -rf %{buildroot}

%defattr(-, root, root)
%doc README Changes examples
%doc %{_mandir}/man?/*

openSUSE Build Service is sponsored by