4f55e72333
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
188 lines
6.8 KiB
RPMSpec
188 lines
6.8 KiB
RPMSpec
# Generated from ronn-ng-0.9.1.gem by gem2rpm -*- rpm-spec -*-
|
|
%global gem_name ronn-ng
|
|
|
|
Name: rubygem-%{gem_name}
|
|
Version: 0.9.1
|
|
Release: 5%{?dist}
|
|
Summary: Builds man pages from Markdown
|
|
License: MIT
|
|
URL: https://github.com/apjanke/ronn-ng
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: rubygems-devel
|
|
BuildRequires: ruby
|
|
BuildRequires: rubygem(kramdown)
|
|
BuildRequires: rubygem(mustache)
|
|
BuildRequires: rubygem(nokogiri)
|
|
BuildRequires: rubygem(test-unit)
|
|
BuildArch: noarch
|
|
|
|
Requires: /usr/bin/groff
|
|
Provides: rubygem-ronn = %{version}-%{release}
|
|
Obsoletes: rubygem-ronn < 0.7.3-20
|
|
|
|
%description
|
|
Ronn builds manuals in HTML and Unix man page format from Markdown.
|
|
|
|
The source format includes all of Markdown but has a more rigid structure and
|
|
syntax extensions for features commonly found in man pages (definition lists,
|
|
link notation, etc.). The ronn-format(7) manual page defines the format in
|
|
detail.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
# Upstream specifies mustache==0.7, but we have 1.1 and it seems to work fine...
|
|
%gemspec_remove_dep -g mustache "~> 0.7"
|
|
|
|
# TODO: file upstream
|
|
chmod -x lib/ronn.rb
|
|
|
|
%build
|
|
# Create the gem as gem install only works on a gem file
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
# by default, so that we can move it into the buildroot in %%install
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
cp -a .%{_bindir}/* \
|
|
%{buildroot}%{_bindir}/
|
|
|
|
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
|
# Move man pages into the appropriate place
|
|
install -Dt %{buildroot}/%{_mandir}/man1/ -m 0644 %{buildroot}%{gem_instdir}/man/ronn.1
|
|
install -Dt %{buildroot}/%{_mandir}/man7/ -m 0644 %{buildroot}%{gem_instdir}/man/ronn-format.7
|
|
|
|
# Move completion scripts into the appropriate place
|
|
install -Dt %{buildroot}/usr/share/bash-completion/completions/ -m 0644 %{buildroot}%{gem_instdir}/completion/bash/ronn
|
|
install -Dt %{buildroot}/usr/share/zsh/site-functions/ -m 0644 %{buildroot}%{gem_instdir}/completion/zsh/_ronn
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%{_bindir}/ronn
|
|
%{gem_instdir}/CHANGES
|
|
%{gem_instdir}/INSTALLING.md
|
|
%license %{gem_instdir}/LICENSE.txt
|
|
%{gem_instdir}/bin
|
|
%{gem_instdir}/config.ru
|
|
%{gem_libdir}
|
|
%exclude %{gem_instdir}/completion
|
|
%exclude %{gem_instdir}/man
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
%{_mandir}/man1/ronn.1*
|
|
%{_mandir}/man7/ronn-format.7*
|
|
%dir %_datadir/bash-completion//
|
|
%_datadir/bash-completion/completions/
|
|
%_datadir/zsh/site-functions/
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/AUTHORS
|
|
%{gem_instdir}/Gemfile
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/ronn-ng.gemspec
|
|
%{gem_instdir}/test
|
|
|
|
%changelog
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Sat Sep 19 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.1-1
|
|
- Add BRs for tests, enable tests in %%check.
|
|
- Require /usr/bin/groff, not the package in case the file is moved.
|
|
- Keep the license file in the original location.
|
|
- Adjust various macros and invocations.
|
|
|
|
* Fri Aug 21 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.1-1
|
|
- Switch to https://github.com/apjanke/ronn-ng/ upstream fork (#1817168)
|
|
- Regenerate spec file with gem2rpm.
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-15
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-14
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-10
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.3-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.3-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Tue Jun 4 2013 Ricky Elrod <codeblock@fedoraproject.org> 0.7.3-4
|
|
- Add groff-base Requires.
|
|
- Nuke a Requires of the base package from the -doc subpackage.
|
|
- Fix Requires for F18-, make it be >= 1.9.1.
|
|
|
|
* Fri Apr 5 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-3
|
|
- Fix Requires so the package works on F18- and F19+.
|
|
- Fix what is marked as doc.
|
|
- Remove some extra files from the gem_instdir which are only needed for building.
|
|
|
|
* Wed Apr 3 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-2
|
|
- Move things into a doc subpackage.
|
|
- Fix BuildRequires.
|
|
- Document why the test suite isn't running.
|
|
- Make some things that don't need to be installed, not install.
|
|
- Mark some files as doc files.
|
|
|
|
* Wed Apr 3 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.7.3-1
|
|
- Initial build.
|