104 lines
2.9 KiB
RPMSpec
104 lines
2.9 KiB
RPMSpec
%define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
%define gemname yard
|
|
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
%define rubyabi 1.8
|
|
|
|
Name: rubygem-%{gemname}
|
|
Summary: Documentation tool for consistent and usable documentation in Ruby
|
|
Version: 0.7.4
|
|
Release: 2%{?dist}
|
|
Group: Development/Languages
|
|
License: MIT and (GPLv2 or Ruby)
|
|
URL: http://yardoc.org
|
|
|
|
Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
|
|
Requires: rubygems
|
|
Requires: ruby(abi) = %{rubyabi}
|
|
BuildRequires: rubygems
|
|
# Use rspec-core until rspec are not migrated to RSpec 2.x
|
|
BuildRequires: rubygem(rspec-core)
|
|
BuildArch: noarch
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
%description
|
|
YARD is a documentation generation tool for the Ruby programming language.
|
|
It enables the user to generate consistent, usable documentation that can be
|
|
exported to a number of formats very easily, and also supports extending for
|
|
custom Ruby constructs such as custom class level definitions.
|
|
|
|
|
|
%prep
|
|
%setup -q -T -c
|
|
mkdir -p .%{gemdir}
|
|
gem install --local --install-dir .%{gemdir} \
|
|
--bindir .%{_bindir} \
|
|
--force %{SOURCE0}
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
cp -a .%{gemdir}/* \
|
|
%{buildroot}%{gemdir}/
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
cp -a .%{_bindir}/* \
|
|
%{buildroot}%{_bindir}/
|
|
|
|
find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
|
|
|
|
%check
|
|
pushd .%{geminstdir}
|
|
rspec spec
|
|
popd
|
|
|
|
%files
|
|
%{_bindir}/yardoc
|
|
%{_bindir}/yri
|
|
%{_bindir}/yard
|
|
%dir %{geminstdir}
|
|
%{geminstdir}/bin
|
|
%{geminstdir}/lib
|
|
%{geminstdir}/templates
|
|
%exclude %{geminstdir}/.yardopts
|
|
%doc %{geminstdir}/LEGAL
|
|
|
|
%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
%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}
|
|
|
|
|
|
%changelog
|
|
* 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
|
|
|
|
* Thu Dec 15 2011 Vít Ondruch <vondruch@redhat.com> - 0.7.4-1
|
|
- Updated to yard 0.7.4.
|
|
|
|
* Mon Jul 25 2011 Mo Morsi <mmorsi@redhat.com> - 0.7.2-1
|
|
- update to latest upstream release
|
|
- fixes to conform to fedora guidelines
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Feb 22 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-3
|
|
- fixed dependencies/package issues according to guidelines
|
|
|
|
* Mon Feb 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-2
|
|
- cleaned up macros, other package guideline compliance fixes
|
|
- corrected license, added MIT
|
|
- include all files and docs, added check/test section
|
|
|
|
* Mon Feb 08 2010 Mohammed Morsi <mmorsi@redhat.com> - 0.5.3-1
|
|
- Initial package
|
|
|