[packages/perl-Class-Tiny] - new

qboosh qboosh at pld-linux.org
Wed Nov 16 21:17:03 CET 2016


commit 1eb14a8e51524276facb301b112c0bf758dd015b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Nov 16 21:17:04 2016 +0100

    - new

 perl-Class-Tiny.spec | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 58 insertions(+)
---
diff --git a/perl-Class-Tiny.spec b/perl-Class-Tiny.spec
new file mode 100644
index 0000000..095607e
--- /dev/null
+++ b/perl-Class-Tiny.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Class
+%define		pnam	Tiny
+%include	/usr/lib/rpm/macros.perl
+Summary:	Class::Tiny - Minimalist class construction
+Summary(pl.UTF-8):	Class::Tiny - minimalistyczne tworzenie klas
+Name:		perl-Class-Tiny
+Version:	1.006
+Release:	1
+License:	Apache v2.0
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	fa905646a85a1478b2db1fc9113cb6ac
+URL:		http://search.cpan.org/dist/Class-Tiny/
+BuildRequires:	perl-ExtUtils-MakeMaker >= 6.17
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Test-Simple >= 0.96
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module offers a minimalist class construction kit in around 120
+lines of code.
+
+%description -l pl.UTF-8
+Ten moduł oferuje minimalny zestaw konstrukcyjny do tworzenia klas w
+około 120 liniach kodu.
+
+%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
+%{perl_vendorlib}/Class/Tiny.pm
+%{_mandir}/man3/Class::Tiny.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Class-Tiny.git/commitdiff/1eb14a8e51524276facb301b112c0bf758dd015b



More information about the pld-cvs-commit mailing list