]> git.pld-linux.org Git - packages/perl-Class-Tiny.git/commitdiff
- new auto/th/perl-Class-Tiny-1.006-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Nov 2016 20:17:04 +0000 (21:17 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 16 Nov 2016 20:17:04 +0000 (21:17 +0100)
perl-Class-Tiny.spec [new file with mode: 0644]

diff --git a/perl-Class-Tiny.spec b/perl-Class-Tiny.spec
new file mode 100644 (file)
index 0000000..095607e
--- /dev/null
@@ -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*
This page took 0.13 seconds and 4 git commands to generate.