3 %bcond_with tests # perform "make test" (requires X server)
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Interfaces
8 Summary: Perl gstreamer base plugins bindings
9 Summary(pl.UTF-8): Wiązania podstawowych wtyczek gstreamera dla Perla
10 Name: perl-GStreamer-Interfaces
14 Group: Development/Languages/Perl
15 Source0: http://dl.sourceforge.net/gtk2-perl/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 4040257f5abc5e966ea78fef87cc4ca1
17 URL: http://gtk2-perl.sourceforge.net/
18 BuildRequires: gstreamer-plugins-base-devel >= 0.10.9
19 BuildRequires: perl-ExtUtils-Depends >= 0.205
20 BuildRequires: perl-ExtUtils-PkgConfig >= 1.07
21 BuildRequires: perl-GStreamer >= 0.09
22 BuildRequires: perl-Glib >= 1.180
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
25 Requires: perl-GStreamer >= 0.09
26 Requires: perl-Glib >= 1.180
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module provides Perl access to gstreamer base plugins library.
32 %description -l pl.UTF-8
33 Ten moduł daje dostęp z poziomu Perla do podstawowych wtyczek
37 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %{__perl} Makefile.PL \
45 OPTIMIZE="%{rpmcflags}"
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
55 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/GStreamer/Interfaces/*.pod
58 rm -rf $RPM_BUILD_ROOT
61 %defattr(644,root,root,755)
62 %doc ChangeLog NEWS README
63 %{perl_vendorarch}/GStreamer/Interfaces.pm
64 %dir %{perl_vendorarch}/GStreamer/Interfaces
65 %dir %{perl_vendorarch}/auto/GStreamer/Interfaces
66 %attr(755,root,root) %{perl_vendorarch}/auto/GStreamer/Interfaces/*.so
67 %{perl_vendorarch}/GStreamer/Interfaces/Install
68 %{perl_vendorarch}/auto/GStreamer/Interfaces/*.bs
69 %{_mandir}/man3/GStreamer::Interfaces*.3pm*