perl-Text-Wrapper/perl-Text-Wrapper.spec

62 lines
1.4 KiB
RPMSpec

#
# spec file for package perl-Text-Wrapper
#
# norootforbuild
Name: perl-Text-Wrapper
%define real_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Simple word wrapping routine
Url: http://search.cpan.org/perldoc?Text::Wrapper
Group: Development/Libraries/Perl
License: Artistic License
Version: 1.02
Release: 1
Vendor: openSUSE-Education
Source: %{real_name}-%{version}.tar.bz2
Patch0: perl-Text-Wrapper-Makefile.patch
BuildRequires: perl-macros
%{perl_requires}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Text::Wrapper provides simple word wrapping. It breaks long lines, but does not
alter spacing or remove existing line breaks. If you're looking for more
sophisticated text formatting, try the Text::Format module.
Reasons to use Text::Wrapper instead of Text::Format:
Text::Wrapper is significantly smaller.
It does not alter existing whitespace or combine short lines. It only breaks long lines.
Again, if Text::Wrapper doesn't meet your needs, try Text::Format.
Author:
-------
Christopher J. Madsen <perl AT cjmweb.net>
%prep
%setup -q -n %{real_name}-%{version}
%patch0 -p0
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changes README MANIFEST example
%changelog