# # Conditional build: %bcond_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.UTF-8): Moduł perla Text::Glob - dopasowywanie tekstu do wzorców Name: perl-Text-Glob Version: 0.07 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: e96a4fef8eb2037a85a8119dddc8a4f9 BuildRequires: perl-devel >= 1:5.8.0 %if %{with tests} BuildRequires: perl-Test-Simple %endif BuildRequires: rpm-perlprov >= 4.1-13 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.UTF-8 Text::Glob jest implementacją dopasowywania w stylu glob(3), które może być używane do dopasowywania tekstu, a nie nazw plików. Jeśli potrzeba pełnej implementacji glob dla plików, należy użyć modułu File::Glob zamiast tego. %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) %doc Changes %{perl_vendorlib}/Text/*.pm %{_mandir}/man3/*