%define pkg_name Readonly-XS %define pkg_version 1.04 %define rpm_pkg_version 1.04 %define rpm_pkg_release 1.n0i.1 Summary: XS version of Readonly.pm Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/R/RO/ROODE/%{pkg_name}-%{pkg_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools Requires: perl(Readonly) >= 1.02 BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Readonly) >= 1.02} %{!?_without_test:BuildRequires: perl(Test::More)} %description The Readonly module (q.v.) is an effective way to create non-modifiable variables. However, it's relatively slow. This module corrects the speed problem, at least with respect to scalar variables. When Readonly::XS is installed, Readonly uses it to access the internals of scalar variables. %prep %setup -q -n %{pkg_name}-%{pkg_version} %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README %changelog * Mon May 28 2007 Marius Feraru - 1.04-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer 1.14.8 - version 1.04