Latest 1.0.9 from upstream
This commit is contained in:
parent
e0c0b5a543
commit
fa312d0b30
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
ffi-ffi-b69a5e3.tar.gz
|
ffi-ffi-b69a5e3.tar.gz
|
||||||
|
/ffi-ffi-1.0.9-0-gb79eb61.tar.gz
|
||||||
|
@ -3,25 +3,28 @@
|
|||||||
%global gemname ffi
|
%global gemname ffi
|
||||||
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
||||||
%global libname %{gemname}_c.so
|
%global libname %{gemname}_c.so
|
||||||
%global githubhash b69a5e3
|
%global githubhash b79eb61
|
||||||
%global tarballname ffi-ffi-%{githubhash}
|
%global githubbuild 0
|
||||||
|
%global tarballname ffi-ffi-%{version}-%{githubbuild}-g%{githubhash}
|
||||||
|
%global gitinternalname ffi-ffi-%{githubhash}
|
||||||
|
|
||||||
Name: rubygem-%{gemname}
|
Name: rubygem-%{gemname}
|
||||||
Version: 0.6.3
|
Version: 1.0.9
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: FFI Extensions for Ruby
|
Summary: FFI Extensions for Ruby
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
|
||||||
License: BSD
|
License: GPLv3
|
||||||
URL: http://wiki.github.com/ffi/ffi
|
URL: http://wiki.github.com/ffi/ffi
|
||||||
# The source file is hosted at github. You can access this tarball with
|
# The source file is hosted at github. You can access this tarball with
|
||||||
# the following link:
|
# the following link:
|
||||||
# http://github.com/ffi/ffi/tarball/0.5.4
|
# http://github.com/ffi/ffi/tarball/1.0.9
|
||||||
Source0: %{tarballname}.tar.gz
|
Source0: %{tarballname}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
|
|
||||||
BuildRequires: ruby ruby-devel rubygems rubygem(rake) rubygem(rake-compiler) libffi-devel rubygem(rspec)
|
BuildRequires: ruby ruby-devel rubygems rubygem(rake) rubygem(rake-compiler) libffi-devel rubygem(rspec) rubygem(rspec-core)
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
|
Requires: libffi
|
||||||
Requires: rubygems
|
Requires: rubygems
|
||||||
Requires: ruby(abi) = 1.8
|
Requires: ruby(abi) = 1.8
|
||||||
Provides: rubygem(%{gemname}) = %{version}
|
Provides: rubygem(%{gemname}) = %{version}
|
||||||
@ -34,7 +37,7 @@ on Ruby and JRuby. Discover why should you write your next extension
|
|||||||
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{tarballname}
|
%setup -q -n %{gitinternalname}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
@ -47,13 +50,13 @@ rm -rf %{buildroot}
|
|||||||
mkdir %{buildroot}
|
mkdir %{buildroot}
|
||||||
install -d -m0755 %{buildroot}%{gemdir}
|
install -d -m0755 %{buildroot}%{gemdir}
|
||||||
install -d -m0755 %{buildroot}%{ruby_sitearch}
|
install -d -m0755 %{buildroot}%{ruby_sitearch}
|
||||||
cp -R %{_builddir}/%{tarballname}/geminst/* %{buildroot}%{gemdir}
|
cp -R %{_builddir}/%{gitinternalname}/geminst/* %{buildroot}%{gemdir}
|
||||||
mv %{buildroot}%{geminstdir}/lib/%{libname} %{buildroot}%{ruby_sitearch}/%{libname}
|
mv %{buildroot}%{geminstdir}/lib/%{libname} %{buildroot}%{ruby_sitearch}/%{libname}
|
||||||
rm -rf %{buildroot}%{geminstdir}/lib/%{libname}
|
rm -rf %{buildroot}%{geminstdir}/lib/%{libname}
|
||||||
rm -rf %{buildroot}%{geminstdir}/ext
|
rm -rf %{buildroot}%{geminstdir}/ext
|
||||||
|
|
||||||
%check
|
%check
|
||||||
rake test
|
rake -v test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -65,7 +68,10 @@ rm -rf %{buildroot}
|
|||||||
%doc %{geminstdir}/LICENSE
|
%doc %{geminstdir}/LICENSE
|
||||||
%doc %{gemdir}/doc/%{gemname}-%{version}
|
%doc %{gemdir}/doc/%{gemname}-%{version}
|
||||||
%dir %{geminstdir}
|
%dir %{geminstdir}
|
||||||
%{geminstdir}/.require_paths
|
# This file does not exist in 15
|
||||||
|
%if 0%{?fedora} <= 14
|
||||||
|
%{geminstdir}/.require_paths
|
||||||
|
%endif
|
||||||
%{geminstdir}/Rakefile
|
%{geminstdir}/Rakefile
|
||||||
%{geminstdir}/gen
|
%{geminstdir}/gen
|
||||||
%{geminstdir}/lib
|
%{geminstdir}/lib
|
||||||
@ -77,6 +83,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jun 13 2011 Bryan Kearney <bkearney@redhat.com> - 1.0.9-1
|
||||||
|
- Bring in 1.0.9 from upstream.
|
||||||
|
|
||||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user