[perl-Text-Hunspell] Initial import of perl-Text-Hunspell-2.01-2

Paul Howarth pghmcfc at fedoraproject.org
Wed Sep 22 20:14:04 UTC 2010


commit 6b6a8b2d6fb9e52a6134a4f51ce61605acf137e8
Author: Paul Howarth <paul at city-fan.org>
Date:   Wed Sep 22 21:13:42 2010 +0100

    Initial import of perl-Text-Hunspell-2.01-2

 .gitignore              |    1 +
 perl-Text-Hunspell.spec |   60 +++++++++++++++++++++++++++++++++++++++++++++++
 sources                 |    1 +
 3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..e576c8b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Text-Hunspell-2.01.tar.gz
diff --git a/perl-Text-Hunspell.spec b/perl-Text-Hunspell.spec
new file mode 100644
index 0000000..d69f862
--- /dev/null
+++ b/perl-Text-Hunspell.spec
@@ -0,0 +1,60 @@
+Name:		perl-Text-Hunspell
+Version:	2.01
+Release:	2%{?dist}
+Summary:	Perl interface to the Hunspell library
+Group:		Development/Libraries
+License:	GPL+ or Artistic
+URL:		http://search.cpan.org/dist/text_hunspell/
+Source0:	http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/Text-Hunspell-%{version}.tar.gz
+BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More), perl(Test::Pod)
+BuildRequires:	gcc-c++, hunspell-devel >= 1.2.8, hunspell-en
+Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# Don't "provide" private Perl libs
+%{?perl_default_filter}
+
+%description
+This module provides a Perl interface to the Hunspell library. This module
+is to meet the need of looking up many words, one at a time, in a single
+session, such as spell-checking a document in memory.
+
+%prep
+%setup -q -n Text-Hunspell-%{version}
+
+%build
+HUNSPELL_LIB_NAME=$(pkg-config --libs hunspell | sed 's/-l//; s/[[:space:]]*$//')
+perl -pi -e "s/'hunspell'/'${HUNSPELL_LIB_NAME}'/" Makefile.PL t/00-prereq.t
+perl Makefile.PL \
+	INSTALLDIRS=vendor \
+	LIBS="-l${HUNSPELL_LIB_NAME}" \
+	OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make pure_install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
+find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
+find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
+chmod -c -R u+w %{buildroot}
+
+%check
+LANG=en_US make test TEST_POD=1 TEST_VERBOSE=1
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README examples/
+%{perl_vendorarch}/auto/Text/
+%{perl_vendorarch}/Text/
+%{_mandir}/man3/Text::Hunspell.3pm*
+
+%changelog
+* Mon Sep 20 2010 Paul Howarth <paul at city-fan.org> - 2.01-2
+- Sanitize for Fedora submission
+
+* Wed Sep  8 2010 Paul Howarth <paul at city-fan.org> - 2.01-1
+- Initial RPM version
diff --git a/sources b/sources
index e69de29..056ac24 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b2f0c2d180efbfe6ccea3a1aac72f933  Text-Hunspell-2.01.tar.gz


More information about the scm-commits mailing list