perl-Business-ISBN/perl-Business-ISBN.spec

Name: perl-Business-ISBN
Summary: Work with International Standard Book Numbers
Version: 3.003
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Business-ISBN/
Description: With this module you can work with ISBN numbers.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

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

# $Id$
# Authority: dries
# Upstream: brian d foy <bdfoy$cpan,org>

### EL6 ships with perl-Business-ISBN-2.05-2.el6
%{?el6:# Tag: rfx}

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

%define real_name Business-ISBN

Summary: Work with International Standard Book Numbers
Name: perl-Business-ISBN
Version: 3.003
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Business-ISBN/

Source: http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/Business-ISBN-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Business::ISBN::Data) >= 20081208
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
Requires: perl(Business::ISBN::Data) >= 20081208
Requires: perl(Test::More)
Requires: perl(URI)

%filter_from_requires /^perl*/d
%filter_setup

%description
With this module you can work with ISBN numbers.

%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 LICENSE MANIFEST META.yml README.pod bad-isbn13s.txt bad-isbns.txt isbn13s.txt isbns.txt examples/
%doc %{_mandir}/man3/Business::ISBN.3pm*
%doc %{_mandir}/man3/Business::ISBN10.3pm*
%doc %{_mandir}/man3/Business::ISBN13.3pm*
%dir %{perl_vendorlib}/Business/
#%{perl_vendorlib}/Business/ISBN/
%{perl_vendorlib}/Business/ISBN.pm
%{perl_vendorlib}/Business/ISBN10.pm
%{perl_vendorlib}/Business/ISBN13.pm

%changelog
* Thu Sep 22 2016 Dries Verachtert <dries.verachtert@dries.eu> - 3.003-1
- Updated to release 3.003.

* Tue Jan  5 2010 Christoph Maser <cmr@financial.com> - 2.05-1
- Updated to version 2.05.

* Thu Dec 18 2008 Dag Wieers <dag@wieers.com> - 2.04-1
- Updated to release 2.04.

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

* Mon Jun 18 2007 Dries Verachtert <dries@ulyssis.org> - 1.84-1
- Updated to release 1.84.

* Sat Nov  5 2005 Dries Verachtert <dries@ulyssis.org> - 1.82-1
- Updated to release 1.82.

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

* Sun Mar  6 2005 Dries Verachtert <dries@ulyssis.org> - 1.79-1
- Initial package.