rpms/perl-Text-Autoformat/devel Text-Autoformat-filter-provides.sh, NONE, 1.1 perl-Text-Autoformat.spec, 1.6, 1.7 filter-provides.sh, 1.2, NONE

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Mon Sep 4 18:51:23 UTC 2006


Author: steve

Update of /cvs/extras/rpms/perl-Text-Autoformat/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15053

Modified Files:
	perl-Text-Autoformat.spec 
Added Files:
	Text-Autoformat-filter-provides.sh 
Removed Files:
	filter-provides.sh 
Log Message:
Rework spec to look more like current cpanspec output.


--- NEW FILE Text-Autoformat-filter-provides.sh ---
#!/bin/sh

@@PERL_PROV@@ "$@" | sed -e '/^perl(Hang)$/d' \
    -e '/^perl(NullHang)$/d'


Index: perl-Text-Autoformat.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Text-Autoformat/devel/perl-Text-Autoformat.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- perl-Text-Autoformat.spec	6 Sep 2005 01:26:32 -0000	1.6
+++ perl-Text-Autoformat.spec	4 Sep 2006 18:51:23 -0000	1.7
@@ -1,22 +1,21 @@
 Name:           perl-Text-Autoformat
 Version:        1.13
-Release:        3%{?dist}
-Summary:        Text::Autoformat Perl module
+Release:        4%{?dist}
+Summary:        Automatic text wrapping and reformatting
 License:        Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Text-Autoformat/
-Source0:        http://www.cpan.org/modules/by-module/Text/Text-Autoformat-%{version}.tar.gz
-
-# Filter out perl(Hang) and perl(NullHang) auto-provides.
-Source1:        filter-provides.sh
-%define _use_internal_dependency_generator 0
-%define __find_provides %{SOURCE1}
-
+Source0:        http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Autoformat-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
-BuildRequires:  perl(Text::Reform)
+BuildRequires:  perl(Text::Reform) >= 1.11
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+# Filter out perl(Hang) and perl(NullHang) auto-provides.
+Source99:       Text-Autoformat-filter-provides.sh
+%global real_perl_provides %{__perl_provides}
+%define __perl_provides %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)-filter-provides
+
 %description
 Text::Autoformat provides intelligent formatting of plaintext without the
 need for any kind of embedded mark-up. The module recognizes Internet
@@ -32,6 +31,9 @@
 %setup -q -n Text-Autoformat-%{version}
 chmod a-x lib/Text/Autoformat.pm Changes README
 
+sed -e 's,@@PERL_PROV@@,%{real_perl_provides},' %{SOURCE99} > %{__perl_provides}
+chmod +x %{__perl_provides}
+
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
@@ -42,25 +44,26 @@
 make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
 
 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 -depth -type d -exec rmdir {} 2>/dev/null \;
 
 chmod -R u+rwX,go+rX,go-w $RPM_BUILD_ROOT/*
 
-perldoc -t perlartistic > Artistic
-
 %check
 make test
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT %{__perl_provides}
 
 %files
 %defattr(-,root,root,-)
-%doc Changes README Artistic
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Fri Sep 01 2006 Steven Pritchard <steve at kspei.com> 1.13-4
+- Rework spec to look more like current cpanspec output.
+
 * Mon Sep 05 2005 Steven Pritchard <steve at kspei.com> 1.13-3
 - Minor spec cleanup.
 - Add Artistic.


--- filter-provides.sh DELETED ---




More information about the scm-commits mailing list