SPECS: perl-Text-CSV.spec (NEW), perl-Text-CSV-Encoded.spec (NEW) - new
radek
radek at pld-linux.org
Fri Jan 16 11:02:09 CET 2009
Author: radek Date: Fri Jan 16 10:02:09 2009 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Text-CSV.spec (NONE -> 1.1) (NEW), perl-Text-CSV-Encoded.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Text-CSV.spec
diff -u /dev/null SPECS/perl-Text-CSV.spec:1.1
--- /dev/null Fri Jan 16 11:02:09 2009
+++ SPECS/perl-Text-CSV.spec Fri Jan 16 11:02:03 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Text
+%define pnam CSV
+Summary: Text::CSV - comma-separated values manipulator (using XS or PurePerl)
+#Summary(pl.UTF-8):
+Name: perl-Text-CSV
+Version: 1.10
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: ea28c3e4d37125b34c68ce2a03e6315a
+URL: http://search.cpan.org/dist/Text-CSV/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+Suggests: perl-Text-CSV_XS
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Text::CSV provides facilities for the composition and decomposition of
+comma-separated values using Text::CSV_XS or its pure Perl version.
+
+# %description -l pl.UTF-8
+# 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
+install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Text/CSV
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Text/*.pm
+%{perl_vendorlib}/Text/CSV
+%{_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 2009/01/16 10:02:03 radek
+- new
+
================================================================
Index: SPECS/perl-Text-CSV-Encoded.spec
diff -u /dev/null SPECS/perl-Text-CSV-Encoded.spec:1.1
--- /dev/null Fri Jan 16 11:02:09 2009
+++ SPECS/perl-Text-CSV-Encoded.spec Fri Jan 16 11:02:03 2009
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Text
+%define pnam CSV-Encoded
+Summary: Text::CSV::Encoded - Encoding aware Text::CSV.
+#Summary(pl.UTF-8):
+Name: perl-Text-CSV-Encoded
+Version: 0.07
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Text/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bf1d06ad3093d6a30246e86caa805762
+URL: http://search.cpan.org/dist/Text-CSV-Encoded/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(Text::CSV) >= 1.06
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module inherits Text::CSV and is aware of input/output encodings.
+
+# %description -l pl.UTF-8
+# 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} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Text/CSV/*.pm
+%{perl_vendorlib}/Text/CSV/Encoded
+%{_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 2009/01/16 10:02:03 radek
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list