SPECS: perl-YAML-Syck.spec (NEW) - new
glen
glen at pld-linux.org
Tue Jul 25 23:36:38 CEST 2006
Author: glen Date: Tue Jul 25 21:36:38 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-YAML-Syck.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-YAML-Syck.spec
diff -u /dev/null SPECS/perl-YAML-Syck.spec:1.1
--- /dev/null Tue Jul 25 23:36:38 2006
+++ SPECS/perl-YAML-Syck.spec Tue Jul 25 23:36:33 2006
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir YAML
+%define pnam Syck
+Summary: YAML::Syck - Fast, lightweight YAML loader and dumper
+Name: perl-YAML-Syck
+Version: 0.64
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/A/AU/AUDREYT/YAML-Syck-%{version}.tar.gz
+# Source0-md5: 51054b5da582e381158f10276f82ae15
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-YAML >= 0.60
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides a Perl interface to the libsyck data
+serialization library. It exports the Dump and Load functions for
+converting Perl data structures to YAML strings, and the other way
+around.
+
+NOTE: If you are working with other language's YAML/Syck bindings
+(such as Ruby), please set $YAML::Syck::ImplicitTyping to 1 before
+calling the Load/Dump functions. The default setting is for preserving
+backward-compatibility with YAML.pm.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make} \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/YAML/Syck.pod
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%dir %{perl_vendorarch}/YAML
+%{perl_vendorarch}/YAML/*.pm
+%dir %{perl_vendorarch}/JSON
+%{perl_vendorarch}/JSON/Syck.pm
+%dir %{perl_vendorarch}/YAML/Dumper
+%{perl_vendorarch}/YAML/Dumper/Syck.pm
+%dir %{perl_vendorarch}/YAML/Loader
+%{perl_vendorarch}/YAML/Loader/Syck.pm
+%dir %{perl_vendorarch}/auto/YAML
+%dir %{perl_vendorarch}/auto/YAML/Syck
+%{perl_vendorarch}/auto/YAML/Syck/*.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/YAML/Syck/*.so
+%{_mandir}/man3/*
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/07/25 21:36:33 glen
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list