Allisson Azevedo abf0292
%define tarname Perl6-Junction
Allisson Azevedo abf0292
Name:           perl-Perl6-Junction
Allisson Azevedo abf0292
Version:        1.40000
256882c
Release:        7%{?dist}
Allisson Azevedo abf0292
Summary:        Perl6 style Junction operators in Perl5
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Group:          Development/Libraries
Allisson Azevedo abf0292
License:        GPL+ or Artistic
Allisson Azevedo abf0292
URL:            http://search.cpan.org/dist/Perl6-Junction/
Allisson Azevedo abf0292
Source0:        http://search.cpan.org/CPAN/authors/id/C/CF/CFRANKS/%{tarname}-%{version}.tar.gz
Allisson Azevedo abf0292
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Allisson Azevedo abf0292
Allisson Azevedo abf0292
BuildArch:      noarch
Allisson Azevedo abf0292
# Correct for lots of packages, other common choices include eg. Module::Build
Allisson Azevedo abf0292
BuildRequires:  perl(ExtUtils::MakeMaker) perl(Test::More)
Allisson Azevedo abf0292
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%description
Allisson Azevedo abf0292
Perl6 style Junction operators in Perl5.
Allisson Azevedo abf0292
Allisson Azevedo abf0292
This is a lightweight module which provides 'Junction' operators, the most 
Allisson Azevedo abf0292
commonly used being 'any' and 'all'.
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Inspired by the Perl6 design docs, 
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Provides a limited subset of the functionality of L<Quantum::Superpositions>.
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%prep
Allisson Azevedo abf0292
%setup -q -n Perl6-Junction-%{version}
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%build
Allisson Azevedo abf0292
# Remove OPTIMIZE=... from noarch packages (unneeded)
Allisson Azevedo abf0292
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
Allisson Azevedo abf0292
make %{?_smp_mflags}
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%install
Allisson Azevedo abf0292
rm -rf $RPM_BUILD_ROOT
Allisson Azevedo abf0292
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
Allisson Azevedo abf0292
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
Allisson Azevedo abf0292
# Remove the next line from noarch packages (unneeded)
Allisson Azevedo abf0292
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
Allisson Azevedo abf0292
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
Allisson Azevedo abf0292
chmod -R u+w $RPM_BUILD_ROOT/*
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%check
Allisson Azevedo abf0292
make test
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%clean
Allisson Azevedo abf0292
rm -rf $RPM_BUILD_ROOT
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%files
Allisson Azevedo abf0292
%defattr(-,root,root,-)
Allisson Azevedo abf0292
%doc
Allisson Azevedo abf0292
# For noarch packages: vendorlib
Allisson Azevedo abf0292
%{perl_vendorlib}/*
Allisson Azevedo abf0292
# For arch-specific packages: vendorarch
Allisson Azevedo abf0292
#%{perl_vendorarch}/*
Allisson Azevedo abf0292
#%exclude %dir %{perl_vendorarch}/auto/
Allisson Azevedo abf0292
%{_mandir}/man3/*.3*
Allisson Azevedo abf0292
Allisson Azevedo abf0292
Allisson Azevedo abf0292
%changelog
256882c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40000-7
256882c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
256882c
8f2149b
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.40000-6
8f2149b
- 661697 rebuild for fixing problems with vendorach/lib
8f2149b
3f39747
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.40000-5
3f39747
- Mass rebuild with perl-5.12.0
3f39747
ebfb642
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.40000-4
ebfb642
- rebuild against perl 5.10.1
ebfb642
9088142
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40000-3
9088142
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9088142
7047842
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.40000-2
7047842
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7047842
Allisson Azevedo abf0292
Allisson Azevedo abf0292
* Sun Jan 25 2009 Allisson Azevedo <allisson@gmail.com> 1.40000-1
Allisson Azevedo abf0292
- Initial RPM release