perl-PHP-Perlinfo/perl-PHP-Perlinfo.spec

Name: perl-PHP-Perlinfo
Summary: Clone of PHP's phpinfo function for Perl
Version: 0.08
Release: 3
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/PHP-Perlinfo/
Description: This module outputs a large amount of information (only in HTML in this release) about the current state of Perl. So far, this includes information about Perl compilation options, the Perl version, server information and environment, OS version information, Perl modules, and the Perl License.

CentOS 7 x86_64

The build could not start because the following file is missing: PHP-Perlinfo-0.08.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: PHP-Perlinfo-0.08.tar.gz

Build Status

Contents

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

# $Id$
# Authority: dries
# Upstream: Michael Accardo <mikeaccardo$yahoo,com>

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

%define real_name PHP-Perlinfo

Summary: Clone of PHP's phpinfo function for Perl
Name: perl-PHP-Perlinfo
Version: 0.08
Release: 3%{?dist}
License: Artistic
Group: Applications/CPAN
URL: http://search.cpan.org/dist/PHP-Perlinfo/

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

BuildArch: noarch
BuildRequires: perl
Provides: perl(PHP::Perlinfo::Apache) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::Credits) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::General) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::HTML) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::License) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::Modules) = %{version}-%{release}
Provides: perl(PHP::Perlinfo::Variables) = %{version}-%{release}

%description
This module outputs a large amount of information (only in HTML in this
release) about the current state of Perl. So far, this includes information
about Perl compilation options, the Perl version, server information and
environment, OS version information, Perl modules, and the Perl License.

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

%build
%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

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

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

%files
%defattr(-, root, root, 0755)
%doc Changes README
%doc %{_mandir}/man3/PHP::Perlinfo.3pm*
%dir %{perl_vendorlib}/PHP/
%{perl_vendorlib}/PHP/Perlinfo/
%{perl_vendorlib}/PHP/Perlinfo.pm

%changelog
* Fri Nov 23 2007 Dag Wieers <dag@wieers.com> - 0.08-3
- Added more missing provides.

* Wed Jun  8 2005 Dries Verachtert <dries@ulyssis.org> - 0.08-1
- Updated to release 0.08.

* Thu Mar 31 2005 Dag Wieers <dag@wieers.com> - 0.07-2
- Added perl(PHP::Perlinfo::HTML) provides.

* Fri Mar 04 2005 Dries Verachtert <dries@ulyssis.org> - 0.07-1
- Updated to release 0.07.

* Mon Dec 27 2004 Dries Verachtert <dries@ulyssis.org> - 0.02-1
- Initial package.