You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
4.6 KiB
137 lines
4.6 KiB
# We need to patch the test suite if we have an old version of Test::More
|
|
%global old_test_more %(perl -MTest::More -e 'print (($Test::More::VERSION < 0.88) ? 1 : 0);' 2>/dev/null || echo 0)
|
|
|
|
Name: perl-aliased
|
|
Version: 0.31
|
|
Release: 4%{?dist}
|
|
Summary: Use shorter versions of class names
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/aliased/
|
|
Source0: http://search.cpan.org/CPAN/authors/id/O/OV/OVID/aliased-%{version}.tar.gz
|
|
Patch0: aliased-0.31-old-Test::More.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(lib)
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
aliased is simple in concept but is a rather handy module. It loads the
|
|
class you specify and exports into your namespace a subroutine that returns
|
|
the class name. You can explicitly alias the class to another name or, if
|
|
you prefer, you can do so implicitly. In the latter case, the name of the
|
|
subroutine is the last part of the class name.
|
|
|
|
%prep
|
|
%setup -q -n aliased-%{version}
|
|
|
|
# We need to patch the test suite if we have an old version of Test::More
|
|
%if %{old_test_more}
|
|
%patch0
|
|
%endif
|
|
|
|
%build
|
|
perl Build.PL installdirs=vendor
|
|
./Build
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
%{_fixperms} %{buildroot}
|
|
|
|
%check
|
|
./Build test
|
|
./Build test --test_files="xt/author/*.t"
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%doc Changes README
|
|
%{perl_vendorlib}/aliased.pm
|
|
%{_mandir}/man3/aliased.3pm*
|
|
|
|
%changelog
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 0.31-2
|
|
- Perl 5.18 rebuild
|
|
|
|
* Tue Feb 19 2013 Paul Howarth <paul@city-fan.org> - 0.31-1
|
|
- Update to 0.31
|
|
- Added prefix() function (CPAN RT#48289)
|
|
- Moved Test::More to build_requires (CPAN RT#48926)
|
|
- Moved author tests to xt/author
|
|
- Explicitly run the author tests
|
|
- BR: perl(lib) and perl(Test::More) for the test suite
|
|
- Add patch to support building with Test::More < 0.88
|
|
- Drop %%defattr, redundant since rpm 4.4
|
|
- Don't need to remove empty directories from the buildroot
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.30-9
|
|
- Perl 5.16 rebuild
|
|
|
|
* Mon Jan 16 2012 Paul Howarth <paul@city-fan.org> - 0.30-8
|
|
- Spec clean-up:
|
|
- BR: perl(Exporter)
|
|
- Make %%files list more explicit
|
|
- Don't use macros for commands
|
|
- Use tabs
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.30-6
|
|
- Perl mass rebuild
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.30-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.30-4
|
|
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
|
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.30-3
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.30-2
|
|
- rebuild against perl 5.10.1
|
|
|
|
* Sat Aug 22 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.30-1
|
|
- auto-update to 0.30 (by cpan-spec-update 0.01)
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Wed May 28 2008 Chris Weyl <cweyl@alumni.drew.edu> 0.22-1
|
|
- update to 0.22
|
|
|
|
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.21-2
|
|
- rebuild for new perl
|
|
|
|
* Fri Mar 30 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.21-1
|
|
- update to 0.21
|
|
|
|
* Thu Oct 12 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.20-2
|
|
- bump
|
|
|
|
* Mon Oct 09 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.20-1
|
|
- Specfile autogenerated by cpanspec 1.69.
|