packages: ruby-rip/ruby-rip-prefix.patch (NEW), ruby-rip/ruby-rip.spec (NEW...

aredridel aredridel at pld-linux.org
Mon Jun 15 05:46:39 CEST 2009


Author: aredridel                    Date: Mon Jun 15 03:46:39 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- added

---- Files affected:
packages/ruby-rip:
   ruby-rip-prefix.patch (NONE -> 1.1)  (NEW), ruby-rip.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ruby-rip/ruby-rip-prefix.patch
diff -u /dev/null packages/ruby-rip/ruby-rip-prefix.patch:1.1
--- /dev/null	Mon Jun 15 05:46:39 2009
+++ packages/ruby-rip/ruby-rip-prefix.patch	Mon Jun 15 05:46:33 2009
@@ -0,0 +1,12 @@
+diff -ur rip-o/lib/rip/setup.rb rip/lib/rip/setup.rb
+--- rip-o/lib/rip/setup.rb	2009-06-14 00:38:00.000000000 -0600
++++ rip/lib/rip/setup.rb	2009-06-14 19:30:07.000000000 -0600
+@@ -25,7 +25,7 @@
+ 
+     # caution: RbConfig::CONFIG['bindir'] does NOT work for me
+     # on OS X
+-    BINDIR = File.join('/', 'usr', 'local', 'bin')
++    BINDIR = File.join('/', 'usr', 'bin')
+ 
+     # Indicates that Rip isn't properly installed.
+     class InstallationError < StandardError; end

================================================================
Index: packages/ruby-rip/ruby-rip.spec
diff -u /dev/null packages/ruby-rip/ruby-rip.spec:1.1
--- /dev/null	Mon Jun 15 05:46:39 2009
+++ packages/ruby-rip/ruby-rip.spec	Mon Jun 15 05:46:33 2009
@@ -0,0 +1,56 @@
+# $Revision$, $Date$
+Summary:	Ruby's Intelligent Packaging
+Name:		ruby-rip
+Version:	0.0.1
+Release:	1
+License:	GPL
+Group:		Development/Tools
+Source0:	rip.tar.gz
+# Source0-md5:	c50a7da205326d834f23cd8f8630c5e3
+Patch0:	%{name}-prefix.patch
+URL:		http://hellorip.com/
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	ruby-modules
+BuildRequires:	setup.rb
+%{?ruby_mod_ver_requires_eq}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Rip is a next-generation packaging system for Ruby.
+
+%prep
+%setup -q -n rip
+%patch0 -p1
+cp %{_datadir}/setup.rb .
+rm -r ext
+
+%build
+ruby setup.rb config \
+	--prefix=%{_prefix}
+ruby setup.rb setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/rip
+%{ruby_sitelibdir}/rip.rb
+%{ruby_sitelibdir}/rip
+
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/06/15 03:46:33  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list