From 7f79aa85276d967439c22a2d05ece74e47677620 Mon Sep 17 00:00:00 2001 From: Jeroen van Meeuwen Date: Aug 07 2008 11:39:28 +0000 Subject: 0.6.0-6 --- diff --git a/.cvsignore b/.cvsignore index e69de29..2d16893 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +RubyRRDtool-0.6.0.tgz diff --git a/RubyRRDtool-0.6.0.patch b/RubyRRDtool-0.6.0.patch new file mode 100644 index 0000000..8559a0a --- /dev/null +++ b/RubyRRDtool-0.6.0.patch @@ -0,0 +1,22 @@ +Common subdirectories: RubyRRDtool-0.6.0.orig/examples and RubyRRDtool-0.6.0/examples +diff -u RubyRRDtool-0.6.0.orig/rubyrrdtool.c RubyRRDtool-0.6.0/rubyrrdtool.c +--- RubyRRDtool-0.6.0.orig/rubyrrdtool.c 2006-10-18 23:44:10.000000000 +0200 ++++ RubyRRDtool-0.6.0/rubyrrdtool.c 2008-07-28 18:38:58.000000000 +0200 +@@ -22,7 +22,6 @@ + #include /* for isnan */ + #include + #include +-#include "rrd_addition.h" + + /* printf debugging */ + #define R_RRD_DEBUG_OFF 0 /* no debugging */ +@@ -994,7 +993,7 @@ + { + VALUE rrd; /* rrd database filename */ + VALUE rval; /* our result */ +- info_t *data, *p; /* this is what rrd_info()returns */ ++ rrd_info_t *data, *p; /* this is what rrd_info()returns */ + + reset_rrd_state(); + +Common subdirectories: RubyRRDtool-0.6.0.orig/test and RubyRRDtool-0.6.0/test diff --git a/import.log b/import.log new file mode 100644 index 0000000..39662ae --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ruby-RRDtool-0_6_0-6_fc10:HEAD:ruby-RRDtool-0.6.0-6.fc10.src.rpm:1218109155 diff --git a/ruby-RRDtool.spec b/ruby-RRDtool.spec new file mode 100644 index 0000000..1787d0a --- /dev/null +++ b/ruby-RRDtool.spec @@ -0,0 +1,55 @@ +%{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]')} + +Name: ruby-RRDtool +Version: 0.6.0 +Release: 6%{?dist} +Summary: RRDTool for Ruby + +Group: Development/Languages +License: MIT +URL: http://rubyforge.org/projects/rubyrrdtool/ +Source0: http://rubyforge.org/frs/download.php/13992/RubyRRDtool-%{version}.tgz + +%if 0%{?fedora} >= 8 +Patch0: RubyRRDtool-0.6.0.patch +%endif + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: ruby, ruby(abi) = 1.8, ruby-devel, rrdtool-devel +Requires: ruby(abi) = 1.8, rrdtool +Provides: ruby(RRDtool) = %{version} + +%description +Generate RRDTool Databases from Ruby + +%prep +%setup -q -n RubyRRDtool-0.6.0 + +%if 0%{?fedora} >= 8 +%patch0 -p1 +%endif + +%build +ruby extconf.rb +make %{?_smp_flags} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{ruby_sitearch} +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README +%{ruby_sitearch}/RRDtool.so + +%changelog +* Mon Jul 28 2008 Jeroen van Meeuwen 0.6.0-5 +- Rebuild for review (#255721) + +* Mon Aug 27 2007 Jeroen van Meeuwen 0.6.0-1 +- Initial Build diff --git a/sources b/sources index e69de29..e637be6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +891480757a4cadd53a4c22dfb097b801 RubyRRDtool-0.6.0.tgz