SPECS: perl-Encode-Detect.spec (NEW) - new
radek
radek at pld-linux.org
Mon Apr 30 13:53:40 CEST 2007
Author: radek Date: Mon Apr 30 11:53:40 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
perl-Encode-Detect.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-Encode-Detect.spec
diff -u /dev/null SPECS/perl-Encode-Detect.spec:1.1
--- /dev/null Mon Apr 30 13:53:40 2007
+++ SPECS/perl-Encode-Detect.spec Mon Apr 30 13:53:35 2007
@@ -0,0 +1,77 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Encode
+%define pnam Detect
+Summary: Encode::Detect - An Encode::Encoding subclass that detects the encoding of data
+#Summary(pl.UTF-8):
+Name: perl-Encode-Detect
+Version: 1.00
+Release: 1
+License: MPL 1.1
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/Encode/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 54e03becd018e237c8ccc275b52df846
+URL: http://search.cpan.org/dist/Encode-Detect/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-ExtUtils-CBuilder
+BuildRequires: perl-Module-Build
+%endif
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This Perl module is an Encode::Encoding subclass that uses
+Encode::Detect::Detector to determine the charset of the input data
+and then decodes it using the encoder of the detected charset.
+
+It is similar to Encode::Guess, but does not require the configuration
+of a set of expected encodings. Like Encode::Guess, it only supports
+decoding--it cannot encode.
+
+# %description -l pl.UTF-8
+# TODO
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+ --extra-compiler-flags='%{rpmcflags} -x c++ -Iinclude' \
+ --destdir=$RPM_BUILD_ROOT \
+ --installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorarch}/Encode/*.pm
+%{perl_vendorarch}/Encode/Detect
+%dir %{perl_vendorarch}/auto/Encode/Detect
+%dir %{perl_vendorarch}/auto/Encode/Detect/Detector
+%attr(755,root,root) %{perl_vendorarch}/auto/Encode/Detect/Detector/*.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 2007/04/30 11:53:35 radek
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list