# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir SWF %define pnam File Summary: SWF::File - Create SWF file. Name: perl-SWF-File Version: 0.36 Release: 0.2 License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRequires: perl-Data-TemporaryBag BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq 'perl(anything_fake_or_conditional)' %description SWF::File module can be used to make SWF (Macromedia Flash(R)) movie. SWF::File is a subclass of SWF::BinStream::Write, so you can pack SWF::Element::Tags in it. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build # Don't use pipes here: they generally don't work. Apply a patch. %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} # if module isn't noarch, use: # %{__make} \ # OPTIMIZE="%{rpmcflags}" %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README # use macros: %{perl_vendorlib}/* %{perl_vendorarch}/* %{_mandir}/man3/*