perl-App-Info/perl-App-Info.spec

Name: perl-App-Info
Summary: Information about software packages on a system
Version: 0.57
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/App-Info/
Description: App::Info provides a generalized interface for providing metadata about software packages installed on a system. The idea is that App::Info subclasses can be used in Perl application installers in order to determine whether software dependencies have been fulfilled, and to get necessary metadata about those software packages.

App::Info provides an event model for handling events triggered by App::Info subclasses. The events are classified as "info", "error", "unknown", and "confirm" events, and multiple handlers may be specified to handle any or all of these event types. This allows App::Info clients to flexibly handle events in any way they deem necessary. Implementing new event handlers is straight-forward, and use the triggering of events by App::Info subclasses is likewise kept easy-to-use.

A few sample App::Info and App::Info::Handler (event handling) subclasses are provided with the distribution, but others are invited to write their own subclasses and contribute them to the CPAN. Contributors are welcome to extend their subclasses to provide more information relevant to the application for which data is to be provided (see App::Info::HTTPD::Apache for an example), but are encouraged to, at a minimum, implement the methods defined by the App::Info abstract base class relevant to the category of software they're managing, e.g. App::Info::HTTPD or App::Info::RDBMS. New categories will be added as needed.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: David Wheeler <david$justatheory,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name App-Info

Summary: Information about software packages on a system
Name: perl-App-Info
Version: 0.57
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/App-Info/

Source: http://www.cpan.org/modules/by-module/App/App-Info-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(Module::Build) >= 0.2701
#BuildRequires: perl(Test::More) >= 0.17

%description
App::Info provides a generalized interface for providing metadata about
software packages installed on a system. The idea is that App::Info subclasses
can be used in Perl application installers in order to determine whether
software dependencies have been fulfilled, and to get necessary metadata about
those software packages.

App::Info provides an event model for handling events triggered by App::Info
subclasses. The events are classified as "info", "error", "unknown", and
"confirm" events, and multiple handlers may be specified to handle any or all
of these event types. This allows App::Info clients to flexibly handle events
in any way they deem necessary. Implementing new event handlers is
straight-forward, and use the triggering of events by App::Info subclasses is
likewise kept easy-to-use.

A few sample App::Info and App::Info::Handler (event handling) subclasses are
provided with the distribution, but others are invited to write their own
subclasses and contribute them to the CPAN. Contributors are welcome to extend
their subclasses to provide more information relevant to the application for
which data is to be provided (see App::Info::HTTPD::Apache for an example),
but are encouraged to, at a minimum, implement the methods defined by the
App::Info abstract base class relevant to the category of software they're
managing, e.g. App::Info::HTTPD or App::Info::RDBMS. New categories will be
added as needed.

%prep
%setup -n %{real_name}-%{version}

%{__perl} -pi.orig -e 's|^use to|use_to|g' lib/App/Info.pm

%build
%{__perl} Build.PL --installdirs vendor --destdir %{buildroot}
./Build

%install
%{__rm} -rf %{buildroot}
./Build pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc Changes MANIFEST META.yml README
%doc %{_mandir}/man3/App::Info.3pm*
%doc %{_mandir}/man3/App::Info::*.3pm*
%{perl_vendorlib}/App/Info/
%{perl_vendorlib}/App/Info.pm

%changelog
* Thu Jun 09 2016 Dries Verachtert <dries.verachtert@dries.eu> - 0.57-1
- Updated to release 0.57.

* Tue Oct 07 2008 Dag Wieers <dag@wieers.com> - 0.55-1
- Updated to release 0.55.

* Sun Jun 22 2008 Dag Wieers <dag@wieers.com> - 0.54-1
- Updated to release 0.54.

* Wed May 14 2008 Dag Wieers <dag@wieers.com> - 0.53-1
- Updated to release 0.53.

* Tue Nov 06 2007 Dag Wieers <dag@wieers.com> - 0.52-1
- Updated to release 0.52.

* Tue Sep 26 2006 Dries Verachtert <dries@ulyssis.org> - 0.51-1
- Updated to release 0.51.

* Mon Sep 18 2006 Dries Verachtert <dries@ulyssis.org> - 0.50-1
- Updated to release 0.50.

* Fri Jun  2 2006 Dries Verachtert <dries@ulyssis.org> - 0.49-1
- Updated to release 0.49.

* Sun Mar 26 2006 Dries Verachtert <dries@ulyssis.org> - 0.48-1
- Updated to release 0.48.

* Fri Dec  9 2005 Dries Verachtert <dries@ulyssis.org> - 0.47-1
- Initial package.