diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c9d1947 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Pod-Usage-1.64.tar.gz diff --git a/.rh-perl520-perl-Pod-Usage.metadata b/.rh-perl520-perl-Pod-Usage.metadata new file mode 100644 index 0000000..fbe0542 --- /dev/null +++ b/.rh-perl520-perl-Pod-Usage.metadata @@ -0,0 +1 @@ +3a1006b3cc9ad37c556c6763c973a7985eb29f2e SOURCES/Pod-Usage-1.64.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/perl-Pod-Usage.spec b/SPECS/perl-Pod-Usage.spec new file mode 100644 index 0000000..368f7ed --- /dev/null +++ b/SPECS/perl-Pod-Usage.spec @@ -0,0 +1,116 @@ +%{?scl:%scl_package perl-Pod-Usage} + +Name: %{?scl_prefix}perl-Pod-Usage +# Compete with perl.spec's epoch +Epoch: 4 +Version: 1.64 +Release: 3%{?dist} +Summary: Print a usage message from embedded POD documentation +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Pod-Usage/ +Source0: http://www.cpan.org/authors/id/M/MA/MAREKR/Pod-Usage-%{version}.tar.gz +BuildArch: noarch +BuildRequires: %{?scl_prefix}perl +# scripts/pod2usage.PL uses Cwd +BuildRequires: %{?scl_prefix}perl(Cwd) +BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) +# scripts/pod2usage.PL uses File::Basename +BuildRequires: %{?scl_prefix}perl(File::Basename) +BuildRequires: %{?scl_prefix}perl(File::Spec) >= 0.82 +BuildRequires: %{?scl_prefix}perl(strict) +# Run-time: +BuildRequires: %{?scl_prefix}perl(Carp) +BuildRequires: %{?scl_prefix}perl(Config) +BuildRequires: %{?scl_prefix}perl(Exporter) +# Getopt::Long not used, scripts/pod2usage not called +# Pod::Usage executes perldoc from perl-Pod-Perldoc by default +BuildRequires: %{?scl_prefix}perl-Pod-Perldoc +BuildRequires: %{?scl_prefix}perl(Pod::Text) >= 3.15 +BuildRequires: %{?scl_prefix}perl(vars) +# Tests: +BuildRequires: %{?scl_prefix}perl(FileHandle) +BuildRequires: %{?scl_prefix}perl(Pod::PlainText) +BuildRequires: %{?scl_prefix}perl(Test::More) >= 0.6 +Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'})) +Requires: %{?scl_prefix}perl(File::Spec) >= 0.82 +# Pod::Usage executes perldoc from perl-Pod-Perldoc by default +Requires: %{?scl_prefix}perl-Pod-Perldoc +Requires: %{?scl_prefix}perl(Pod::Text) >= 3.15 + +# Remove under-specified dependencies +# RPM 4.8 style +%{?filter_setup: +%filter_from_requires /^%{?scl_prefix}perl(File::Spec)$/d +%?perl_default_filter +} +# RPM 4.9 style +%global __requires_exclude %{?__requires_exclude|%__requires_exclude|}^%{?scl_prefix}perl\\(File::Spec\\)$ + +%description +pod2usage will print a usage message for the invoking script (using its +embedded POD documentation) and then exit the script with the desired exit +status. The usage message printed may have any one of three levels of +"verboseness": If the verbose level is 0, then only a synopsis is printed. +If the verbose level is 1, then the synopsis is printed along with a +description (if present) of the command line options and arguments. If the +verbose level is 2, then the entire manual page is printed. + +%prep +%setup -q -n Pod-Usage-%{version} +find -type f -exec chmod a-x {} + +for F in CHANGES README; do + sed -i -e 's/\r//' "$F" +done + +%build +%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'} + +%install +%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'} +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%{?scl:scl enable %{scl} '}make test%{?scl:'} + +%files +%doc CHANGES README +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Thu Nov 13 2014 Petr Pisar - 4:1.64-3 +- Compete with perl.spec's epoch (bug #1163490) + +* Tue Aug 26 2014 Jitka Plesnikova - 1.64-2 +- Perl 5.20 rebuild + +* Tue Jul 01 2014 Petr Pisar - 1.64-1 +- 1.64 bump + +* Sat Jun 07 2014 Fedora Release Engineering - 1.63-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 1.63-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jul 12 2013 Petr Pisar - 1.63-3 +- Link minimal build-root packages against libperl.so explicitly + +* Tue Jun 25 2013 Petr Pisar - 1.63-2 +- Correct dependencies + +* Tue Jun 04 2013 Petr Pisar - 1.63-1 +- 1.63 bump + +* Tue May 21 2013 Petr Pisar - 1.62-1 +- 1.62 bump + +* Wed Feb 06 2013 Petr Pisar - 1.61-1 +- 1.61 bump + +* Mon Feb 04 2013 Petr Pisar 1.60-1 +- Specfile autogenerated by cpanspec 1.78.