[packages/perl-Class-Mix] - initial

arekm arekm at pld-linux.org
Thu Oct 10 13:14:04 CEST 2013


commit 25f9e65a34e62ef7f0d0f6001eb9ae52836eefa4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Oct 10 13:13:53 2013 +0200

    - initial

 perl-Class-Mix.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
---
diff --git a/perl-Class-Mix.spec b/perl-Class-Mix.spec
new file mode 100644
index 0000000..44cc1cf
--- /dev/null
+++ b/perl-Class-Mix.spec
@@ -0,0 +1,50 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define		pdir	Class
+%define		pnam	Mix
+Summary:	Class::Mix - dynamic class mixing
+Name:		perl-Class-Mix
+Version:	0.005
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	7d6c4e70dea13678d845898a4a1565c0
+BuildRequires:	perl-Params-Classify
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The mix_class function provided by this module dynamically generates
+`anonymous' classes with specified inheritance.
+
+%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} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{perl_vendorlib}/Class/Mix.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Class-Mix.git/commitdiff/25f9e65a34e62ef7f0d0f6001eb9ae52836eefa4



More information about the pld-cvs-commit mailing list