]> git.pld-linux.org Git - projects/template-specs.git/blame - ruby.spec
- updated
[projects/template-specs.git] / ruby.spec
CommitLineData
d4eb3bf7
ER
1Summary: -
2Name: ruby-
3Version: -
4Release: 0.1
5License: - (enter GPL/GPL v2/GPL v3+/LGPL/MIT/Ruby License/other license name here)
6Source0: http://rubyforge.org/frs/download.php/...
7# Source0-md5: -
8Group: Development/Languages
9URL: http://rubyforge.org/projects/.../
fd8a3aae
ER
10BuildRequires: rpmbuild(macros) >= 1.484
11BuildRequires: ruby >= 1:1.8.6
d4eb3bf7
ER
12BuildRequires: ruby-modules
13%{?ruby_mod_ver_requires_eq}
14#BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
fd8a3aae 17# nothing to be placed there. we're not noarch only because of ruby packaging
d4eb3bf7
ER
18%define _enable_debug_packages 0
19
20%description
21...
22
23%package rdoc
24Summary: Documentation files for ...
25Group: Documentation
fd8a3aae 26Requires: ruby >= 1:1.8.7-4
d4eb3bf7
ER
27
28%description rdoc
29Documentation files for ....
30
31%prep
32%setup -q -n ...-%{version}
33
fd8a3aae
ER
34# gem install
35%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
36find -newer README -o -print | xargs touch --reference %{SOURCE0}
37
38cp /usr/share/setup.rb .
39
40# cleanup backups after patching
41find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
42
d4eb3bf7
ER
43%build
44rdoc --ri --op ri lib
45rdoc --op rdoc lib
fd8a3aae 46rm -f ri/created.rid
d4eb3bf7
ER
47
48%install
49rm -rf $RPM_BUILD_ROOT
fd8a3aae 50install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
d4eb3bf7
ER
51cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
52cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
fd8a3aae 53cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
d4eb3bf7
ER
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
60%doc CHANGELOG README
61
62%files rdoc
63%defattr(644,root,root,755)
fd8a3aae
ER
64%{ruby_rdocdir}/%{name}-%{version}
65%{ruby_ridir}/...
This page took 0.080796 seconds and 4 git commands to generate.