diff --git a/.gitignore b/.gitignore index e69de29..ba0ee05 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Perl-Tidy-Sweetened-1.05.tar.gz diff --git a/perl-Perl-Tidy-Sweetened.spec b/perl-Perl-Tidy-Sweetened.spec new file mode 100644 index 0000000..a803801 --- /dev/null +++ b/perl-Perl-Tidy-Sweetened.spec @@ -0,0 +1,51 @@ +Name: perl-Perl-Tidy-Sweetened +Version: 1.05 +Release: 1%{?dist} +Summary: Tweaks to Perl::Tidy to support some syntactic sugar +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Perl-Tidy-Sweetened/ +Source0: http://www.cpan.org/authors/id/M/MG/MGRIMES/Perl-Tidy-Sweetened-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl(Module::Build) +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(Perl::Tidy) +BuildRequires: perl(strict) +BuildRequires: perl(warnings) +# Tests +BuildRequires: perl(lib) +BuildRequires: perl(Test::Most) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +%description +There are a number of modules on CPAN that allow users to write their +classes with a more "modern" syntax. These tools eliminate the need to +shift off $self, can support type checking and offer other improvements. +Unfortunately, they can break the support tools that the Perl community has +come to rely on. This module attempts to work around those issues. + +%prep +%setup -q -n Perl-Tidy-Sweetened-%{version} + +%build +perl Build.PL installdirs=vendor +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes README TODO +%{_bindir}/* +%{perl_vendorlib}/* +%{_mandir}/man1/* +%{_mandir}/man3/* + +%changelog +* Fri Nov 27 2015 Jitka Plesnikova - 1.05-1 +- Initial release diff --git a/sources b/sources index e69de29..ea4fb79 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +74431926425d21aac0fcaba8e90ba23c Perl-Tidy-Sweetened-1.05.tar.gz