rpms/rubygem-ffi/devel import.log, NONE, 1.1 rubygem-ffi.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Bryan Kearney bkearney at fedoraproject.org
Mon Feb 22 14:13:24 UTC 2010


Author: bkearney

Update of /cvs/pkgs/rpms/rubygem-ffi/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv32220/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log rubygem-ffi.spec 
Log Message:
Initial Checkin



--- NEW FILE import.log ---
rubygem-ffi-0_5_4-3_fc12:HEAD:rubygem-ffi-0.5.4-3.fc12.src.rpm:1266848089


--- NEW FILE rubygem-ffi.spec ---
%{!?ruby_sitearch: %global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")}
%{!?gemdir: %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)}
%global gemname ffi
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
%global libname %{gemname}_c.so 
%global githubhash 57b5d81
%global tarballname ffi-ffi-%{githubhash}

Name:           rubygem-%{gemname}
Version:        0.5.4
Release:        3%{?dist}
Summary:        FFI Extensions for Ruby
Group:          Development/Languages

License:        BSD
URL:            http://wiki.github.com/ffi/ffi
# The source file is hosted at github. You can access this tarball with
# the following link:
#          http://github.com/ffi/ffi/tarball/0.5.4
Source0:        %{tarballname}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  ruby ruby-devel rubygems rubygem(rake) rubygem(rake-compiler) libffi-devel rubygem(rspec)
BuildRequires:  pkgconfig
Requires:       rubygems
Requires:       ruby(abi) = 1.8
Provides:       rubygem(%{gemname}) = %{version}

%description
Ruby-FFI is a ruby extension for programmatically loading dynamic
libraries, binding functions within them, and calling those functions
from Ruby code. Moreover, a Ruby-FFI extension works without changes
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].

%prep
%setup -q -n %{tarballname}

%build
export CFLAGS="%{optflags}"
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
rake gem
gem install -V -d --local --no-ri -i ./geminst --force pkg/%{gemname}-%{version}.gem 

%install
rm -rf %{buildroot}
mkdir %{buildroot}
install -d -m0755 %{buildroot}%{gemdir}
install -d -m0755  %{buildroot}%{ruby_sitearch}
cp -R %{_builddir}/%{tarballname}/geminst/* %{buildroot}%{gemdir}
mv %{buildroot}%{geminstdir}/lib/%{libname} %{buildroot}%{ruby_sitearch}/%{libname} 
rm -rf %{buildroot}%{geminstdir}/lib/%{libname}
rm -rf %{buildroot}%{geminstdir}/ext

%check
rake test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc %{geminstdir}/README.rdoc 
%doc %{geminstdir}/LICENSE 
%doc %{gemdir}/doc/%{gemname}-%{version}
%dir %{geminstdir}
%{geminstdir}/.require_paths
%{geminstdir}/Rakefile
%{geminstdir}/gen
%{geminstdir}/lib
%{geminstdir}/spec
%{ruby_sitearch}/%{libname}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec 


%changelog
* Tue Feb 22 2010 Bryan Kearney <bkearney at redhat.com> - 0.5.4-3
- Final updates based on package review

* Tue Feb 16 2010 Bryan Kearney <bkearney at redhat.com> - 0.5.4-2
- Updates Based on code review comments

* Mon Feb 15 2010 Bryan Kearney <bkearney at redhat.com> - 0.5.4-1
- Initial specfile


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-ffi/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	19 Feb 2010 19:11:26 -0000	1.1
+++ .cvsignore	22 Feb 2010 14:13:24 -0000	1.2
@@ -0,0 +1 @@
+ffi-ffi-57b5d81.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-ffi/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	19 Feb 2010 19:11:26 -0000	1.1
+++ sources	22 Feb 2010 14:13:24 -0000	1.2
@@ -0,0 +1 @@
+06d4b99c0c20c58f73750d4625629623  ffi-ffi-57b5d81.tar.gz



More information about the scm-commits mailing list