rpms/rubygem-mkrf/devel rubygem-mkrf.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mamoru Tasaka mtasaka at fedoraproject.org
Fri Jul 10 04:10:39 UTC 2009


Author: mtasaka

Update of /cvs/extras/rpms/rubygem-mkrf/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv13208/rubygem-mkrf/devel

Modified Files:
	.cvsignore sources 
Added Files:
	rubygem-mkrf.spec 
Log Message:
mkrf, ruby-opengl, initial import. Make ruby-gtkglext require ruby(opengl)


--- NEW FILE rubygem-mkrf.spec ---
%global		gemdir		%(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global		gemname		mkrf
%global		geminstdir	%{gemdir}/gems/%{gemname}-%{version}

%global		rubyabi		1.8

Summary:	Making C extensions for Ruby a bit easier
Name:		rubygem-%{gemname}
Version:	0.2.3
Release:	2%{?dist}
Group:		Development/Languages
License:	MIT
URL:		http://mkrf.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:		ruby(abi) = %{rubyabi}
BuildRequires:		ruby(rubygems)
BuildRequires(check):	rubygem(rake)
BuildRequires(check):	libxml2-devel
BuildRequires(check):	ruby-devel
Requires:		ruby(abi) = %{rubyabi}
BuildRequires:		ruby(rubygems)
BuildArch:		noarch
Provides:		rubygem(%{gemname}) = %{version}-%{release}

%description
mkrf is a library for generating Rakefiles to build Ruby
extension modules written in C. It is intended as a replacement for
mkmf. The major difference between the two is that mkrf
builds you a Rakefile instead of a Makefile.

This proposed replacement to mkmf generates Rakefiles to build C Extensions.

%package	doc
Summary:	Documentation for %{name}
# Some test files are under GPLv2+
License:	MIT and GPLv2+
Group:		Documentation
Requires:	%{name} = %{version}-%{release}

%description	doc
This package contains documentation for %{name}.

%prep
%setup -q -c -T
gem install \
	--local \
	--install-dir $(pwd)%{gemdir} \
	--force \
	--rdoc \
	-V \
	%{SOURCE0}

find . -name \*.gem -or -name \*.rb | xargs chmod 0644

%build

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{gemdir}
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/

%clean
rm -rf %{buildroot}

%check
# Some tests fails, needs checking
export GEM_PATH=$(pwd)/%{gemdir}
pushd .%{geminstdir}

rake -P | grep 'rake test:' | grep -v 'sample:all' | while read line
do
	eval $line --trace || true
done

popd

%files
%defattr(-,root,root,-)
%dir %{geminstdir}
%doc %{geminstdir}/[A-Z]*
%exclude %{geminstdir}/Rakefile
%{geminstdir}/lib/
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

%files doc
%defattr(-,root,root,-)
%{geminstdir}/Rakefile
%{geminstdir}/test/
%{gemdir}/doc/%{gemname}-%{version}/

%changelog
* Thu Jul  9 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.2.3-2
- Improve indentation
- Make sure gem is installed with proper permission

* Sat Jun 27 2009 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 0.2.3-1
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/rubygem-mkrf/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	10 Jul 2009 03:34:55 -0000	1.1
+++ .cvsignore	10 Jul 2009 04:10:09 -0000	1.2
@@ -0,0 +1 @@
+mkrf-0.2.3.gem


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/rubygem-mkrf/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	10 Jul 2009 03:34:55 -0000	1.1
+++ sources	10 Jul 2009 04:10:09 -0000	1.2
@@ -0,0 +1 @@
+9506a6b1ea97246bb43c18e98861d080  mkrf-0.2.3.gem




More information about the fedora-extras-commits mailing list