2024-01-06 09:34:54 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-SVG-Parser
|
|
|
|
Version: 1.03
|
2024-03-29 17:25:54 +01:00
|
|
|
Release: 3mamba
|
2024-01-06 09:34:54 +01:00
|
|
|
Summary: SVG::Parser - XML Parser for SVG documents
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-03-29 17:25:54 +01:00
|
|
|
URL: https://www.cpan.org/
|
2024-01-06 09:34:54 +01:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PE/PETERW/SVG-Parser-%{version}.tar.gz
|
|
|
|
License: Artistic, GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-SVG
|
|
|
|
BuildRequires: perl-XML-Parser
|
|
|
|
BuildRequires: perl-XML-SAX
|
|
|
|
BuildRequires: perl-XML-Sax-Base
|
2024-03-29 17:25:54 +01:00
|
|
|
BuildRequires: perl-devel
|
2024-01-06 09:34:54 +01:00
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
SVG::Parser - XML Parser for SVG documents.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n SVG-Parser-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Build.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
./Build
|
|
|
|
./Build test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
./Build pure_install --destdir %{buildroot}
|
|
|
|
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
|
2024-03-29 17:25:54 +01:00
|
|
|
* Fri Mar 29 2024 Automatic Build System <autodist@openmamba.org> 1.03-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-06 09:34:54 +01:00
|
|
|
* Sat Nov 24 2012 Davide Madrisan <davide.madrisan@gmail.com> 1.03-2mamba
|
|
|
|
- add build requirements
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.03-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Mon Oct 01 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.01-1mamba
|
|
|
|
- package created by autospec
|