Compare commits

...

5 Commits
rawhide ... f13

Author SHA1 Message Date
Fedora Release Engineering
d87672fe42 dist-git conversion 2010-07-29 11:50:19 +00:00
Bryan Kearney
8b1ab0c23d Power PC changes from upstream 2010-03-10 14:08:53 +00:00
Bryan Kearney
fb554dc884 Pulling in 0.6.2 from upstream 2010-03-08 17:42:14 +00:00
Bryan Kearney
fb37856bda Initial checkin. 2010-02-22 14:23:08 +00:00
Jason ティビツ
6a88963cc2 Initialize branch F-13 for rubygem-ffi 2010-02-19 19:11:28 +00:00
5 changed files with 95 additions and 21 deletions

View File

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
ffi-ffi-b69a5e3.tar.gz

View File

@ -1,21 +0,0 @@
# Makefile for source rpm: rubygem-ffi
# $Id$
NAME := rubygem-ffi
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

93
rubygem-ffi.spec Normal file
View File

@ -0,0 +1,93 @@
%{!?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 b69a5e3
%global tarballname ffi-ffi-%{githubhash}
Name: rubygem-%{gemname}
Version: 0.6.3
Release: 1%{?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}/History.txt
%doc %{geminstdir}/LICENSE
%doc %{gemdir}/doc/%{gemname}-%{version}
%dir %{geminstdir}
%{geminstdir}/.require_paths
%{geminstdir}/Rakefile
%{geminstdir}/gen
%{geminstdir}/lib
%{geminstdir}/spec
%{geminstdir}/tasks
%{ruby_sitearch}/%{libname}
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%changelog
* Wed Mar 10 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
- Power PC fixes from upstream which were found testing 0.6.2
* Tue Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.6.2-1
- Pull in 0.6.2 from upstream
* Tue Feb 22 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-3
- Final updates based on package review
* Tue Feb 16 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-2
- Updates Based on code review comments
* Mon Feb 15 2010 Bryan Kearney <bkearney@redhat.com> - 0.5.4-1
- Initial specfile

View File

@ -0,0 +1 @@
5db505b7481a979f15c3edfe6eed62ac ffi-ffi-b69a5e3.tar.gz