From 79d0ac662eabcbf7a1a292102911505db2424466 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:48:38 +0100 Subject: [PATCH] package created by autospec [release 0.07-1mamba;Fri Nov 05 2010] --- README.md | 2 ++ perl-Text-Query.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 perl-Text-Query.spec diff --git a/README.md b/README.md index 3c2beff..2a2defd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Text-Query +Text::Query Query processing framework. + diff --git a/perl-Text-Query.spec b/perl-Text-Query.spec new file mode 100644 index 0000000..4802e07 --- /dev/null +++ b/perl-Text-Query.spec @@ -0,0 +1,51 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Text-Query +Version: 0.07 +Release: 1mamba +Summary: Text::Query Query processing framework +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/E/EB/EBOHLMAN/Text-Query-%{version}.tar.gz +License: Artistic, GPL +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Text::Query Query processing framework. + +%prep +%setup -q -n Text-Query-%{version} + +%build +perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor +%make -j1 +#% make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Fri Nov 05 2010 Silvan Calarco 0.07-1mamba +- package created by autospec