[perl-Math-GMP] Use LANG rather than LC_ALL to set locale for spell check test
Paul Howarth
pghmcfc at fedoraproject.org
Wed Jul 20 09:01:33 UTC 2011
commit 4303fa64ee1c96426703173cecfa1c2b78a9b7f6
Author: Paul Howarth <paul at city-fan.org>
Date: Wed Jul 20 09:39:41 2011 +0100
Use LANG rather than LC_ALL to set locale for spell check test
- Use LANG rather than LC_ALL to set locale for spell check test
- Nobody else likes macros for commands
perl-Math-GMP.spec | 36 +++++++++++++++++++-----------------
1 files changed, 19 insertions(+), 17 deletions(-)
---
diff --git a/perl-Math-GMP.spec b/perl-Math-GMP.spec
index 736ba8a..c04ba0b 100644
--- a/perl-Math-GMP.spec
+++ b/perl-Math-GMP.spec
@@ -9,8 +9,7 @@ Source0: http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/Math-GMP-%{version
Source1: 14964AC8.asc
Source2: 161C06B1.asc
Patch0: Math-GMP-2.06-stopwords.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
BuildRequires: gmp-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Comments)
@@ -22,6 +21,7 @@ BuildRequires: perl(Test::YAML::Meta)
BuildRequires: perl(Text::SpellChecker)
BuildRequires: perl(YAML)
BuildRequires: hunspell-en
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Critic and Pod Coverage tests fail, so make sure we don't try to run them for now
BuildConflicts: perl(Perl::Critic)
@@ -46,35 +46,35 @@ cd Math-GMP-%{version}
%patch0 -p2
cd -
-# Copy docs back to top level for %%doc
-%{__cp} -a Math-GMP-%{version}/{README,Changes,LICENSE} .
+# Link docs back to top level for %%doc
+ln Math-GMP-%{version}/{README,Changes,LICENSE} .
# Create a GPG directory for testing, to avoid using ~/.gnupg
-%{__mkdir} --mode=0700 gnupghome
+mkdir --mode=0700 gnupghome
export GNUPGHOME=$(pwd)/gnupghome
-%{__gpg} --import %{SOURCE1} %{SOURCE2}
+gpg --import %{SOURCE1} %{SOURCE2}
%build
cd Math-GMP-%{version}
-%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
-%{__make} %{?_smp_mflags}
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
+make %{?_smp_mflags}
cd -
%install
-%{__rm} -rf %{buildroot}
-%{__make} -C Math-GMP-%{version} pure_install PERL_INSTALL_ROOT=%{buildroot}
-/usr/bin/find %{buildroot} -type f -name .packlist -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec %{__rm} -f {} ';'
-/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
-%{__chmod} -R u+w %{buildroot}
+rm -rf %{buildroot}
+make -C Math-GMP-%{version} pure_install PERL_INSTALL_ROOT=%{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 -R u+w %{buildroot}
%check
export GNUPGHOME=$(pwd)/gnupghome
# Locale set to en_US for spell check tests
-LC_ALL=en_US %{__make} -C Math-GMP-%{version} test RELEASE_TESTING=1 TEST_VERBOSE=1
+LANG=en_US make -C Math-GMP-%{version} test RELEASE_TESTING=1 TEST_VERBOSE=1
%clean
-%{__rm} -rf %{buildroot}
+rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
@@ -84,8 +84,10 @@ LC_ALL=en_US %{__make} -C Math-GMP-%{version} test RELEASE_TESTING=1 TEST_VERBOS
%{_mandir}/man3/Math::GMP.3pm*
%changelog
-* Tue Jul 19 2011 Petr Sabata <contyk at redhat.com> - 2.06-8
+* Wed Jul 20 2011 Paul Howarth <paul at city-fan.org> 2.06-8
- Perl mass rebuild
+- Use LANG rather than LC_ALL to set locale for spell check test
+- Nobody else likes macros for commands
* Wed Feb 9 2011 Paul Howarth <paul at city-fan.org> 2.06-7
- Fix spell check test to add words not in hunspell dictionary
More information about the scm-commits
mailing list