1.3.3
This commit is contained in:
parent
d5d07cfa76
commit
011992bee4
3 changed files with 7 additions and 77 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -8,3 +8,4 @@ flexmock-0.8.7.gem
|
|||
/flexmock-1.3.0.gem
|
||||
/flexmock-1.3.1.gem
|
||||
/flexmock-1.3.2.gem
|
||||
/flexmock-1.3.3.gem
|
||||
|
|
|
|||
|
|
@ -1,33 +1,18 @@
|
|||
%global ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
|
||||
|
||||
%if 0%{?fedora} < 19
|
||||
%global rubyabi 1.9.1
|
||||
%endif
|
||||
|
||||
%global gem_name flexmock
|
||||
|
||||
# Note
|
||||
# 0.8.11 seems to work only with ruby 1.8.7+
|
||||
# (test fails with 1.8.6.x (i.e. F-13))
|
||||
|
||||
Summary: Mock object library for ruby
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 1.3.2
|
||||
Version: 1.3.3
|
||||
Release: 1%{?dist}
|
||||
Group: Development/Languages
|
||||
License: Copyright only
|
||||
URL: http://flexmock.rubyforge.org
|
||||
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
||||
|
||||
%if 0%{?fedora} >= 19
|
||||
Requires: ruby(release)
|
||||
BuildRequires: ruby(release)
|
||||
%else
|
||||
Requires: ruby(abi) = %{rubyabi}
|
||||
Requires: ruby
|
||||
BuildRequires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: ruby
|
||||
%endif
|
||||
BuildRequires: rubygems-devel
|
||||
BuildRequires: rubygem(minitest)
|
||||
BuildRequires: rubygem(rake)
|
||||
|
|
@ -73,66 +58,6 @@ find . -name \*.gem -or -name \*.rb -or -name \*.rdoc | xargs chmod 0644
|
|||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||
|
||||
# Create symlinks
|
||||
# Copied from rubygem-getetxt.spec
|
||||
##
|
||||
## 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
|
||||
|
||||
}
|
||||
|
||||
%if 0%{?fedora} < 17
|
||||
create_symlink_rec %{gem_instdir}/lib %{ruby_sitelib}
|
||||
%endif
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
|
|
@ -142,6 +67,7 @@ rake test_all --trace
|
|||
%defattr(-,root,root,-)
|
||||
%dir %{gem_instdir}
|
||||
%doc %{gem_instdir}/[A-Z]*
|
||||
%exclude %{gem_instdir}/Gemfile*
|
||||
%exclude %{gem_instdir}/TAGS
|
||||
%exclude %{gem_instdir}/Rakefile
|
||||
%exclude %{gem_instdir}/install.rb
|
||||
|
|
@ -165,6 +91,9 @@ rake test_all --trace
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Sun May 4 2014 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.3-1
|
||||
- 1.3.3
|
||||
|
||||
* Wed Aug 6 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.3.2-1
|
||||
- 1.3.2
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
12949cb3f5d1f20aae591cbd637dc9a7 flexmock-1.3.2.gem
|
||||
7307ec90dc58d55224acab53c3bfb90e flexmock-1.3.3.gem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue