1 %define pkgname polyglot
2 Summary: Allows custom language loaders for specified file extensions to be hooked into require
6 License: MIT/Ruby License
7 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
8 # Source0-md5: a2d132bd4f445a4bd104a74b3316e029
9 Group: Development/Languages
10 URL: http://rubyforge.org/projects/.../
11 BuildRequires: rpmbuild(macros) >= 1.484
12 BuildRequires: ruby >= 1:1.8.6
13 BuildRequires: ruby-modules
14 %{?ruby_mod_ver_requires_eq}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 # nothing to be placed there. we're not noarch only because of ruby packaging
19 %define _enable_debug_packages 0
22 Allows custom language loaders for specified file
23 extensions to be hooked into require.
26 Summary: HTML documentation for %{pkgname}
27 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
29 Requires: ruby >= 1:1.8.7-4
32 HTML documentation for %{pkgname}.
34 %description rdoc -l pl.UTF-8
35 Dokumentacja w formacie HTML dla %{pkgname}.
38 Summary: ri documentation for %{pkgname}
39 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
44 ri documentation for %{pkgname}.
46 %description ri -l pl.UTF-8
47 Dokumentacji w formacie ri dla %{pkgname}.
51 %{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
52 find -newer README.txt -o -print | xargs touch --reference %{SOURCE0}
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
64 cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
65 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
66 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %doc History.txt README.txt
74 %{ruby_rubylibdir}/%{pkgname}.rb
75 %{ruby_rubylibdir}/%{pkgname}
78 %defattr(644,root,root,755)
79 %{ruby_rdocdir}/%{name}-%{version}
82 %defattr(644,root,root,755)
83 %{ruby_ridir}/Polyglot