--- /dev/null
+#
+# Conditional build:
+# _without_tests - do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Text
+%define pnam Glob
+Summary: Text::Glob perl module - match globbing patterns against text
+Summary(pl): Modu³ perla Text::Glob - dopasowywanie tekstu do wzorców
+Name: perl-Text-Glob
+Version: 0.05
+Release: 1
+License: GPL or Artistic
+Group: Development/Languages/Perl
+Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+BuildRequires: rpm-perlprov >= 3.0.3-16
+%if %{?_without_tests:0}%{!?_without_tests:1}
+BuildRequires: perl-Test-Simple
+%endif
+BuildRequires: perl >= 5.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text::Glob implements glob(3) style matching that can be used to match
+against text, rather than fetching names from a filesystem. If you
+want to do full file globbing use the File::Glob module instead.
+
+%description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+perl Makefile.PL
+%{__make}
+%{!?_without_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)
+%doc Changes
+%{perl_sitelib}/Text/*.pm
+%{_mandir}/man3/*