rpms/rubygem-oniguruma/F-13 import.log, NONE, 1.1 oniguruma.Rakefile.patch, NONE, 1.1 rubygem-oniguruma.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Gerd Pokorra gerd at fedoraproject.org
Sat Jul 10 18:06:26 UTC 2010


Author: gerd

Update of /cvs/pkgs/rpms/rubygem-oniguruma/F-13
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv31254/F-13

Modified Files:
	.cvsignore sources 
Added Files:
	import.log oniguruma.Rakefile.patch rubygem-oniguruma.spec 
Log Message:
initial upload with cvs-import.sh to F-13 branch



--- NEW FILE import.log ---
rubygem-oniguruma-1_1_0-3_fc12:F-13:rubygem-oniguruma-1.1.0-3.fc12.src.rpm:1278785009

oniguruma.Rakefile.patch:
 Rakefile |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

--- NEW FILE oniguruma.Rakefile.patch ---
--- Rakefile	2010-06-16 09:14:14.240879073 +0200
+++ Rakefile	2010-06-21 11:25:07.868728485 +0200
@@ -6,16 +6,6 @@
    def extra_deps 
       @extra_deps.delete_if{ |x| x.first == 'hoe' }
    end
-   
-   # Dirty hack to package only the required files per platform
-   def spec= s 
-      if ENV['PLATFORM'] =~ /win32/
-         s.files = s.files.reject! {|f| f =~ /extconf\.rb/}
-      else
-         s.files = s.files.reject! {|f| f =~ /win\//}
-      end
-      @spec = s
-   end
 end
 
 version = /^== *(\d+\.\d+\.\d+)/.match( File.read( 'History.txt' ) )[1]
@@ -34,7 +24,7 @@
   else
      p.spec_extras[:extensions] = ["ext/extconf.rb"]
   end
-  p.rdoc_pattern = /^(lib|bin|ext)|txt$/
+#  p.rdoc_pattern = /^(lib|bin|ext)|txt$/
   p.changes = p.paragraphs_of('History.txt', 0).join("\n\n")
 end
 


--- NEW FILE rubygem-oniguruma.spec ---
# Generated from oniguruma-1.1.0.gem by gem2rpm -*- rpm-spec -*-

%global ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")

%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
%global gemname oniguruma
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}

Summary: Bindings for the oniguruma regular expression library
Name: rubygem-%{gemname}
Version: 1.1.0
Release: 3%{?dist}
Group: Development/Languages
License: BSD
URL: http://oniguruma.rubyforge.org

Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
Patch0: %{gemname}.Rakefile.patch

Requires: ruby(abi) = 1.8
Requires: rubygems
BuildRequires: rubygems, ruby-devel, oniguruma-devel
BuildRequires: rubygem(rake), rubygem(hoe)
Provides: rubygem(%{gemname}) = %{version}


%package doc
Summary: Documentation for %{name}
Group: Documentation
BuildArch: noarch
Requires: %{name} = %{version}-%{release}


%description
Ruby bindings to the Oniguruma[http://www.geocities.jp/kosako3/oniguruma/]
regular expression library (no need to recompile Ruby).

#--

%description doc
This package contains Rakefile, test directory and documentation for
%{name}.


%prep
%setup -q -c -T

%build
mkdir -p .%{gemdir}
gem install -V --local --install-dir $(pwd)/%{gemdir} --rdoc %{SOURCE0}

pushd ./%{geminstdir}/ext
make clean all install CFLAGS="%{optflags} -fPIC"

# Apply the patch which is needed that the tests successfully complete
cd ..
patch -p0 < %{PATCH0}


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir}
mkdir -p %{buildroot}%{ruby_sitearch}
#
cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
#
rm -rf %{buildroot}%{geminstdir}/ext
mv %{buildroot}%{geminstdir}/lib/oregexp.so %{buildroot}%{ruby_sitearch}


%clean
rm -rf %{buildroot}

%check
export GEM_PATH=$(pwd)/%{gemdir}
pushd .%{geminstdir}
rake test

%files
%defattr(-, root, root, -)
%dir %{geminstdir}
%doc %{geminstdir}/History.txt
%doc %{geminstdir}/Manifest.txt
%doc %{geminstdir}/README.txt
%doc %{geminstdir}/Syntax.txt
%{geminstdir}/lib
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
%{ruby_sitearch}/oregexp.so

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


%changelog
* Tue Jul 06 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.1.0-3
- add "-fPIC" option to CFLAGS

* Wed Jun 23 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.1.0-2
- add "-V" option to the "gem install" command

* Mon Jun 07 2010 Gerd Pokorra <gp at zimt.uni-siegen.de> - 1.1.0-1
- add doc-subpackage
- move arch-dependent files to "ruby_sitearch"
- use "global" macro instead of "define" macro
- Added "BuildRequires: rubygem(hoe)"
- Added "BuildRequires: rubygem(rake)"
- Changed license tag
- Added "BuildRequires: oniguruma-devel"
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-oniguruma/F-13/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	9 Jul 2010 18:25:48 -0000	1.1
+++ .cvsignore	10 Jul 2010 18:06:25 -0000	1.2
@@ -0,0 +1 @@
+oniguruma-1.1.0.gem


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/rubygem-oniguruma/F-13/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	9 Jul 2010 18:25:48 -0000	1.1
+++ sources	10 Jul 2010 18:06:26 -0000	1.2
@@ -0,0 +1 @@
+6701693a45d4101a1996823675056213  oniguruma-1.1.0.gem



More information about the scm-commits mailing list