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