perl-Net-UPnP/perl-Net-UPnP.spec

65 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

Name: perl-Net-UPnP
Version: 1.4.2
Release: 2mamba
Summary: Net::UPnP - A perl module for UPnP net parsing
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: http://www.cpan.org
Source: http://cpan.perl.org/authors/id/S/SK/SKONNO/Net-UPnP-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
## AUTOBUILDREQ-END
Requires: perl >= %perl_major_ver
Provides: perl-net-UPnP
Obsoletes: perl-net-UPnP
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A perl module for HTML parsing.
%prep
%setup -q -n Net-UPnP-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%ifnarch arm
%make test
%endif
%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 -f $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}"
%files -f .packlist
%defattr(-,root,root)
%changelog
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2mamba
- perl 5.16 mass rebuild
* Tue Jul 26 2011 Automatic Build System <autodist@mambasoft.it> 1.4.2-1mamba
- automatic version update by autodist
* Tue Jul 26 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.1-2mamba
- fix package name to match correct name and specfile name
* Thu Jun 21 2011 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 1.4.1-1mamba
- First build