[packages/perl-Role-Hooks] Initial

arekm arekm at pld-linux.org
Fri Jun 12 20:35:22 CEST 2026


commit 8aed4471fc0622ad6b3a97684ebee77e9bc3f5df
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jun 12 20:34:49 2026 +0200

    Initial

 perl-Role-Hooks.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)
---
diff --git a/perl-Role-Hooks.spec b/perl-Role-Hooks.spec
new file mode 100644
index 0000000..b4f35da
--- /dev/null
+++ b/perl-Role-Hooks.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+#
+%define		pdir	Role
+%define		pnam	Hooks
+Summary:	Role::Hooks - hooks for roles
+Summary(pl.UTF-8):	Role::Hooks - haki dla ról
+Name:		perl-Role-Hooks
+Version:	0.008
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/modules/by-authors/id/T/TO/TOBYINK/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	2d672be1c6a268d34e5a8a10d14bfc2f
+URL:		https://metacpan.org/dist/Role-Hooks
+BuildRequires:	perl-Class-Method-Modifiers
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Requires
+BuildRequires:	perl-Test-Simple
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Role::Hooks allows a role to run a callback when it is applied to a
+class or to another role, when a class or role consuming it is
+instantiated, and so on. It supports Moose, Mouse, Moo and Role::Tiny
+roles.
+
+%description -l pl.UTF-8
+Role::Hooks pozwala roli uruchomić funkcję zwrotną, gdy jest ona
+stosowana do klasy lub innej roli, gdy klasa lub rola ją konsumująca
+jest tworzona itd. Obsługuje role Moose, Mouse, Moo oraz Role::Tiny.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Role/Hooks.pm
+%{_mandir}/man3/Role::Hooks.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Role-Hooks.git/commitdiff/8aed4471fc0622ad6b3a97684ebee77e9bc3f5df



More information about the pld-cvs-commit mailing list