perl-Text-Autoformat/perl-Text-Autoformat.spec

83 lines
2.7 KiB
RPMSpec
Raw Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Text-Autoformat
Version: 1.669004
Release: 1mamba
Summary: Text::Autoformat - Provides intelligent formatting of plaintext
Group: Development/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.cpan.org
Source: http://www.cpan.org/authors/id/D/DC/DCONWAY/Text-Autoformat-%{version}.tar.gz
License: GPL
Requires: perl >= %perl_major_ver
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-devel
BuildRequires: perl-Text-Reform
## AUTOBUILDREQ-END
Obsoletes: perl-Text-AutoFormat
Provides: perl-Text-AutoFormat = %{version}
BuildRoot: %{_tmppath}/perl-root
%description
Text::Autoformat provides intelligent formatting of plaintext without the need for any kind of embedded mark-up.
%prep
%setup -q -n Text-Autoformat-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[[ "%{buildroot}" ]] && rm -rf %{buildroot}
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[[ "%{buildroot}" ]] && rm -rf %{buildroot}
%files -f .packlist
%defattr(-,root,root)
%changelog
* Wed Aug 07 2013 Automatic Build System <autodist@mambasoft.it> 1.669004-1mamba
- automatic update by autodist
* Wed May 15 2013 Automatic Build System <autodist@mambasoft.it> 1.669003-1mamba
- automatic version update by autodist
* Mon Nov 12 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.669002-2mamba
- perl 5.16 mass rebuild
* Fri Jun 25 2010 Automatic Build System <autodist@mambasoft.it> 1.669002-1mamba
- automatic update by autodist
* Tue Apr 13 2010 Automatic Build System <autodist@mambasoft.it> 1.668001-1mamba
- automatic update by autodist
* Fri Apr 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.666.0-1mamba
- automatic update by autodist
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-2mamba
- automatic rebuild by autodist
* Thu Nov 15 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.13-1mamba
- update to 1.13
* Tue Feb 15 2005 Davide Madrisan <davide.madrisan@qilinux.it> 1.12-5qilnx
- obsoletes perl-Text-AutoFormat
* Mon Oct 25 2004 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.12-4qilnx
- package created by autospec (rebuilt after SRPM loss)