- Minor spec cleanup.

- Add Artistic.
epel9
Steven Pritchard 20 years ago
parent 916f874445
commit 8fb40ae269

@ -1,19 +1,14 @@
%{!?perl_vendorlib: %define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)}
Name: perl-Text-Reform Name: perl-Text-Reform
Version: 1.11 Version: 1.11
Release: 4%{?dist} Release: 5%{?dist}
Summary: Manual text wrapping and reformatting Summary: Manual text wrapping and reformatting
Group: Development/Libraries Group: Development/Libraries
License: Artistic License: Artistic
URL: http://search.cpan.org/dist/Text-Reform/ URL: http://search.cpan.org/dist/Text-Reform/
Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Reform-1.11.tar.gz Source0: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Reform-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch BuildArch: noarch
BuildRequires: perl >= 1:5.6.1
Requires: perl(TeX::Hyphen) Requires: perl(TeX::Hyphen)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
@ -21,44 +16,47 @@ Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
The module supplies a re-entrant, highly configurable replacement for the The module supplies a re-entrant, highly configurable replacement for the
built-in Perl format() mechanism. built-in Perl format() mechanism.
%prep %prep
%setup -q -n Text-Reform-%{version} %setup -q -n Text-Reform-%{version}
perl -pi -e 's,/usr/local/bin/perl,%{__perl},' *.pl %{__perl} -pi -e 's,/usr/local/bin/perl,%{__perl},' *.pl
chmod 644 Changes README lib/Text/*.pm demo*.pl chmod 644 Changes README lib/Text/*.pm demo*.pl
%build %build
%{__perl} Makefile.PL INSTALLDIRS=vendor %{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
# demo scripts packaged as documentation files # demo scripts packaged as documentation files
find $RPM_BUILD_ROOT -type f -name 'demo*.pl' -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name 'demo*.pl' -exec rm -f {} \;
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \; find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null \;
chmod -R u+w $RPM_BUILD_ROOT/*
chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
%check || : perldoc -t perlartistic > Artistic
make test
%check
make test
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc Changes README demo*.pl %doc Changes README demo*.pl Artistic
%{perl_vendorlib}/Text/ %{perl_vendorlib}/Text/
%{_mandir}/man3/*.3* %{_mandir}/man3/*.3*
%changelog %changelog
* Mon Sep 05 2005 Steven Pritchard <steve@kspei.com> 0.11-5
- Minor spec cleanup.
- Add Artistic.
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
- rebuilt - rebuilt

Loading…
Cancel
Save