]> git.pld-linux.org Git - packages/perl-Data-Denter.git/commitdiff
- new
authorradek <radek@pld-linux.org>
Thu, 3 Jun 2004 13:43:10 +0000 (13:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Data-Denter.spec -> 1.1

perl-Data-Denter.spec [new file with mode: 0644]

diff --git a/perl-Data-Denter.spec b/perl-Data-Denter.spec
new file mode 100644 (file)
index 0000000..9b4fe50
--- /dev/null
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define        pdir    Data
+%define        pnam    Denter
+Summary:       Data::Denter - An (deprecated) alternative to Data::Dumper and Storable.
+#Summary(pl):  
+Name:          perl-Data-Denter
+Version:       0.15
+Release:       1
+# same as perl
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 819e5c05fb61e90f4c1311286b080405
+BuildRequires: perl-devel >= 1:5.6
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-YAML
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The main problem with Data::Dumper (one of my all-time favorite
+modules) is that you have to use C<eval()> to deserialize the data
+you've dumped. This is great if you can trust the data you're evaling,
+but horrible if you can't. A good alternative is Storable.pm. It can
+safely thaw your frozen data. But if you want to read/edit the frozen
+data, you're out of luck, because Storable uses a binary format. Even
+Data::Dumper's output can be a little cumbersome for larger data objects.
+
+# %description -l pl
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/%{pdir}/*.pm
+%{_mandir}/man3/*
This page took 0.18689 seconds and 4 git commands to generate.