Browse Source

new: perl-YAML-0.71-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@599 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 14 years ago
parent
commit
62d0ad239c
1 changed files with 71 additions and 0 deletions
  1. 71 0
      p/perl-YAML/perl-YAML-vl.spec

+ 71 - 0
p/perl-YAML/perl-YAML-vl.spec

@@ -0,0 +1,71 @@
+%define origname YAML
+
+Summary: YAML Ain't Markup Language (tm) for Perl
+Name: perl-YAML
+Version: 0.71
+Release: 1%{?_dist_release}
+License: perl's
+Group: Development/Libraries
+Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{origname}-%{version}.tar.gz
+Source1: filter-requires-perl-YAML.sh
+Url: http://search.cpan.org/dist/YAML/
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildArch: noarch
+BuildRequires: perl
+Requires: perl
+
+Distribution: Vine Linux
+Vendor: Project Vine
+Packager: iwaim
+
+%define __find_requires %{SOURCE1}
+
+%description
+This module has been released to CPAN as YAML::Old, and soon YAML.pm
+will be changed to just be a frontend interface module for all the
+various Perl YAML implementation modules, including YAML::Old.
+
+If you want robust and fast YAML processing using the normal Dump/Load
+API, please consider switching to YAML::XS. It is by far the best Perl
+module for YAML at this time. It requires that you have a C compiler,
+since it is written in C.
+
+%prep
+%setup -q -n %{origname}-%{version} 
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_prefix}
+make DESTDIR=$RPM_BUILD_ROOT install
+
+find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
+
+find $RPM_BUILD_ROOT%{_prefix} -type f -print | 
+	sed "s@^$RPM_BUILD_ROOT@@g" | 
+	grep -v ^%{_mandir} | 
+	grep -v perllocal.pod | 
+	grep -v "\.packlist" > %{name}.files
+if [ "$(cat %{name}.files)X" = "X" ] ; then
+    echo "ERROR: EMPTY FILE LIST"
+    exit -1
+fi
+
+%check
+make test
+
+%clean 
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.files
+%defattr(-,root,root)
+%doc README Changes LICENSE
+%{perl_vendorlib}/YAML
+%{_mandir}/man3/*
+
+%changelog
+* Mon Feb 22 2010 IWAI, Masaharu <iwai@alib.jp>
+- first release for Vine Linux