]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- template for ruby too
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 12 Oct 2008 09:38:41 +0000 (09:38 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ruby.spec -> 1.1

ruby.spec [new file with mode: 0644]

diff --git a/ruby.spec b/ruby.spec
new file mode 100644 (file)
index 0000000..0e2c888
--- /dev/null
+++ b/ruby.spec
@@ -0,0 +1,52 @@
+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/...
This page took 0.085338 seconds and 4 git commands to generate.