add build requirements [release 1.03-2mamba;Sat Nov 24 2012]
This commit is contained in:
parent
a7032ac9b7
commit
8d42b9ddca
@ -1,2 +1,4 @@
|
|||||||
# perl-SVG-Parser
|
# perl-SVG-Parser
|
||||||
|
|
||||||
|
SVG::Parser - XML Parser for SVG documents.
|
||||||
|
|
||||||
|
66
perl-SVG-Parser.spec
Normal file
66
perl-SVG-Parser.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
||||||
|
|
||||||
|
Name: perl-SVG-Parser
|
||||||
|
Version: 1.03
|
||||||
|
Release: 2mamba
|
||||||
|
Summary: SVG::Parser - XML Parser for SVG documents
|
||||||
|
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/P/PE/PETERW/SVG-Parser-%{version}.tar.gz
|
||||||
|
License: Artistic, GPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: perl-devel
|
||||||
|
BuildRequires: perl-SVG
|
||||||
|
BuildRequires: perl-XML-Parser
|
||||||
|
BuildRequires: perl-XML-SAX
|
||||||
|
BuildRequires: perl-XML-Sax-Base
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
Requires: perl >= %perl_major_ver
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
|
%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
|
||||||
|
* 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
|
Loading…
Reference in New Issue
Block a user