perl-Getopt-Long/perl-Getopt-Long.spec

Name: perl-Getopt-Long
Summary: Extended processing of command line options
Version: 2.48
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Getopt-Long/
Description: Extended processing of command line options

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

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

# $Id$
# Authority: dag
# Upstream: Johan Vromans <jv$cpan,org>

### EL6 ships with Getopt::Long in perl-5.10.1-119.el6_1.1
### EL5 ships with Getopt::Long in perl-5.8.8-32.el5_6.3
### EL4 ships with Getopt::Long in perl-5.8.5-53.el4
### EL3 ships with Getopt::Long in perl-5.8.0-101.EL3
### EL2 ships with Getopt::Long in perl-5.6.1-37.1.99ent
# Tag: rfx

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

%define real_name Getopt-Long

Summary: Extended processing of command line options
Name: perl-Getopt-Long
Version: 2.48
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Getopt-Long/

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

BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl

%description
Extended processing of command line options 

%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 up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

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

%files
%defattr(-, root, root, 0755)
%doc CHANGES INSTALL MANIFEST README examples/
%doc %{_mandir}/man3/Getopt::Long.3pm*
%dir %{perl_vendorlib}/Getopt/
#%{perl_vendorlib}/Getopt/Long/
%{perl_vendorlib}/Getopt/Long.pm
%{perl_vendorlib}/newgetopt.pl

%changelog
* Fri Oct 30 2015 Dries Verachtert <dries.verachtert@dries.eu> - 2.48-1
- Updated to release 2.48.

* Sun Jul  5 2009 Christoph Maser <cmr@financial.com> - 2.38-1
- Updated to version 2.38.

* Fri Nov 09 2007 Dag Wieers <dag@wieers.com> - 2.37-1
- Updated to release 2.37.

* Mon Jun 05 2006 Dag Wieers <dag@wieers.com> - 2.35-1
- Initial package. (using DAR)