[rubygem-gettext] 3.0.2
Mamoru Tasaka
mtasaka at fedoraproject.org
Thu Oct 10 09:05:35 UTC 2013
commit f03a62bebefc971cb0aebe433e726a6fdc9b9b0c
Author: Mamoru TASAKA <mtasaka at fedoraproject.org>
Date: Thu Oct 10 18:05:23 2013 +0900
3.0.2
.gitignore | 1 +
rubygem-gettext.spec | 96 +++++--------------------------------------------
sources | 2 +-
3 files changed, 12 insertions(+), 87 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 742933d..489287c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ gettext-2.1.0.gem
/gettext-2.3.6.gem
/gettext-2.3.7.gem
/gettext-2.3.8.gem
+/gettext-3.0.2.gem
diff --git a/rubygem-gettext.spec b/rubygem-gettext.spec
index c8a5ee0..c841a09 100644
--- a/rubygem-gettext.spec
+++ b/rubygem-gettext.spec
@@ -9,18 +9,14 @@
%global repoid 67096
Name: rubygem-%{gem_name}
-Version: 2.3.8
-Release: 2%{?dist}
+Version: 3.0.2
+Release: 1%{?dist}
Summary: RubyGem of Localization Library and Tools for Ruby
Group: Development/Languages
License: Ruby
URL: http://www.yotabanana.com/hiki/ruby-gettext.html?ruby-gettext
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
-#Source0: http://rubyforge.org/frs/download.php/%{repoid}/%{gem_name}-%{version}.gem
-# For test-unit 2.4.5 (latest test-unit is 2.5.3:
-# please remove Patch0 after updating test-unit)
-Patch0: rubygem-gettext-2.3.6-old-test-unit.patch
%if 0%{?fedora} >= 19
Requires: ruby(release)
@@ -37,17 +33,12 @@ BuildRequires: rubygem(locale) >= %{locale_ver}
BuildRequires: rubygem(test-unit)
BuildRequires: rubygem(test-unit-notify)
BuildRequires: rubygem(test-unit-rr)
-BuildRequires: rubygem(levenshtein)
+BuildRequires: rubygem(text)
BuildRequires: gettext
-%if 0%{?fedora} >= 19
-# Use GLib's iconv
-BuildRequires: rubygem(glib2)
-Requires: rubygem(glib2)
-%endif
Requires: ruby(rubygems)
Requires: rubygem(locale) >= %{locale_ver}
-Requires: rubygem(levenshtein)
+Requires: rubygem(text)
Requires: irb
Provides: rubygem(%{gem_name}) = %{version}-%{release}
@@ -83,7 +74,6 @@ gem unpack %{SOURCE0}
cd %{gem_name}-%{version}
#Patches, etc
-%patch0 -p0
gem specification -l --ruby %{SOURCE0} > %{gem_name}.gemspec
@@ -94,20 +84,11 @@ popd
rm -rf tmpunpackdir
%build
-mkdir -p .%{gem_dir}
-gem install \
- --local \
- --install-dir .%{gem_dir} \
- --force \
- --rdoc \
- -V \
- %{gem_name}-%{version}.gem
+%gem_install
#%%{__rm} -f .%{gem_instdir}/Rakefile
%{__rm} -f .%{gem_instdir}/%{gem_name}.gemspec
-%{__rm} -f .%{gem_instdir}/replace.rb
%{__rm} -rf .%{gem_instdir}/po/
-%{__rm} -rf .%{gem_dir}/bin/
%{__chmod} 0755 .%{gem_instdir}/bin/*
%{__chmod} 0644 .%{gem_dir}/cache/*.gem
find .%{gem_instdir}/ -name \*.po | xargs %{__chmod} 0644
@@ -122,72 +103,12 @@ done
find . -type f -print0 | xargs -0 touch -r %{SOURCE0}
%install
-%{__mkdir_p} %{buildroot}%{gem_dir}
+%{__mkdir_p} %{buildroot}{%{gem_dir},%{_bindir}}
+%{__cp} -a .%{_bindir}/* %{buildroot}/%{_bindir}/
%{__cp} -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
find %{buildroot}%{gem_dir} -name \*.rb.patch\* -delete
-# Create symlinks
-##
-## Note that before switching to gem %%{ruby_sitelib}/%%{gem_name}
-## already existed as a directory, so this cannot be replaced
-## by symlink (cpio fails)
-## Similarly, all directories under %%{ruby_sitelib} cannot be
-## replaced by symlink
-#
-
-create_symlink_rec(){
-
-ORIGBASEDIR=$1
-TARGETBASEDIR=$2
-
-## First calculate relative path of ORIGBASEDIR
-## from TARGETBASEDIR
-TMPDIR=$TARGETBASEDIR
-BACKDIR=
-DOWNDIR=
-num=0
-nnum=0
-while true
-do
- num=$((num+1))
- TMPDIR=$(echo $TMPDIR | %{__sed} -e 's|/[^/][^/]*$||')
- DOWNDIR=$(echo $ORIGBASEDIR | %{__sed} -e "s|^$TMPDIR||")
- if [ x$DOWNDIR != x$ORIGBASEDIR ]
- then
- nnum=0
- while [ $nnum -lt $num ]
- do
- BACKDIR="../$BACKDIR"
- nnum=$((nnum+1))
- done
- break
- fi
-done
-
-RELBASEDIR=$( echo $BACKDIR/$DOWNDIR | %{__sed} -e 's|//*|/|g' )
-
-## Next actually create symlink
-pushd %{buildroot}/$ORIGBASEDIR
-find . -type f | while read f
-do
- DIRNAME=$(dirname $f)
- BACK2DIR=$(echo $DIRNAME | %{__sed} -e 's|/[^/][^/]*|/..|g')
- %{__mkdir_p} %{buildroot}${TARGETBASEDIR}/$DIRNAME
- LNNAME=$(echo $BACK2DIR/$RELBASEDIR/$f | \
- %{__sed} -e 's|^\./||' | %{__sed} -e 's|//|/|g' | \
- %{__sed} -e 's|/\./|/|' )
- %{__ln_s} -f $LNNAME %{buildroot}${TARGETBASEDIR}/$f
-done
-popd
-
-}
-
-create_symlink_rec %{gem_instdir}/bin %{_bindir}
-
-%if 0%{?ruby19} < 1
-create_symlink_rec %{gem_instdir}/data/locale %{_datadir}/locale
-%endif
# For --short-circult
%{__rm} -f *.lang
@@ -245,6 +166,9 @@ popd
%exclude %{gem_instdir}/src/
%changelog
+* Thu Oct 10 2013 Mamoru TASAKA <mtasaka at fedoraproject.org> - 3.0.2-1
+- 3.0.2
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.3.8-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/sources b/sources
index aab6e2b..1dae8c0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f2d06ecca88116743120d6a3b1e038fd gettext-2.3.8.gem
+5105911450f5ef06dad57cb45378bf1c gettext-3.0.2.gem
More information about the scm-commits
mailing list