rpms/cmigemo/FC-6 cmigemo.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Mamoru Tasaka (mtasaka)
fedora-extras-commits at redhat.com
Mon May 21 18:22:50 UTC 2007
- Previous message (by thread): rpms/cmigemo/FC-5 cmigemo.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/cmigemo/devel cmigemo.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mtasaka
Update of /cvs/extras/rpms/cmigemo/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22621/FC-6
Modified Files:
.cvsignore sources
Added Files:
cmigemo.spec
Log Message:
Initial importing of cmigemo
--- NEW FILE cmigemo.spec ---
%define mainver 1.3
%define minorver c-MIT
%define prerelease 1
%define fedorarel 3
%define uprel %(echo %{?minorver} | %{__sed} -e 's|^--*||' | %{__sed} -e 's|-|_|g' )
%define rel %{?prerelease:0.}%{fedorarel}%{?minorver:.%uprel}
%define skkdicdir %{_datadir}/skk
%define skkcoding EUC-JP
Name: cmigemo
Version: %{mainver}
Release: %{rel}%{?dist}
Summary: C interface of Ruby/Migemo Japanese incremental search tool
Group: System Environment/Libraries
License: MIT
URL: http://www.kaoriya.net/
Source0: http://www.kaoriya.net/dist/var/%{name}-%{mainver}%{?minorver}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: skkdic
%description
C/Migemo is a C interface of Ruby/Migemo, a Japanese incremental search tool
by Romaji.
%package devel
Summary: Development files for cmigemo
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
This package contains libraries and header files for
developing applications that use cmigemo.
%prep
%setup -q -n %{name}-%{version}%{?minorver}
# Change default command for configure
%{__sed} -i.bak \
-e 's|curl|true|' \
-e 's|nkf|true|' \
-e 's|install\"|install -p"|' \
configure
# use iconv instead of nkf
%{__sed} -i.nkf \
-e 's|^\(FILTER_CP932[ \t][ \t]*=\).*|\1 iconv -f %{skkcoding} -t SJIS|' \
-e 's|^\(FILTER_EUCJP[ \t][ \t]*=\).*|\1 iconv -f SJIS -t EUC-JP|' \
compile/config.mk.in
# make cmigemo original data dir
%{__sed} -i.dir \
-e 's|/share/migemo|/share/cmigemo|' \
compile/config.mk.in config.mk
# ( don't create unnecessary backup file for document...)
%{__sed} -i \
-e 's|/usr/local/share/migemo|%{_datadir}/cmigemo|' \
doc/README_j.txt tools/migemo.vim
# remove unneeded rpath
%{__sed} -i.rpath \
-e 's|^\(LDFLAGS_MIGEMO[ \t][ \t]*=\).*|\1 |' \
compile/Make_gcc.mak
# 64 bits libdir
%{__sed} -i.bits \
-e 's|\$(prefix)/lib|$(prefix)/%{_lib}|' \
config.mk compile/config.mk.in compile/config_default.mk
%{__chmod} 0644 tools/*
%build
%configure
# parallel make unsafe
%{__make} gcc CC="gcc $RPM_OPT_FLAGS"
%{__cat} %{skkdicdir}/SKK-JISYO.L | gzip > dict/SKK-JISYO.L.gz
%{__make} gcc-dict
( cd dict ; %{__make} utf-8 )
%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} gcc-install prefix=$RPM_BUILD_ROOT%{_prefix}
# remove unneeded document
%{__rm} -rf $RPM_BUILD_ROOT%{_prefix}/doc/
# make documentation directory
%{__rm} -rf doc_install
%{__mkdir} doc_install
cd doc
for f in *txt ; do \
iconv -f SJIS -t UTF-8 $f > ../doc_install/$f && \
touch -r $f ../doc_install/$f || \
%{__cp} -p $f ../doc_install/$f
done
%{__cp} -p LICENSE ../doc_install/
cd ..
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc doc_install/*
%doc tools/
%{_bindir}/%{name}
%{_libdir}/libmigemo.so.*
%{_datadir}/cmigemo/
%files devel
%defattr(-,root,root,-)
%{_includedir}/migemo.h
%{_libdir}/libmigemo.so
%changelog
* Sun May 20 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3-0.3.c_MIT
- Don't create unnecessary document backup
* Sun May 20 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3-0.2.c_MIT
- 64 bits fix
* Sat May 19 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 1.3-0.1.c_MIT
- Initial packaging.
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/cmigemo/FC-6/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 May 2007 17:39:18 -0000 1.1
+++ .cvsignore 21 May 2007 18:22:16 -0000 1.2
@@ -0,0 +1 @@
+cmigemo-1.3c-MIT.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/cmigemo/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 May 2007 17:39:18 -0000 1.1
+++ sources 21 May 2007 18:22:16 -0000 1.2
@@ -0,0 +1 @@
+e411e678985f42501982c050e959035f cmigemo-1.3c-MIT.tar.bz2
- Previous message (by thread): rpms/cmigemo/FC-5 cmigemo.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/cmigemo/devel cmigemo.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list