f2c1d64
%global gem_name yard
a2fc50c
fa7e2cc
Name: rubygem-%{gem_name}
a2fc50c
Summary: Documentation tool for consistent and usable documentation in Ruby
df60eb0
Version: 0.8.5.2
df60eb0
Release: 1%{?dist}
a2fc50c
Group: Development/Languages
a2fc50c
License: MIT and (GPLv2 or Ruby)
a2fc50c
URL: http://yardoc.org
a2fc50c
fa7e2cc
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
fa7e2cc
Requires: ruby(rubygems)
c4f755e
Requires: ruby(release)
fa7e2cc
BuildRequires: rubygems-devel
df60eb0
BuildRequires: rubygem(rspec)
f2c1d64
BuildRequires: rubygem(redcarpet)
df60eb0
BuildRequires: rubygem(rack)
a2fc50c
BuildArch: noarch
fa7e2cc
Provides: rubygem(%{gem_name}) = %{version}
a2fc50c
a2fc50c
%description
a2fc50c
YARD is a documentation generation tool for the Ruby programming language.
a2fc50c
It enables the user to generate consistent, usable documentation that can be
a2fc50c
exported to a number of formats very easily, and also supports extending for
a2fc50c
custom Ruby constructs such as custom class level definitions.
a2fc50c
a2fc50c
f2c1d64
%package doc
f2c1d64
Summary: Documentation for %{name}
f2c1d64
Group: Documentation
f2c1d64
Requires: %{name} = %{version}-%{release}
f2c1d64
BuildArch: noarch
f2c1d64
f2c1d64
%description doc
f2c1d64
Documentation for %{name}
f2c1d64
f2c1d64
a2fc50c
%prep
a2fc50c
%setup -q -T -c
c4f755e
%gem_install -n %{SOURCE0}
a2fc50c
a2fc50c
%build
a2fc50c
a2fc50c
%install
fa7e2cc
mkdir -p %{buildroot}%{gem_dir}
fa7e2cc
cp -a .%{gem_dir}/* \
fa7e2cc
        %{buildroot}%{gem_dir}/
9c954a5
9c954a5
mkdir -p %{buildroot}%{_bindir}
9c954a5
cp -a .%{_bindir}/* \
9c954a5
        %{buildroot}%{_bindir}/
a2fc50c
fa7e2cc
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
a2fc50c
a2fc50c
%check
fa7e2cc
pushd .%{gem_instdir}
df60eb0
rspec spec
9c954a5
popd
a2fc50c
a2fc50c
%files
a2fc50c
%{_bindir}/yardoc
a2fc50c
%{_bindir}/yri
dee70f2
%{_bindir}/yard
fa7e2cc
%dir %{gem_instdir}
fa7e2cc
%{gem_instdir}/bin
fa7e2cc
%{gem_libdir}
fa7e2cc
%{gem_instdir}/templates
fa7e2cc
%exclude %{gem_instdir}/.yardopts
fa7e2cc
%doc %{gem_instdir}/LEGAL
fa7e2cc
fa7e2cc
%exclude %{gem_cache}
fa7e2cc
%{gem_spec}
fa7e2cc
fa7e2cc
%doc %{gem_instdir}/LICENSE
f2c1d64
f2c1d64
%files doc
f2c1d64
%doc %{gem_docdir}
fa7e2cc
%doc %{gem_instdir}/README.md
f2c1d64
%{gem_instdir}/Rakefile
df60eb0
%{gem_instdir}/%{gem_name}.gemspec
f2c1d64
%{gem_instdir}/benchmarks
f2c1d64
%{gem_instdir}/spec
fa7e2cc
%doc %{gem_instdir}/docs
f2c1d64
a2fc50c
a2fc50c
a2fc50c
%changelog
df60eb0
* Fri Mar 15 2013 Vít Ondruch <vondruch@redhat.com> - 0.8.5.2-1
df60eb0
- Update to yard 0.8.5.2.
df60eb0
c4f755e
* Fri Mar 15 2013 Vít Ondruch <vondruch@redhat.com> - 0.8.2.1-3
c4f755e
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
c4f755e
86d5b26
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.2.1-2
86d5b26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
86d5b26
f2c1d64
* Fri Jul 27 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.2.1-1
f2c1d64
- Update to yard 0.8.2.1.
c0ae95b
e8ace5e
* Thu May 03 2012 Vít Ondruch <vondruch@redhat.com> - 0.8.1-1
e8ace5e
- Update to yard 0.8.1.
e8ace5e
fa7e2cc
* Wed Jan 25 2012 Vít Ondruch <vondruch@redhat.com> - 0.7.4-3
fa7e2cc
- Rebuilt for Ruby 1.9.3.
fa7e2cc
8787026
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
8787026
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8787026
9c954a5
* Thu Dec 15 2011 Vít Ondruch <vondruch@redhat.com> - 0.7.4-1
9c954a5
- Updated to yard 0.7.4.
9c954a5
dee70f2
* Mon Jul 25 2011 Mo Morsi <mmorsi@redhat.com> - 0.7.2-1
dee70f2
- update to latest upstream release
dee70f2
- fixes to conform to fedora guidelines
dee70f2
0d9d0b0
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
0d9d0b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0d9d0b0
a2fc50c
* Mon Feb 22 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-3
a2fc50c
- fixed dependencies/package issues according to guidelines
a2fc50c
a2fc50c
* Mon Feb 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-2
a2fc50c
- cleaned up macros, other package guideline compliance fixes
a2fc50c
- corrected license, added MIT
a2fc50c
- include all files and docs, added check/test section
a2fc50c
a2fc50c
* Mon Feb 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-1
a2fc50c
- Initial package
a2fc50c