From ddcf1b8662ae0bc9c474114ceb171f73d083380d Mon Sep 17 00:00:00 2001 From: gil Date: Sat, 6 Jan 2024 08:42:09 +0100 Subject: [PATCH] package created by autospec [release 0.14-1mamba;Mon Feb 21 2011] --- README.md | 2 ++ perl-Class-Trigger.spec | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 perl-Class-Trigger.spec diff --git a/README.md b/README.md index a484139..7379213 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Class-Trigger +Class::Trigger is a mixin class to add / call triggers (or hooks) that get called at some points you specify. + diff --git a/perl-Class-Trigger.spec b/perl-Class-Trigger.spec new file mode 100644 index 0000000..2bc8343 --- /dev/null +++ b/perl-Class-Trigger.spec @@ -0,0 +1,53 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Class-Trigger +Version: 0.14 +Release: 1mamba +Summary: Class::Trigger - Mixin to add / call inheritable triggers +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/Class-Trigger-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(IO::Scalar) +BuildRequires: perl(IO::WrapTie) +BuildRequires: perl(Test::More) +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +Requires: perl(IO::Scalar) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Class::Trigger is a mixin class to add / call triggers (or hooks) that get called at some points you specify. + +%prep +%setup -q -n Class-Trigger-%{version} + + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +find %{buildroot} -type f -name .packlist -exec rm -f {} ';' +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w %{buildroot}/* + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{perl_vendorlib}/Class/* +%{_mandir}/man3/*.3pm.gz +%doc Changes README + +%changelog +* Mon Feb 21 2011 gil 0.14-1mamba +- package created by autospec