diff --git a/README.md b/README.md index a34d369..830249b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Text-Iconv +This module provides a Perl interface to the iconv() codeset conversion function, as defined by the Single UNIX Specification. + diff --git a/perl-Text-Iconv.spec b/perl-Text-Iconv.spec new file mode 100644 index 0000000..a18b8b3 --- /dev/null +++ b/perl-Text-Iconv.spec @@ -0,0 +1,63 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Text-Iconv +Version: 1.7 +Release: 3mamba +Summary: Text::Iconv - Perl interface to iconv() codeset conversion function +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/MP/MPIOTR/Text-Iconv-%{version}.tar.gz +License: Artistic +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl >= %perl_major_ver +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module provides a Perl interface to the iconv() codeset conversion function, as defined by the Single UNIX Specification. + +%prep +%setup -q -n Text-Iconv-%{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}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 13 2012 Silvan Calarco 1.7-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 1.7-2mamba +- automatic rebuild by autodist + +* Mon Sep 15 2008 gil 1.7-1mamba +- update to 1.7 + +* Thu May 31 2007 Aleph0 1.4-1mamba +- package created by autospec