Browse Source

ruby-uconv 0.5.3-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7331 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 11 years ago
parent
commit
6268f38cab
1 changed files with 20 additions and 32 deletions
  1. 20 32
      r/ruby-uconv/ruby-uconv-vl.spec

+ 20 - 32
r/ruby-uconv/ruby-uconv-vl.spec

@@ -1,18 +1,20 @@
 %define oname uconv
 
 Name: ruby-uconv
-Version: 0.4.12
+Version: 0.5.3
 Release: 1%{?_dist_release}
-License: distributable
+License: Ruby's
 Group: Development/Languages
 Source: http://www.yoshidam.net/%{oname}-%{version}.tar.gz
 URL: http://www.yoshidam.net/Ruby_ja.html#uconv
-Prefix: /usr
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildPreReq: ruby, ruby-devel >= 1.6.4-0vl3, diffutils
+BuildRequires: ruby, ruby-devel >= 1.6.4-0vl3, diffutils
 Summary: library for Ruby that converts UTF-8/16, UCS-4 <-> EUC-JP/Shift_JIS
 Summary(ja): UTF-8/16, UCS-4とEUC-JP/Shift_JISを相互変換するRubyライブラリ
 
+Vendor: Project Vine
+Distribution: Vine Linux
+
 %description
 Uconv module provides the methods to convert UTF-16, UTF-8 or UCS-4 into 
 EUC-JP or CP932, and EUC-JP or CP932 into UTF-16, UTF-8 or UCS-4.
@@ -38,45 +40,31 @@ mkdir -p ${RPM_BUILD_ROOT}%{_libdir}
 
 # installing binaries ...
 cd %{oname}
-make install DESTDIR=${RPM_BUILD_ROOT} sitelibdir=${RPM_BUILD_ROOT}%{rlibdir}
+make install DESTDIR=${RPM_BUILD_ROOT} \
+             sitelibdir=${RPM_BUILD_ROOT}%{rlibdir} \
+             sitearchdir=${RPM_BUILD_ROOT}%{rarchdir}
 cd ..
 
-(find \
-  $RPM_BUILD_ROOT%{_libdir} \
-      -type f -o -type l) | 
- sort | sed -e "s,^$RPM_BUILD_ROOT,," > ruby-uconv.files
-
-# fixing `#!' paths
-#mkdir -p tmp/samples
-#(cd %{oname}/samples && tar cf - .) | (cd tmp/samples && tar xf -)
-#for f in `find tmp/samples -type f`
-#do
-#  cp -p $f $f.n
-#  sed -e 's,^#![ 	]*\([^ 	]*\)/\(ruby\|with\|perl\|env\),#!/usr/bin/\2,' < $f > $f.n
-#  if cmp -s $f $f.n
-#  then
-#    rm -f $f.n
-#  else
-#    mv -f $f.n $f
-#  fi
-#done
-
 %clean
-rm -f ruby-uconv.files
-rm -rf tmp
 rm -rf ${RPM_BUILD_ROOT}
 
-%pre
-
-%post
-
-%files -f ruby-uconv.files
+%files
 %defattr(-, root, root)
 %doc %{oname}/README
 %doc %{oname}/README.ja
+%{rarchdir}/uconv.so
+%{rlibdir}/uconv
 #%doc tmp/samples
 
 %changelog
+* Sun Dec 30 2012 IWAI, Masaharu <iwai@alib.jp> 0.5.3-1
+- new upstream release
+- add Vendor and Distribution tags
+- drop Prefix tag
+- update License: Ruby's
+- fix deprecated tag: BuildPreReq -> BuildRequires
+- add sitearchdir for install
+
 * Fri Jul 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.12-1
 - new versioning policy