%define upstream_name accessors %define upstream_version 1.01 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 4 Summary: Create accessor methods in caller's package License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/accessors/ Source0: http://www.cpan.org/authors/id/S/SP/SPURKIS/%{upstream_name}-%{upstream_version}.tar.gz BuildArch: noarch BuildRequires: perl(Module::Build) >= 0.200.0 BuildRequires: perl(Test::More) >= 0.10.0 BuildRequires: perl >= 1:5.6.0 Provides: perl(accessors) %description The accessors pragma lets you create simple accessors at compile-time. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Build.PL installdirs=vendor ./Build %install ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; # A few of the .pm modules have bogus execute permission find $RPM_BUILD_ROOT%{perl_vendorlib} -name *.pm | xargs chmod a-x %check ./Build test %files %defattr(-,root,root,-) %doc Changes INSTALL META.yml MYMETA.yml README TODO %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Mar 28 2013 jquelin <jquelin> 1.10.0-4.mga3 + Revision: 405961 - add missing provides * Sun Jan 13 2013 umeabot <umeabot> 1.10.0-3.mga3 + Revision: 375337 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Mon Jun 04 2012 jquelin <jquelin> 1.10.0-2.mga3 + Revision: 254287 - rebuild to auto-extract provides * Tue Mar 15 2011 saispo <saispo> 1.01-2.mga1 + Revision: 72103 - Fix Requires * Tue Mar 15 2011 saispo <saispo> 1.01-1.mga1 + Revision: 72075 - Fix build with removing fixperms - imported package perl-accessors