[packages/perl-Net-UPnP] - new
baggins
baggins at pld-linux.org
Thu Jun 13 13:20:36 CEST 2013
commit 0c586606dd338bc3fe1c10c96b0cb3e96356f738
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Jun 13 13:20:17 2013 +0200
- new
perl-Net-UPnP.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
---
diff --git a/perl-Net-UPnP.spec b/perl-Net-UPnP.spec
new file mode 100644
index 0000000..521e337
--- /dev/null
+++ b/perl-Net-UPnP.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Net
+%define pnam UPnP
+%include /usr/lib/rpm/macros.perl
+Summary: Net::UPnP - Perl extension for UPnP
+Name: perl-Net-UPnP
+Version: 1.4.2
+Release: 1
+License: BSD
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bc009fd76b565df40a70aca49af82a7d
+URL: http://search.cpan.org/dist/Net-UPnP/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package provides some functions to control UPnP devices.
+
+Currently, the package provides only functions for the control point.
+To control UPnP devices, see Net::UPnP::ControlPoint.
+
+As a sample of the control point, the package provides
+Net::UPnP::AV::MediaServer to control the devices such as
+DLNA media servers. As the example, please dms2vodcast.pl
+that converts from the MPEG2 movies to the MPEG4 one and
+outputs the RSS file for Vodcasting.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Net/*.pm
+%{perl_vendorlib}/Net/UPnP
+%{_mandir}/man3/*
+%{_examplesdir}/%{name}-%{version}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-UPnP.git/commitdiff/0c586606dd338bc3fe1c10c96b0cb3e96356f738
More information about the pld-cvs-commit
mailing list