package created by autospec [release 0.07-1mamba;Fri Nov 05 2010]

This commit is contained in:
Silvan Calarco 2024-01-06 09:48:38 +01:00
parent fd9c6a1e8b
commit 79d0ac662e
2 changed files with 53 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# perl-Text-Query
Text::Query Query processing framework.

51
perl-Text-Query.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 0.07-1mamba
- package created by autospec