|
|
37a3a23 |
Name: perl-UNIVERSAL-moniker
|
|
|
37a3a23 |
Version: 0.08
|
|
|
414fcd7 |
Release: 7%{?dist}
|
|
|
37a3a23 |
Summary: Real world naming for classes
|
|
|
37a3a23 |
Group: Development/Libraries
|
|
|
26ef7f2 |
License: GPL+ or Artistic
|
|
|
37a3a23 |
URL: http://search.cpan.org/dist/UNIVERSAL-moniker/
|
|
|
37a3a23 |
Source0: http://search.cpan.org/CPAN/authors/id/K/KA/KASEI/UNIVERSAL-moniker-%{version}.tar.gz
|
|
|
37a3a23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
37a3a23 |
|
|
|
37a3a23 |
BuildArch: noarch
|
|
|
26ef7f2 |
BuildRequires: perl(Test::More), perl(Lingua::EN::Inflect)
|
|
|
37a3a23 |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%description
|
|
|
37a3a23 |
UNIVERSAL::moniker enables classes to make a good
|
|
|
37a3a23 |
guess at what they would be called in the real world.
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%prep
|
|
|
37a3a23 |
%setup -q -n UNIVERSAL-moniker-%{version}
|
|
|
37a3a23 |
|
|
|
b2082f8 |
cat << \EOF > %{name}-prov
|
|
|
b2082f8 |
#!/bin/sh
|
|
|
b2082f8 |
%{__perl_provides} $* |\
|
|
|
b2082f8 |
sed -e '/^perl(UNIVERSAL)$/d'
|
|
|
b2082f8 |
EOF
|
|
|
b2082f8 |
%define __perl_provides %{_builddir}/UNIVERSAL-moniker-%{version}/%{name}-prov
|
|
|
b2082f8 |
chmod +x %{__perl_provides}
|
|
|
b2082f8 |
|
|
|
37a3a23 |
%build
|
|
|
37a3a23 |
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
37a3a23 |
make
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%install
|
|
|
37a3a23 |
rm -rf $RPM_BUILD_ROOT
|
|
|
37a3a23 |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
37a3a23 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
37a3a23 |
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
37a3a23 |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%check
|
|
|
37a3a23 |
make test
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%clean
|
|
|
37a3a23 |
rm -rf $RPM_BUILD_ROOT
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%files
|
|
|
37a3a23 |
%defattr(-,root,root,-)
|
|
|
37a3a23 |
%doc Changes README
|
|
|
37a3a23 |
%{perl_vendorlib}/UNIVERSAL
|
|
|
37a3a23 |
%{_mandir}/man3/*.3*
|
|
|
37a3a23 |
|
|
|
37a3a23 |
|
|
|
37a3a23 |
%changelog
|
|
|
414fcd7 |
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.08-7
|
|
|
414fcd7 |
- Rebuild for perl 5.10 (again)
|
|
|
414fcd7 |
|
|
|
c42c4e4 |
* Tue Jan 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-6
|
|
|
c42c4e4 |
- rebuild for new perl
|
|
|
c42c4e4 |
|
|
|
26ef7f2 |
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-5
|
|
|
26ef7f2 |
- license tag fix
|
|
|
26ef7f2 |
|
|
|
b2082f8 |
* Mon Sep 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-4
|
|
|
b2082f8 |
- filter out false provide
|
|
|
b2082f8 |
|
|
|
37a3a23 |
* Fri Aug 5 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-3
|
|
|
37a3a23 |
- add BR: perl(Lingua::EN::Inflect) to improve test coverage
|
|
|
37a3a23 |
- add README to %doc
|
|
|
37a3a23 |
|
|
|
37a3a23 |
* Fri Jul 8 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-2
|
|
|
37a3a23 |
- cleanups
|
|
|
37a3a23 |
|
|
|
37a3a23 |
* Wed Jul 6 2005 Tom "spot" Callaway <tcallawa@redhat.com> 0.08-1
|
|
|
37a3a23 |
- Initial package for Fedora Extras
|