[perl-Lingua-Identify: 8/11] Patch a unit test so it actually tests something (RT#83071)
by Mathieu Bridon
commit cb517e4a0357b51373e4e5222524574d763f9c15
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Mon Feb 4 13:06:17 2013 +0800
Patch a unit test so it actually tests something (RT#83071)
Lingua-Identify-0.51-Fix-a-unit-test.patch | 26 ++++++++++++++++++++++++++
perl-Lingua-Identify.spec | 5 +++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/Lingua-Identify-0.51-Fix-a-unit-test.patch b/Lingua-Identify-0.51-Fix-a-unit-test.patch
new file mode 100644
index 0000000..353f075
--- /dev/null
+++ b/Lingua-Identify-0.51-Fix-a-unit-test.patch
@@ -0,0 +1,26 @@
+From f15c2cf51da313b289673d9053ed20046284da7d Mon Sep 17 00:00:00 2001
+From: Mathieu Bridon <bochecha(a)fedoraproject.org>
+Date: Mon, 4 Feb 2013 10:46:49 +0800
+Subject: [PATCH] Fix a unit test
+
+https://rt.cpan.org/Public/Bug/Display.html?id=83071
+---
+ t/04-compile-make-lingua-identify-language.t | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/t/04-compile-make-lingua-identify-language.t b/t/04-compile-make-lingua-identify-language.t
+index 7ce9b6e..009d5a8 100644
+--- a/t/04-compile-make-lingua-identify-language.t
++++ b/t/04-compile-make-lingua-identify-language.t
+@@ -3,7 +3,7 @@
+
+ use Test::More tests => 1;
+
+-my $file = "langident";
++my $file = "make-lingua-identify-language";
+
+ print "bail out! Script file is missing!" unless -e $file;
+
+--
+1.7.1
+
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index f086c67..966256a 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -6,6 +6,9 @@ License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Lingua-Identify/
Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Lingua/Lingua-Identify-%{version...
+# https://rt.cpan.org/Public/Bug/Display.html?id=83071
+Patch0: Lingua-Identify-0.51-Fix-a-unit-test.patch
+
BuildArch: noarch
BuildRequires: perl(base)
@@ -19,6 +22,7 @@ BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Text::Affixes) >= 0.07
+BuildRequires: perl(Text::ExtractWords)
BuildRequires: perl(Text::Ngram) >= 0.13
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
@@ -73,6 +77,7 @@ make test
%changelog
- Add missing build requirements.
+- Patch a unit test so it actually tests something (RT#83071)
* Thu Jan 24 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-2
- Replace usage of the %%{__perl} macro by the plain perl command.
11 years, 4 months
[perl-Lingua-Identify: 7/11] Add missing build requirements
by Mathieu Bridon
commit 0e77b375a2ad112efb287e43c08f157e0488c68d
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Mon Feb 4 11:07:07 2013 +0800
Add missing build requirements
perl-Lingua-Identify.spec | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index ff879b5..f086c67 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -10,6 +10,7 @@ BuildArch: noarch
BuildRequires: perl(base)
BuildRequires: perl(Class::Factory::Util) >= 1.6
+BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(locale)
@@ -71,6 +72,8 @@ make test
%changelog
+- Add missing build requirements.
+
* Thu Jan 24 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-2
- Replace usage of the %%{__perl} macro by the plain perl command.
- Use DESTDIR instead of PERL_INSTALL_ROOT in the install section.
11 years, 4 months
[perl-Lingua-Identify: 6/11] New submission for Fedora
by Mathieu Bridon
commit 5441aa15c6bc82c12597fb2cab089d61d7be315d
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Thu Jan 24 13:35:10 2013 +0800
New submission for Fedora
This was submitted on Thu Jan 24 2013:
https://bugzilla.redhat.com/show_bug.cgi?id=901419#c2
perl-Lingua-Identify.spec | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index 487236d..ff879b5 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -1,7 +1,7 @@
Name: perl-Lingua-Identify
Summary: Language identification
Version: 0.51
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/Lingua-Identify/
Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Lingua/Lingua-Identify-%{version...
@@ -30,6 +30,7 @@ Lingua::Identify identifies the language a given string or file is written in.
%package tools
Summary: Tools related to Lingua::Identify
+
Requires: %{name} == %{version}-%{release}
%description tools
@@ -70,6 +71,7 @@ make test
%changelog
+* Thu Jan 24 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-2
- Replace usage of the %%{__perl} macro by the plain perl command.
- Use DESTDIR instead of PERL_INSTALL_ROOT in the install section.
- Add missing build requirements.
11 years, 4 months
[perl-Lingua-Identify: 5/11] Add missing build requirements
by Mathieu Bridon
commit 9b9914d69885f5bd42256f22b6f1c4d45b54edaf
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Thu Jan 24 13:33:10 2013 +0800
Add missing build requirements
perl-Lingua-Identify.spec | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index 2b7c88f..487236d 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -8,8 +8,12 @@ Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Lingua/Lingua-Identify-
BuildArch: noarch
+BuildRequires: perl(base)
BuildRequires: perl(Class::Factory::Util) >= 1.6
BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Getopt::Std)
+BuildRequires: perl(locale)
+BuildRequires: perl(POSIX)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
@@ -68,6 +72,7 @@ make test
%changelog
- Replace usage of the %%{__perl} macro by the plain perl command.
- Use DESTDIR instead of PERL_INSTALL_ROOT in the install section.
+- Add missing build requirements.
* Fri Jan 18 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-1
- Initial package for Fedora, with help from cpanspec.
11 years, 4 months
[perl-Lingua-Identify: 4/11] Use DESTDIR instead of PERL_INSTALL_ROOT in the install section
by Mathieu Bridon
commit 2047a900ecc23992e6751b6d108334b59461291a
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Thu Jan 24 13:18:11 2013 +0800
Use DESTDIR instead of PERL_INSTALL_ROOT in the install section
perl-Lingua-Identify.spec | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index 7810d1e..2b7c88f 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -42,7 +42,7 @@ make %{?_smp_mflags}
%install
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
+make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
@@ -67,6 +67,7 @@ make test
%changelog
- Replace usage of the %%{__perl} macro by the plain perl command.
+- Use DESTDIR instead of PERL_INSTALL_ROOT in the install section.
* Fri Jan 18 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-1
- Initial package for Fedora, with help from cpanspec.
11 years, 4 months
[perl-Lingua-Identify: 3/11] Replace usage of the %{__perl} macro by the plain perl command
by Mathieu Bridon
commit 75d9faa8142558b06d4c74cc5130fbbdbf9d671a
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Thu Jan 24 13:17:54 2013 +0800
Replace usage of the %{__perl} macro by the plain perl command
perl-Lingua-Identify.spec | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
index 2f28ba5..7810d1e 100644
--- a/perl-Lingua-Identify.spec
+++ b/perl-Lingua-Identify.spec
@@ -16,7 +16,7 @@ BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Text::Affixes) >= 0.07
BuildRequires: perl(Text::Ngram) >= 0.13
-Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%{?perl_default_filter}
@@ -37,7 +37,7 @@ Tools related to Lingua::Identify.
%build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
@@ -66,5 +66,7 @@ make test
%changelog
+- Replace usage of the %%{__perl} macro by the plain perl command.
+
* Fri Jan 18 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-1
- Initial package for Fedora, with help from cpanspec.
11 years, 4 months
[perl-Lingua-Identify: 2/11] Initial package for Fedora
by Mathieu Bridon
commit 59af3ef3eb8dc45fd584e3cb09ce2ed92b6b1b5a
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Fri Jan 18 13:16:19 2013 +0800
Initial package for Fedora
This was submitted on Fri Jan 18 2013:
https://bugzilla.redhat.com/show_bug.cgi?id=901419#c0
perl-Lingua-Identify.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 70 insertions(+), 0 deletions(-)
---
diff --git a/perl-Lingua-Identify.spec b/perl-Lingua-Identify.spec
new file mode 100644
index 0000000..2f28ba5
--- /dev/null
+++ b/perl-Lingua-Identify.spec
@@ -0,0 +1,70 @@
+Name: perl-Lingua-Identify
+Summary: Language identification
+Version: 0.51
+Release: 1%{?dist}
+License: GPL+ or Artistic
+URL: http://search.cpan.org/dist/Lingua-Identify/
+Source0: http://www.cpan.org/authors/id/A/AM/AMBS/Lingua/Lingua-Identify-%{version...
+
+BuildArch: noarch
+
+BuildRequires: perl(Class::Factory::Util) >= 1.6
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(Test::More)
+BuildRequires: perl(Test::Pod)
+BuildRequires: perl(Test::Pod::Coverage)
+BuildRequires: perl(Text::Affixes) >= 0.07
+BuildRequires: perl(Text::Ngram) >= 0.13
+
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+Lingua::Identify identifies the language a given string or file is written in.
+
+
+%package tools
+Summary: Tools related to Lingua::Identify
+Requires: %{name} == %{version}-%{release}
+
+%description tools
+Tools related to Lingua::Identify.
+
+
+%prep
+%setup -q -n Lingua-Identify-%{version}
+
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+
+%install
+make pure_install PERL_INSTALL_ROOT=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+
+%{_fixperms} %{buildroot}/*
+
+
+%check
+make test
+
+
+%files
+%doc Changes README
+%{_mandir}/man3/Lingua::Identify*
+%{perl_vendorlib}/Lingua
+
+%files tools
+%{_bindir}/langident
+%{_bindir}/make-lingua-identify-language
+%{_mandir}/man1/langident.1*
+%{_mandir}/man1/make-lingua-identify-language.1*
+
+
+%changelog
+* Fri Jan 18 2013 Mathieu Bridon <bochecha(a)fedoraproject.org> - 0.51-1
+- Initial package for Fedora, with help from cpanspec.
11 years, 4 months
[perl-Lingua-Identify: 1/11] Initial setup of the pre-review repo
by Mathieu Bridon
commit e7e7f541a495c30aff3080da93669e7d318a22de
Author: Mathieu Bridon <bochecha(a)fedoraproject.org>
Date: Fri Jan 18 12:02:27 2013 +0800
Initial setup of the pre-review repo
0 files changed, 0 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e69de29
diff --git a/sources b/sources
new file mode 100644
index 0000000..e69de29
11 years, 4 months
[perl-Lingua-Identify] (11 commits) ...Upload the sources
by Mathieu Bridon
Summary of changes:
e7e7f54... Initial setup of the pre-review repo
59af3ef... Initial package for Fedora
75d9faa... Replace usage of the %{__perl} macro by the plain perl comm
2047a90... Use DESTDIR instead of PERL_INSTALL_ROOT in the install sec
9b9914d... Add missing build requirements
5441aa1... New submission for Fedora
0e77b37... Add missing build requirements
cb517e4... Patch a unit test so it actually tests something (RT#83071)
e5eb45f... New submission for Fedora
3e8b0a5... The package was approved
5cf6d6d... Upload the sources
11 years, 4 months