]> git.pld-linux.org Git - packages/perl-Net-UPnP.git/commitdiff
- new auto/th/perl-Net-UPnP-1.4.2-1
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Jun 2013 11:20:17 +0000 (13:20 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 13 Jun 2013 11:20:17 +0000 (13:20 +0200)
perl-Net-UPnP.spec [new file with mode: 0644]

diff --git a/perl-Net-UPnP.spec b/perl-Net-UPnP.spec
new file mode 100644 (file)
index 0000000..521e337
--- /dev/null
@@ -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}
This page took 0.057266 seconds and 4 git commands to generate.