diff --git a/README.md b/README.md index 6ac88cd..66938ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Unicode-Jcode +This module implements following subs as XS. + diff --git a/perl-Unicode-Jcode.spec b/perl-Unicode-Jcode.spec new file mode 100644 index 0000000..6ec6e00 --- /dev/null +++ b/perl-Unicode-Jcode.spec @@ -0,0 +1,65 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Unicode-Jcode +Version: 2.07 +Release: 3mamba +Summary: This module implements following subs as XS +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://www.cpan.org/authors/id/D/DA/DANKOGAI/Jcode-%{version}.tar.gz +License: Artistic, GPL +Requires: perl >= %perl_major_ver +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This module implements following subs as XS. + +%prep +%setup -q -n Jcode-%{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 2.07-3mamba +- perl 5.16 mass rebuild + +* Wed Nov 05 2008 Silvan Calarco 2.07-2mamba +- automatic rebuild by autodist + +* Sat Jul 26 2008 Silvan Calarco 2.07-1mamba +- update to 2.07 + +* Wed Oct 11 2006 Stefano Cotta Ramusino 2.06-1qilnx +- update to version 2.06 by autospec + +* Thu Dec 29 2005 Alessandro Ramazzina 2.03-1qilnx +- package created by autospec