--- /dev/null
+#
+# 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*