Rebuilt for Ruby 1.9.3.
This commit is contained in:
parent
87870264d1
commit
fa7e2ccb24
1 changed files with 37 additions and 34 deletions
|
|
@ -1,25 +1,23 @@
|
|||
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
||||
%define gemname yard
|
||||
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
||||
%define gem_name yard
|
||||
|
||||
%define rubyabi 1.8
|
||||
%define rubyabi 1.9.1
|
||||
|
||||
Name: rubygem-%{gemname}
|
||||
Name: rubygem-%{gem_name}
|
||||
Summary: Documentation tool for consistent and usable documentation in Ruby
|
||||
Version: 0.7.4
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Group: Development/Languages
|
||||
License: MIT and (GPLv2 or Ruby)
|
||||
URL: http://yardoc.org
|
||||
|
||||
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
||||
Requires: rubygems
|
||||
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||
Requires: ruby(rubygems)
|
||||
Requires: ruby(abi) = %{rubyabi}
|
||||
BuildRequires: rubygems
|
||||
BuildRequires: rubygems-devel
|
||||
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
||||
BuildRequires: rubygem(rspec-core)
|
||||
BuildArch: noarch
|
||||
Provides: rubygem(%{gemname}) = %{version}
|
||||
Provides: rubygem(%{gem_name}) = %{version}
|
||||
|
||||
%description
|
||||
YARD is a documentation generation tool for the Ruby programming language.
|
||||
|
|
@ -30,54 +28,59 @@ custom Ruby constructs such as custom class level definitions.
|
|||
|
||||
%prep
|
||||
%setup -q -T -c
|
||||
mkdir -p .%{gemdir}
|
||||
gem install --local --install-dir .%{gemdir} \
|
||||
mkdir -p .%{gem_dir}
|
||||
gem install --local --install-dir .%{gem_dir} \
|
||||
--bindir .%{_bindir} \
|
||||
--force %{SOURCE0}
|
||||
|
||||
%build
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gemdir}
|
||||
cp -a .%{gemdir}/* \
|
||||
%{buildroot}%{gemdir}/
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -a .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp -a .%{_bindir}/* \
|
||||
%{buildroot}%{_bindir}/
|
||||
|
||||
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
||||
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
||||
|
||||
%check
|
||||
pushd .%{geminstdir}
|
||||
rspec spec
|
||||
pushd .%{gem_instdir}
|
||||
# Test suite fails with default LANG.
|
||||
# https://github.com/lsegal/yard/issues/472
|
||||
LANG=en_US.utf8 rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%{_bindir}/yardoc
|
||||
%{_bindir}/yri
|
||||
%{_bindir}/yard
|
||||
%dir %{geminstdir}
|
||||
%{geminstdir}/bin
|
||||
%{geminstdir}/lib
|
||||
%{geminstdir}/templates
|
||||
%exclude %{geminstdir}/.yardopts
|
||||
%doc %{geminstdir}/LEGAL
|
||||
%dir %{gem_instdir}
|
||||
%{gem_instdir}/bin
|
||||
%{gem_libdir}
|
||||
%{gem_instdir}/templates
|
||||
%exclude %{gem_instdir}/.yardopts
|
||||
%doc %{gem_instdir}/LEGAL
|
||||
|
||||
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
||||
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
|
||||
%doc %{geminstdir}/LICENSE
|
||||
%doc %{geminstdir}/README.md
|
||||
%doc %{geminstdir}/Rakefile
|
||||
%doc %{geminstdir}/ChangeLog
|
||||
%doc %{geminstdir}/benchmarks
|
||||
%doc %{geminstdir}/spec
|
||||
%doc %{geminstdir}/docs
|
||||
%doc %{gemdir}/doc/%{gemname}-%{version}
|
||||
%doc %{gem_instdir}/LICENSE
|
||||
%doc %{gem_instdir}/README.md
|
||||
%doc %{gem_instdir}/Rakefile
|
||||
%doc %{gem_instdir}/ChangeLog
|
||||
%doc %{gem_instdir}/benchmarks
|
||||
%doc %{gem_instdir}/spec
|
||||
%doc %{gem_instdir}/docs
|
||||
%doc %{gem_docdir}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Jan 25 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.4-3
|
||||
- Rebuilt for Ruby 1.9.3.
|
||||
|
||||
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue