[bsfilter] Once commit
Mamoru Tasaka
mtasaka at fedoraproject.org
Sun Mar 3 13:14:44 UTC 2013
commit df225c7e35302ecafdc18359b7ed4864049b5bb1
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Sun Mar 3 22:14:34 2013 +0900
Once commit
.gitignore | 1 +
bsfilter.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..81b78c3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bsfilter-1.0.18.ruby1.9.rc4.tgz
diff --git a/bsfilter.spec b/bsfilter.spec
new file mode 100644
index 0000000..61412d9
--- /dev/null
+++ b/bsfilter.spec
@@ -0,0 +1,64 @@
+%global repoid 58016
+
+%global mainver 1.0.18
+%global prever rc4
+
+%global fedorarel 3
+
+Name: bsfilter
+Version: %{mainver}
+Release: %{?prever:0.}%{fedorarel}%{?prever:.%prever}%{?dist}
+Summary: Bayesian spam filter
+
+# bsfilter script
+License: GPLv2+
+URL: http://sourceforge.jp/projects/bsfilter/
+Source0: http://dl.sourceforge.jp/%{name}/%{repoid}/%{name}-%{version}.ruby1.9%{?prever:.%prever}.tgz
+
+BuildRequires: ruby
+# Below is for %%check
+BuildRequires: rubygem(minitest)
+BuildRequires: ruby(mecab)
+BuildRequires: mecab-ipadic
+# No abi specification needed
+Requires: ruby
+BuildArch: noarch
+
+%description
+Bayesian spam filter.
+
+%prep
+%setup -q -n %{name}-%{mainver}.ruby1.9%{?prever:.%prever}
+sed -i.shebang \
+ -e '\@^#!@s|%{_bindir}/env ruby|%{_bindir}/ruby|' \
+ bsfilter/bsfilter
+
+%build
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+install -cpm 0755 bsfilter/bsfilter %{buildroot}%{_bindir}/
+
+%check
+cd test
+# Still some test fails, some of them are just dependency missing,
+# some of them "really" fails, need contact with the upstream...
+# rescue test failure for now
+ruby ./test.rb || :
+
+%files
+# rpmlint warns about incorrect-fsf-address, need report to the upstream
+%doc COPYING
+%doc htdocs/
+
+%{_bindir}/%{name}
+
+%changelog
+* Sun Mar 3 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.18-0.3.rc4
+- change shebang
+
+* Mon Feb 11 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.18-0.2.rc4
+- 1.0.18 rc4
+
+* Fri Feb 01 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 1.0.18-0.1.rc3
+- Initial packaging
diff --git a/sources b/sources
index e69de29..c335263 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+425d3a298488a4e3d896548297f9dac3 bsfilter-1.0.18.ruby1.9.rc4.tgz
More information about the scm-commits
mailing list