template-specs: ruby.spec - define MODULE_NAME via macro - use rubygems sou...
baggins
baggins at pld-linux.org
Sun Feb 28 14:12:49 CET 2010
Author: baggins Date: Sun Feb 28 13:12:49 2010 GMT
Module: template-specs Tag: HEAD
---- Log message:
- define MODULE_NAME via macro
- use rubygems source url
---- Files affected:
template-specs:
ruby.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: template-specs/ruby.spec
diff -u template-specs/ruby.spec:1.5 template-specs/ruby.spec:1.6
--- template-specs/ruby.spec:1.5 Tue Jan 13 19:58:59 2009
+++ template-specs/ruby.spec Sun Feb 28 14:12:44 2010
@@ -3,14 +3,14 @@
# - -ri subpackages? (see: ruby-RubyGems.spec)
# - any policy what to package in %{ruby_ridir}?
#
-# Replace:
-# MODULE_NAME with real module name
+%define %{pkgname} MODULE_NAME
Summary: -
-Name: ruby-MODULE_NAME
+Name: ruby-%{pkgname}
Version: -
Release: 0.1
License: - (enter GPL/GPL v2/GPL v3+/LGPL/MIT/Ruby License/other license name here)
-Source0: http://rubyforge.org/frs/download.php/18699/MODULE_NAME-%{version}.tgz
+#Source0: http://rubyforge.org/frs/download.php/18699/%{pkgname}-%{version}.tgz
+Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
# Source0-md5: -
Group: Development/Languages
URL: http://rubyforge.org/projects/.../
@@ -28,15 +28,19 @@
...
%package rdoc
-Summary: Documentation files for MODULE_NAME
+Summary: Documentation files for %{pkgname}
Group: Documentation
Requires: ruby >= 1:1.8.7-4
%description rdoc
-Documentation files for MODULE_NAME.
+Documentation files for %{pkgname}.
%prep
-%setup -q -n MODULE_NAME-%{version}
+# tgz
+#%setup -q -n %{pkgname}-%{version}
+
+# gem install
+%setup -q -c
# gem install
%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
@@ -66,14 +70,14 @@
%files
%defattr(644,root,root,755)
%doc CHANGELOG README
-%{ruby_rubylibdir}/MODULE_NAME.rb
-%{ruby_rubylibdir}/MODULE_NAME
-%attr(755,root,root) %{ruby_archdir}/MODULE_NAME_ext.so
+%{ruby_rubylibdir}/%{pkgname}.rb
+%{ruby_rubylibdir}/%{pkgname}
+%attr(755,root,root) %{ruby_archdir}/%{pkgname}_ext.so
%files rdoc
%defattr(644,root,root,755)
%{ruby_rdocdir}/%{name}-%{version}
-%{ruby_ridir}/MODULE_NAME
+%{ruby_ridir}/%{pkgname}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -81,6 +85,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2010/02/28 13:12:44 baggins
+- define MODULE_NAME via macro
+- use rubygems source url
+
Revision 1.5 2009/01/13 18:58:59 glen
- todos
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/template-specs/ruby.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list