%global pkg_name i18n %global pkg_version 0.10 %global rpm_pkg_version 0.10 %global rpm_pkg_release 1.n0i.1 Summary: Perl Internationalization Pragma Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/modules/by-module/i18n/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: rpm-build-reb00t-perl BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(Locale::Maketext) BuildRequires: perl(Locale::Maketext::Lexicon) BuildRequires: perl(Locale::Maketext::Simple) # perl.req misses Requires: perl(Locale::Maketext) Requires: perl(Locale::Maketext::Lexicon) Requires: perl(Locale::Maketext::Simple) # perl.prov fuckup Provides: perl(i18n) = %{version} %global perl_filter_prov 'perl\\(i18n\\) = 18$' %description Internationalization (abbreviated "i18n") is the process of designing an application so that it can be adapted to various languages and regions. The most basic task is to let your program know which strings are meant for human consumption and which strings are intended for the computer. Strings for humans need to get localized (translated to the language of the human using your program) and strings for computers must not get translated. The "i18n" module gives you a remarkably simple way to mark strings that are intended for humans. All you do is put two tilde signs ("~~") in front of every string that is intended to be translated. That's it. All the other details of localization are handled outside the program. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{fix_encoding README} %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 * Sun Oct 14 2007 Marius Feraru - 0.10-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.14.11 - version 0.10