From 62e62af2fe76d8d6146c4a8ea7f2b6bb7d62ed28 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Thu, 2 Jul 2009 05:02:49 +0000 Subject: [PATCH 1/5] Initialize branch F-10 for rubygem-rake-compiler --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..dc32377 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-10 From e225d8482b1102cf569fd49360fd88434707f203 Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Thu, 2 Jul 2009 05:36:30 +0000 Subject: [PATCH 2/5] Initial commit --- .cvsignore | 1 + rubygem-rake-compiler.spec | 103 +++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 105 insertions(+) create mode 100644 rubygem-rake-compiler.spec diff --git a/.cvsignore b/.cvsignore index e69de29..07393b5 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +rake-compiler-0.5.0.gem diff --git a/rubygem-rake-compiler.spec b/rubygem-rake-compiler.spec new file mode 100644 index 0000000..a794a91 --- /dev/null +++ b/rubygem-rake-compiler.spec @@ -0,0 +1,103 @@ +%global gemname rake-compiler +%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global geminstdir %{gemdir}/gems/%{gemname}-%{version} + +%global rubyabi 1.8 + +Summary: Rake-based Ruby C Extension task generator +Name: rubygem-%{gemname} +Version: 0.5.0 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://rake-compiler.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) +Requires: ruby(abi) = %{rubyabi} +Requires: ruby(rubygems) +Requires: rubygem(rake) >= 0.8.3 +BuildArch: noarch +Provides: rubygem(%{gemname}) = %{version}-%{release} + +%description +rake-compiler aims to help Gem developers while dealing with +Ruby C extensions, simplifiying the code and reducing the duplication. + +It follows *convention over configuration* and set an standarized +structure to build and package C extensions in your gems. + +This is the result of expriences dealing with several Gems +that required native extensions across platforms and different +user configurations where details like portability and +clarity of code were lacking. + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description doc +This package contains documentation for %{name}. + +%prep +%setup -q -c -T + +mkdir -p .%{gemdir} +gem install \ + --local \ + --install-dir $(pwd)%{gemdir} \ + --force \ + --rdoc \ + -V \ + %{SOURCE0} + +# rpmlint cosmetic +pushd .%{geminstdir} +sed -i -e 's|\r||' README.rdoc +find ./lib/rake -name \*.rb | xargs sed -i -e '\@/usr/bin/env@d' +popd + +%build + +%install +rm -rf %{buildroot} + +mkdir -p %{buildroot}%{gemdir} +cp -a .%{gemdir}/* %{buildroot}%{gemdir}/ + +# Move files under %%_bindir +mkdir -p %{buildroot}/%{_bindir} +mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir} + +rmdir %{buildroot}%{gemdir}/bin + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/rake-compiler +%dir %{geminstdir} +%doc %{geminstdir}/README.rdoc +%doc %{geminstdir}/LICENSE.txt +%doc %{geminstdir}/History.txt +%{geminstdir}/Rakefile +%{geminstdir}/cucumber.yml +%{geminstdir}/[a-z]*/ +%{gemdir}/cache/%{gemname}-%{version}.gem +%{gemdir}/specifications/%{gemname}-%{version}.gemspec + +%files doc +%defattr(-,root,root,-) +%{gemdir}/doc/%{gemname}-%{version} + + +%changelog +* Thu Jul 2 2009 Mamoru Tasaka - 0.5.0-2 +- Restore files under %%{geminstdir}/bin + +* Thu Jun 11 2009 Mamoru Tasaka - 0.5.0-1 +- Initial package diff --git a/sources b/sources index e69de29..6fcf90e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8f5b763bc086ae215227d9bd9bb7a875 rake-compiler-0.5.0.gem From 6d3b62eec46053832c0f44fa42373eb9c73cd48d Mon Sep 17 00:00:00 2001 From: Mamoru Tasaka Date: Tue, 28 Jul 2009 18:13:48 +0000 Subject: [PATCH 3/5] gem update --- .cvsignore | 2 +- rubygem-rake-compiler.spec | 8 +++++++- sources | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.cvsignore b/.cvsignore index 07393b5..d5b8d1c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -rake-compiler-0.5.0.gem +rake-compiler-0.6.0.gem diff --git a/rubygem-rake-compiler.spec b/rubygem-rake-compiler.spec index a794a91..23d0355 100644 --- a/rubygem-rake-compiler.spec +++ b/rubygem-rake-compiler.spec @@ -6,7 +6,7 @@ Summary: Rake-based Ruby C Extension task generator Name: rubygem-%{gemname} -Version: 0.5.0 +Version: 0.6.0 Release: 1%{?dist} Group: Development/Languages License: MIT @@ -96,6 +96,12 @@ rm -rf %{buildroot} %changelog +* Wed Jul 29 2009 Mamoru Tasaka - 0.6.0-1 +- 0.6.0 + +* Sat Jul 25 2009 Mamoru Tasaka - 0.5.0-2 +- F-12: Mass rebuild + * Thu Jul 2 2009 Mamoru Tasaka - 0.5.0-2 - Restore files under %%{geminstdir}/bin diff --git a/sources b/sources index 6fcf90e..bdfb6a8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -8f5b763bc086ae215227d9bd9bb7a875 rake-compiler-0.5.0.gem +9a8edefde6ca9df9222f6cfe3973c130 rake-compiler-0.6.0.gem From 33f1c5eaf5a92c44ab726a9be59e00c63995ac67 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:31:53 +0000 Subject: [PATCH 4/5] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cb4f8f3..cee77f3 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := rubygem-rake-compiler 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 $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +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)) From a5287831d483e6b2631ddfdeb7eb13958416338c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 11:54:18 +0000 Subject: [PATCH 5/5] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index cee77f3..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: rubygem-rake-compiler -# $Id$ -NAME := rubygem-rake-compiler -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) diff --git a/branch b/branch deleted file mode 100644 index dc32377..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-10