perl-XML-RegExp/perl-XML-RegExp.spec

70 lines
2.3 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-XML-RegExp
Version: 0.04
Release: 3mamba
Summary: XML::RegExp - Regular expressions for XML tokens
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/T/TJ/TJMATHER/XML-RegExp-%{version}.tar.gz
License: Artistic, GPL
Requires: perl >= %perl_major_ver
BuildRequires: perl-devel >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This package contains regular expressions for the following XML tokens: BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar, NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.
%prep
%setup -q -n XML-RegExp-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%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
* Sun Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-3mamba
- perl 5.16 mass rebuild
* Sun Jul 01 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.04-2mamba
- specfile and maintainer updated
* Mon Apr 02 2012 Automatic Build System <autodist@mambasoft.it> 0.04-1mamba
- automatic version update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.03-4mamba
- automatic rebuild by autodist
* Tue Jul 25 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 0.03-3qilnx
- rebuild by autospec
* Tue Oct 05 2004 Davide Madrisan <davide.madrisan@qilinux.it> 0.03-2qilnx
- specfile modified to match QiLinux standards
* Tue Sep 14 2004 Matteo Bernasconi <voyagernm@virgilio.it> 0.03-1qilnx
- first build