Browse Source

updated: mecab, mecab-ipadic, qdbm, hyperestraier

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@736 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 15 years ago
parent
commit
d6515f3fbc

+ 12 - 6
h/hyperestraier/hyperestraier-vl.spec

@@ -2,12 +2,13 @@ Summary: a full-text search system for communities
 Summary(ja): 全文検索システム
 Name: hyperestraier
 Version: 1.4.13
-Release: 2%{?_dist_release}
+Release: 3%{?_dist_release}
 License: LGPL 2.1
 URL: http://hyperestraier.sourceforge.net/index.html
 Group: Applications/Text
 Source0: http://hyperestraier.sourceforge.net/%{name}-%{version}.tar.gz
 Patch0: hyperestraier-1.4.13-perl-vendordir.patch
+
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: qdbm-devel >= 1.8.75
 BuildRequires: zlib-devel >= 1.2.1
@@ -88,8 +89,12 @@ Perl module for Hyper Estraier
 %patch0 -p1 -b .perlvendordir
 
 %build
-%configure --enable-stable --enable-zlib --enable-mecab
+%configure \
+    --enable-stable \
+    --enable-zlib \
+    --enable-mecab
 make
+
 pushd perlnative
 %configure
 make
@@ -121,11 +126,9 @@ rm -rf %{buildroot}
 %check
 make check
 
-%post
-/sbin/ldconfig
+%post -p /sbin/ldconfig
 
-%postun
-/sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %files
 %defattr(-,root,root)
@@ -166,6 +169,9 @@ make check
 %{_mandir}/man3/Estraier.3pm*
 
 %changelog
+* Mon Mar 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.13-3
+- rebuilt with new toolchain
+
 * Sun May 31 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.13-2
 - added BR: qdbm-devel, zlib-devel to devel package
 

+ 10 - 4
m/mecab-ipadic/mecab-ipadic-vl.spec

@@ -1,7 +1,9 @@
 %define name mecab-ipadic
 %define ver 2.7.0
 %define date 20070801
-%define release 1%{?_dist_release}
+%define release 2%{?_dist_release}
+
+%define dicdir %(mecab-config --dicdir 2> /dev/null || echo %{_prefix}/lib/mecab/dic)
 
 Summary: IPA dictionary for MeCab
 Summary(ja): MeCab用のIPA辞書
@@ -18,7 +20,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Vendor: Project Vine
 Distribution: Vine Linux
 
-BuildRequires: mecab >= 0.96
+BuildRequires: mecab-devel >= 0.96
 Requires: mecab >= 0.96
 
 %description
@@ -28,11 +30,12 @@ IPA dictionary for MeCab
 MeCab用のIPA辞書です。IPAコーパスに基づきCRFでパラメータ推定しています。
 
 %prep
-rm -rf $RPM_BUILD_ROOT
 %setup -q -n %{name}-%{ver}-%{date}
 
 %build
-%configure --with-dicdir=%{_prefix}/lib/mecab/dic/ipadic
+%configure \
+    --with-dicdir=%{dicdir}/ipadic \
+    --with-charset=utf-8
 %__make
 
 %install
@@ -47,6 +50,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_prefix}/lib/mecab/dic/ipadic
 
 %changelog
+* Mon Mar 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.0.20070801-2
+- converted to utf-8
+
 * Sat Oct 04 2008 Shu KONNO <owa@bg.wakwak.com> 2.7.0.20070801-1vl5
 - applied new versioning policy, spec in utf-8
 - set --with-dicdir at configure

+ 13 - 9
m/mecab/mecab-vl.spec

@@ -1,8 +1,8 @@
-Summary: Yet Another Part-of-Speech and Morphological
+Summary: Yet Another Part-of-Speech and Morphological Analyzer
 Summary(ja): もう一つの形態素解析器
 Name: mecab
-Version: 0.97
-Release: 2%{?_dist_release}
+Version: 0.98
+Release: 1%{?_dist_release}
 Source0: http://downloads.sourceforge.net/mecab/%{name}-%{version}.tar.gz
 License: GPL/LGPL/BSD
 Group: Applications/Text
@@ -48,7 +48,7 @@ MeCabの開発用ヘッダファイル及びライブラリ
 %setup -q
 
 %build
-%configure --disable-static
+%configure --with-charset=utf8 --disable-static
 %__make
 
 %install
@@ -67,20 +67,24 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root)
 %doc README AUTHORS COPYING ChangeLog INSTALL NEWS GPL LGPL BSD doc/*.html
+%config %{_sysconfdir}/mecabrc
+%{_bindir}/mecab
 %{_libdir}/*.so.*
 %{_libexecdir}/mecab
-%{_bindir}/*
 %{_mandir}/man?/*
-%{_sysconfdir}/*
 
 %files devel
 %defattr(-,root,root)
-%{_libdir}/*.so
-#{_libdir}/*.a
-#{_libdir}/*.la
+%{_bindir}/mecab-config
 %{_includedir}/*
+%{_libdir}/*.so
 
 %changelog
+* Mon Mar 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.98-1
+- new upstream release
+- added --with-charset=utf8
+- built with new toolchain
+
 * Mon May  4 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.97-2
 - spec in UTF-8
 - removed lib*.a files from devel package

+ 22 - 6
q/qdbm/qdbm-vl.spec

@@ -1,11 +1,12 @@
 Summary: Quick Database Manager
 Name: qdbm
 Version: 1.8.77
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 License: LGPL 2.1
 URL: http://qdbm.sourceforge.net/
 Group: Development/Libraries
 Source0: http://qdbm.sourceforge.net/%{name}-%{version}.tar.gz
+
 Buildroot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: zlib-devel
 
@@ -28,6 +29,7 @@ QDBMはデータベースを扱うルーチン群のライブラリです。デ
 Summary: Header files and libraries for developing apps which will using QDBM.
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
+Requires: zlib-devel
 
 %description devel
 Header files and libraries for developing apps which will using QDBM.
@@ -36,20 +38,29 @@ Header files and libraries for developing apps which will using QDBM.
 %setup -q
 
 %build
-%configure --enable-stable --enable-pthread --enable-zlib --enable-iconv
+%configure \
+    --enable-stable \
+    --enable-pthread \
+    --enable-zlib \
+    --enable-iconv 
 make
 
 %install
-rm -rf %{buildroot}
-%makeinstall DESTDIR=%{buildroot}
-rm -f %{buildroot}/usr/share/qdbm/{COPYING,ChangeLog,NEWS,THANKS,spex-ja.html,spex.html}
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm -f $RPM_BUILD_ROOT%{_datadir}/qdbm/{COPYING,ChangeLog,NEWS,THANKS,spex-ja.html,spex.html}
 
 %clean
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 %check
 make check
 
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(-,root,root)
 %doc COPYING ChangeLog NEWS README THANKS spex-ja.html spex.html
@@ -66,6 +77,11 @@ make check
 %{_includedir}/*.h
 
 %changelog
+* Mon Mar 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.77-2
+- rebuilt with new toolchain
+- added Requires: zlib-devel to devel package
+- added %%post and %%postun section
+
 * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 1.8.77-1vl5
 - applied new versioning policy, spec in utf-8