소스 검색

* new packages

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@5760 ec354946-7b23-47d6-9f5a-488ba84defc7
shaolin 13 년 전
부모
커밋
63ba33c81c
2개의 변경된 파일180개의 추가작업 그리고 0개의 파일을 삭제
  1. 89 0
      p/perl-Devel-EnforceEncapsulation/perl-Devel-EnforceEncapsulation-vl.spec
  2. 91 0
      p/perl-Perl-Critic-More/perl-Perl-Critic-More-vl.spec

+ 89 - 0
p/perl-Devel-EnforceEncapsulation/perl-Devel-EnforceEncapsulation-vl.spec

@@ -0,0 +1,89 @@
+Name:		perl-Devel-EnforceEncapsulation
+Version:	0.50
+Release:	1%{?_dist_release}
+Summary:	Find access violations to blessed objects
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/Devel-EnforceEncapsulation/
+Source0:	http://search.cpan.org/CPAN/authors/id/C/CL/CLOTHO/Devel-EnforceEncapsulation-%{version}.tgz
+BuildArch:	noarch
+BuildRequires:	perl(Carp)
+BuildRequires:	perl(English)
+BuildRequires:	perl(ExtUtils::MakeMaker)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Test::Pod)
+BuildRequires:	perl(Test::Pod::Coverage)
+Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+Encapsulation is the practice of creating subroutines to access the properties
+of a class instead of accessing those properties directly. The advantage of
+good encapsulation is that the author is permitted to change the internal
+implementation of a class without breaking its usage.
+
+Object-oriented programming in Perl is most commonly implemented via blessed
+hashes. This practice makes it easy for users of a class to violate
+encapsulation by simply accessing the hash values directly. Although less
+common, the same applies to classes implemented via blessed arrays, scalars,
+filehandles, etc.
+
+This module is a hack to block those direct accesses. If you try to access a
+hash value of an object from its own class, or a superclass or subclass, all
+goes well. If you try to access a hash value from any other package, an
+exception is thrown. The same applies to the scalar value of a blessed scalar,
+entry in a blessed array, etc.
+
+To be clear: this class is NOT intended for strict enforcement of
+encapsulation. If you want bullet-proof encapsulation, use inside-out objects
+or the like. Instead, this module is intended to be a development or debugging
+aid in catching places where direct access is used against classes implemented
+as blessed hashes.
+
+To repeat: the encapsulation enforced here is a hack and is easily
+circumvented. Please use this module for good (finding bugs), not evil (making
+life harder for downstream developers).
+
+%prep
+%setup -q -n Devel-EnforceEncapsulation-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
+%{_fixperms} %{buildroot}
+
+%check
+make test AUTHOR_TEST=1 AUTHOR_TEST_CDOLAN=1
+
+%files
+%defattr(-,root,root,-)
+%doc CHANGES LICENSE README index.html
+%{perl_vendorlib}/Devel/
+%{_mandir}/man3/Devel::EnforceEncapsulation.3pm*
+
+%changelog
+* Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.50-1
+- initial build for Vine Linux
+
+* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.50-5
+- BR: perl(Carp) and perl(English)
+
+* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.50-4
+- Perl mass rebuild
+
+* Mon Apr 11 2011 Paul Howarth <paul@city-fan.org> - 0.50-3
+- Clean up for modern rpmbuild
+
+* Mon Apr 11 2011 Paul Howarth <paul@city-fan.org> - 0.50-2
+- Nobody else likes macros for commands
+
+* Fri Mar 18 2011 Paul Howarth <paul@city-fan.org> - 0.50-1
+- Initial RPM version

+ 91 - 0
p/perl-Perl-Critic-More/perl-Perl-Critic-More-vl.spec

@@ -0,0 +1,91 @@
+Name:           perl-Perl-Critic-More
+Version:        1.000
+Release:        1%{?_dist_release}
+Summary:        Supplemental policies for Perl::Critic
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Perl-Critic-More/
+Source0:        http://www.cpan.org/authors/id/E/EL/ELLIOTJS/Perl-Critic-More-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(Perl::Critic) >= 1.082
+BuildRequires:  perl(Perl::MinimumVersion) >= 0.14
+BuildRequires:  perl(Readonly) >= 1.03
+# Tests:
+BuildRequires:  perl(List::MoreUtils)
+BuildRequires:  perl(Perl::Critic::Config)
+BuildRequires:  perl(Perl::Critic::Policy)
+BuildRequires:  perl(Perl::Critic::TestUtils)
+BuildRequires:  perl(Perl::Critic::Utils)
+BuildRequires:  perl(Perl::Critic::Violation)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod) >= 1.00
+BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires:       perl(Perl::Critic) >= 1.082
+Requires:       perl(Perl::MinimumVersion) >= 0.14
+Requires:       perl(Readonly) >= 1.03
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       shaolin
+
+%description
+This is a collection of Perl::Critic policies that are not included in the
+Perl::Critic core for a variety of reasons.
+
+%prep
+%setup -q -n Perl-Critic-More-%{version}
+
+%if %{_dist_release} > "vl6"
+# filter for RPM 4.9
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Readonly\\)\\s*$
+%else
+cat << \EOF > %{name}-req
+#!/bin/sh
+%{__perl_requires} $* |\
+sed -e '/perl(Readonly)/d'
+EOF
+
+%global __perl_requires %{_builddir}/Perl-Critic-More-%{version}/%{name}-req
+chmod +x %{__perl_requires}
+%endif
+
+%build
+%{__perl} Build.PL installdirs=vendor
+./Build
+
+%install
+rm -rf ${RPM_BUILD_ROOT}
+./Build install destdir=${RPM_BUILD_ROOT} create_packlist=0
+find ${RPM_BUILD_ROOT} -depth -type d -exec rmdir {} 2>/dev/null \;
+%{_fixperms} ${RPM_BUILD_ROOT}/*
+
+%check
+./Build test
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes LICENSE README TODO.pod
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Fri Feb 24 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.000-1
+- initial build for Vine Linux
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Jul 26 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.000-3
+- add RPM4.9 macro filter
+
+* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.000-2
+- Perl mass rebuild
+
+* Thu Mar 24 2011 Petr Pisar <ppisar@redhat.com> 1.000-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot stuff