SPECS: template-ruby.spec (NEW) - template for ruby too

glen glen at pld-linux.org
Sun Oct 12 11:38:47 CEST 2008


Author: glen                         Date: Sun Oct 12 09:38:47 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- template for ruby too

---- Files affected:
SPECS:
   template-ruby.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/template-ruby.spec
diff -u /dev/null SPECS/template-ruby.spec:1.1
--- /dev/null	Sun Oct 12 11:38:47 2008
+++ SPECS/template-ruby.spec	Sun Oct 12 11:38:41 2008
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+Summary:	-
+Name:		ruby-
+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/...
+# Source0-md5:	-
+Group:		Development/Languages
+URL:		http://rubyforge.org/projects/.../
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	ruby-modules
+%{?ruby_mod_ver_requires_eq}
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to be placed there. we're not noarc only because of ruby packaging
+%define		_enable_debug_packages	0
+
+%description
+...
+
+%package rdoc
+Summary:	Documentation files for ...
+Group:		Documentation
+
+%description rdoc
+Documentation files for ....
+
+%prep
+%setup -q -n ...-%{version}
+
+%build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+%{__rm} -f ri/created.rid
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG README
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_ridir}/ri/...
+
+%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  2008/10/12 09:38:41  glen
+- template for ruby too
================================================================


More information about the pld-cvs-commit mailing list