]>
Commit | Line | Data |
---|---|---|
376a8724 ZU |
1 | Summary: A ruby library for creating NFS safe lockfiles |
2 | Name: ruby-lockfile | |
3 | Version: 1.4.3 | |
4 | Release: 0.1 | |
5 | License: Ruby License | |
6 | Source0: http://rubyforge.org/frs/download.php/18699/lockfile-%{version}.tgz | |
7 | # Source0-md5: 54b3ce6a1f5b2ec4c96dfc954b33fa86 | |
8 | Group: Development/Languages | |
9 | URL: http://rubyforge.org/projects/codeforpeople/ | |
10 | BuildRequires: rpmbuild(macros) >= 1.484 | |
11 | BuildRequires: ruby >= 1:1.8.6 | |
12 | BuildRequires: ruby-modules | |
13 | %{?ruby_mod_ver_requires_eq} | |
14 | #BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | # nothing to be placed there. we're not noarch only because of ruby packaging | |
18 | %define _enable_debug_packages 0 | |
19 | ||
20 | %description | |
21 | ... | |
22 | ||
23 | %package rdoc | |
24 | Summary: Documentation files for ruby-lockfile | |
25 | Group: Documentation | |
26 | Requires: ruby >= 1:1.8.7-4 | |
27 | ||
28 | %description rdoc | |
29 | Documentation files for ruby-lockfile. | |
30 | ||
31 | %prep | |
32 | %setup -q -n lockfile-%{version} | |
33 | ||
34 | %build | |
35 | rdoc --ri --op ri lib | |
36 | rdoc --op rdoc lib | |
37 | rm -f ri/created.rid | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}} | |
42 | cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir} | |
43 | cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir} | |
44 | cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version} | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc README | |
52 | ||
53 | %files rdoc | |
54 | %defattr(644,root,root,755) | |
55 | %{ruby_rdocdir}/%{name}-%{version} | |
56 | %{ruby_rubylibdir} | |
57 | %{ruby_ridir} |