# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %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.04 Release: 1 # 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: 71b2eabfe0601c7d9ff850aab5f86567 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 %{perl_vendorarch}/auto/Acme/Damn/*.bs %attr(755,root,root) %{perl_vendorarch}/auto/Acme/Damn/*.so %{_mandir}/man3/*