From ab8253aa347832d6def34a5fedefacbad4bf742f Mon Sep 17 00:00:00 2001 From: ankry Date: Sun, 6 Oct 2002 00:41:59 +0000 Subject: [PATCH 1/1] - new, STBR Changed files: perl-Text-Glob.spec -> 1.1 --- perl-Text-Glob.spec | 52 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 perl-Text-Glob.spec diff --git a/perl-Text-Glob.spec b/perl-Text-Glob.spec new file mode 100644 index 0000000..dc72aea --- /dev/null +++ b/perl-Text-Glob.spec @@ -0,0 +1,52 @@ +# +# 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/* -- 2.44.0