# # Conditional build: %bcond_without tests # do not perform "make test" %define pdir Acme %define pnam Damn Summary: Acme::Damn - 'Unbless' Perl objects Summary(pl.UTF-8): Acme::Damn - "odbłogosławianie" obiektów Perla Name: perl-Acme-Damn Version: 0.08 Release: 3 # same as perl License: GPL v1+ or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 37862c217ddea1756a4e43b82e6eebdb URL: http://search.cpan.org/dist/Acme-Damn/ BuildRequires: perl-Test-Exception BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Acme::Damn provides a single routine, damn(), which takes a blessed reference (a Perl object), and unblesses it, to return the original reference. I can't think of any reason why you might want to do this, but just because it's of no use doesn't mean that you shouldn't be able to do it. %description -l pl.UTF-8 Acme::Damn dostarcza jedną funkcję: damn(), która przyjmuje pobłogosławioną referencję (obiekt perlowy) i odbłogosławia ją, aby zwrócić oryginalną referencję. Nie znaleziono na razie powodu, żeby to robić, ale to, że takie działanie nie ma zastosowania, nie znaczy, że nie powinno dać się tego zrobić. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} \ CC="%{__cc}" \ 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 %dir %{perl_vendorarch}/Acme %{perl_vendorarch}/Acme/*.pm %dir %{perl_vendorarch}/auto/Acme %dir %{perl_vendorarch}/auto/Acme/Damn %attr(755,root,root) %{perl_vendorarch}/auto/Acme/Damn/*.so %{_mandir}/man3/*