%define pkg_name Text-Lorem %define pkg_version 0.3 %define rpm_pkg_version 0.3 %define rpm_pkg_release 3.n0i.4 Summary: Generate random Latin looking text 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/A/AD/ADEOLA/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(Module::Build) BuildRequires: %{_bindir}/pod2man %{!?_without_test:BuildRequires: perl(Test::More)} %description Often when developing a website or other application it's important to have placeholders for content. This module generates prescribed amounts of fake Latin text. %prep %setup -q -n %{pkg_name}-%{pkg_version} [ -f Makefile.PL ] || cat < Makefile.PL use Module::Build::Compat; Module::Build::Compat->run_build_pl(args => \@ARGV); Module::Build::Compat->write_makefile(); EOF %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__install} -m 0755 -D bin/lorem $RPM_BUILD_ROOT%{_bindir}/lorem %{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1 %{_bindir}/pod2man -n 'lorem' -s 1 bin/lorem "$RPM_BUILD_ROOT%{_mandir}/man1/lorem.1" %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m} %doc CHANGES README %changelog * Tue May 22 2007 Marius Feraru - 0.3-3.n0i.4 - rebuild * Sat Jul 23 2005 Marius Feraru 0.3-2.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Mar 20 2005 Marius Feraru 0:0.3-1.n0i.2 - automatic rebuild (perl 5.8.6) * Fri Jan 14 2005 Marius Feraru 0:0.3-1.n0i.1 - version 0.3 - spec file (re?)created using N0i::CPAN::RPMizer/2004120601