Blame rubygem-ronn.spec

Ricky Elrod 34a492f
# Missing BR rubygem(contest), necessary for running the test suite in %%check.
Ricky Elrod 34a492f
%global gem_name ronn
Ricky Elrod 34a492f
Ricky Elrod 34a492f
Name:           rubygem-%{gem_name}
Ricky Elrod 34a492f
Version:        0.7.3
f952ce4
Release:        10%{?dist}
Ricky Elrod 34a492f
Summary:        Manual authoring tool
Ricky Elrod 34a492f
Ricky Elrod 34a492f
Group:          Development/Tools
Ricky Elrod 34a492f
License:        MIT
Ricky Elrod 34a492f
URL:            https://github.com/rtomayko/ronn
Ricky Elrod 34a492f
Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
Ricky Elrod 34a492f
BuildArch:      noarch
Ricky Elrod 34a492f
BuildRequires:  rubygems-devel
Ricky Elrod 1351234
Requires:       rubygem(hpricot) rubygem(rdiscount) rubygem(mustache) rubygems groff-base
Ricky Elrod 34a492f
688d4db
%if 0%{?fedora} >= 19 || 0%{?rhel} > 7
Ricky Elrod 34a492f
Requires: ruby(release)
Ricky Elrod 34a492f
%else
Ricky Elrod 1351234
Requires: ruby(abi) >= 1.9.1
Ricky Elrod 34a492f
%endif
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%description
Ricky Elrod 34a492f
Ronn builds manuals. It converts simple, human readable text files to
Ricky Elrod 34a492f
roff for terminal display, and also to HTML for the web.
Ricky Elrod 34a492f
Ricky Elrod 34a492f
The source format includes all of Markdown but has a more rigid structure and
Ricky Elrod 34a492f
syntax extensions for features commonly found in man pages (definition lists,
Ricky Elrod 34a492f
link notation, etc.). The ronn-format(7) manual page defines the format in
Ricky Elrod 34a492f
detail.
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%package doc
Ricky Elrod 34a492f
Summary:        Documentation for %{name}
Ricky Elrod 34a492f
Group:          Documentation
Ricky Elrod 34a492f
BuildArch:      noarch
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%description doc
Ricky Elrod 34a492f
Documentation for %{name}
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%prep
Ricky Elrod 34a492f
gem unpack %{SOURCE0}
Ricky Elrod 34a492f
%setup -q -D -T -n  %{gem_name}-%{version}
Ricky Elrod 34a492f
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%build
Ricky Elrod 34a492f
mkdir -p .%{gem_dir}
Ricky Elrod 34a492f
gem build %{gem_name}.gemspec
Ricky Elrod 34a492f
%gem_install
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%install
Ricky Elrod 34a492f
mkdir -p %{buildroot}%{gem_dir}
Ricky Elrod 34a492f
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
Ricky Elrod 34a492f
chmod -x %{buildroot}%{gem_instdir}/lib/%{gem_name}.rb
Ricky Elrod 34a492f
Ricky Elrod 34a492f
mkdir -p %{buildroot}%{_bindir}
Ricky Elrod 34a492f
cp -a ./%{_bindir}/* %{buildroot}%{_bindir}
Ricky Elrod 34a492f
Ricky Elrod 34a492f
# Man pages.
Ricky Elrod 34a492f
install -D -m 0644 %{buildroot}%{gem_instdir}/man/%{gem_name}.1 %{buildroot}/%{_mandir}/man1/%{gem_name}.1
Ricky Elrod 34a492f
install -D -m 0644 %{buildroot}%{gem_instdir}/man/%{gem_name}-format.7 %{buildroot}/%{_mandir}/man7/%{gem_name}-format.7
Ricky Elrod 34a492f
Ricky Elrod 34a492f
rm -rf %{buildroot}%{gem_instdir}/{INSTALLING,Rakefile,test,man,ronn.gemspec,config.ru}
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%files
Ricky Elrod 34a492f
%dir %{gem_instdir}
Ricky Elrod 34a492f
%doc %{gem_instdir}/[A-Z]*
Ricky Elrod 34a492f
%{gem_instdir}/bin
Ricky Elrod 34a492f
%{gem_libdir}
Ricky Elrod 34a492f
%{gem_cache}
Ricky Elrod 34a492f
%{gem_spec}
Ricky Elrod 34a492f
%{_bindir}/%{gem_name}
Ricky Elrod 34a492f
%{_mandir}/man1/%{gem_name}.1*
Ricky Elrod 34a492f
%{_mandir}/man7/%{gem_name}-format.7*
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%files doc
Ricky Elrod 34a492f
%{gem_docdir}
Ricky Elrod 34a492f
Ricky Elrod 34a492f
%changelog
f952ce4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-10
f952ce4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f952ce4
2ce04be
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-9
2ce04be
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2ce04be
640f611
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-8
640f611
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
640f611
837e263
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-7
837e263
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
837e263
b773e98
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-6
b773e98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b773e98
ffec1bf
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-5
ffec1bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ffec1bf
Ricky Elrod 1351234
* Tue Jun 4 2013 Ricky Elrod <codeblock@fedoraproject.org> 0.7.3-4
Ricky Elrod 1351234
- Add groff-base Requires.
Ricky Elrod 1351234
- Nuke a Requires of the base package from the -doc subpackage.
Ricky Elrod 1351234
- Fix Requires for F18-, make it be >= 1.9.1.
Ricky Elrod 1351234
Ricky Elrod 34a492f
* Fri Apr 5 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-3
Ricky Elrod 34a492f
- Fix Requires so the package works on F18- and F19+.
Ricky Elrod 34a492f
- Fix what is marked as doc.
Ricky Elrod 34a492f
- Remove some extra files from the gem_instdir which are only needed for building.
Ricky Elrod 34a492f
Ricky Elrod 34a492f
* Wed Apr 3 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-2
Ricky Elrod 34a492f
- Move things into a doc subpackage.
Ricky Elrod 34a492f
- Fix BuildRequires.
Ricky Elrod 34a492f
- Document why the test suite isn't running.
Ricky Elrod 34a492f
- Make some things that don't need to be installed, not install.
Ricky Elrod 34a492f
- Mark some files as doc files.
Ricky Elrod 34a492f
Ricky Elrod 34a492f
* Wed Apr 3 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-1
Ricky Elrod 34a492f
- Initial build.